/* ============================================
   CEPO - Footer Styles
   Fiel al diseño de Figma: Footer component (453:277)

   Estructura:
   - .cepo-newsletter: Sección Newsletter (fondo amarillo/dorado)
   - .cepo-footer: Footer principal
     - .cepo-footer__main: Contenido (fondo blanco)
     - .cepo-footer__bottom: Barra inferior (fondo verde #1a7c3f)
   ============================================ */

/* ============================================
   NEWSLETTER SECTION
   Figma: Card con borde verde, foto izquierda
   ============================================ */
.cepo-newsletter {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 57px;
    padding-right: 57px;
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding-bottom: 40px;
}

.cepo-newsletter__card {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--color-green-primary);
    border-radius: var(--radius-lg);
    overflow: unset;
    background-color: var(--color-bg-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cepo-newsletter__image {
    width: 260px;
    flex-shrink: 0;
    overflow: hidden;
    margin: -30px 0px;
}

.cepo-newsletter__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cepo-newsletter__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 40px;
}

.cepo-newsletter__content {
    flex: 1;
    max-width: 420px;
}

.cepo-newsletter__title {
    font-family: var(--font-primary);
    font-weight: var(--fw-bold);
    font-size: var(--fs-md);
    font-style: italic;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.cepo-newsletter__text {
    font-family: var(--font-primary);
    font-weight: var(--fw-regular);
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.cepo-newsletter__form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.cepo-newsletter__form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cepo-newsletter__label {
    font-family: var(--font-primary);
    font-weight: var(--fw-regular);
    font-size: var(--fs-xs);
    color: var(--color-text-gray);
}

.cepo-newsletter__input {
    width: 220px;
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    color: var(--color-text-body);
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.3s ease;
}

.cepo-newsletter__input:focus {
    border-color: var(--color-green-primary);
    box-shadow: 0 0 0 3px rgba(26, 124, 63, 0.15);
}

.cepo-newsletter__input::placeholder {
    color: var(--color-text-muted);
}

.cepo-newsletter__submit {
    flex-shrink: 0;
    padding: 12px 24px;
    font-size: var(--fs-sm);
}

.cepo-newsletter__message {
    display: none;
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    margin-top: 8px;
}

.cepo-newsletter__message.is-success {
    display: block;
    background-color: rgba(26, 124, 63, 0.15);
    color: var(--color-green-primary);
}

.cepo-newsletter__message.is-error {
    display: block;
    background-color: rgba(204, 0, 0, 0.1);
    color: #cc0000;
}

/* ============================================
   FOOTER PRINCIPAL
   ============================================ */
.cepo-footer {
    width: 100%;
}

/* ---- Sección Principal (Fondo Blanco) ---- */
.cepo-footer__main {
    background-color: var(--color-bg-white);
    width: 100%;
    overflow: hidden;
}

.cepo-footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 50px 57px 20px;
}

/* ---- Brand del Footer ---- */
.cepo-footer__brand {
    flex-shrink: 0;
}

.cepo-footer__brand-link {
    display: flex;
    align-items: center;
    gap: 21px;
}

.cepo-footer__brand-link:hover {
    opacity: 1;
}

.cepo-footer__logo {
    width: 91px;
    height: 97px;
    object-fit: cover;
    flex-shrink: 0;
}

.cepo-footer__brand-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 199px;
}

.cepo-footer__brand-subtitle {
    font-family: var(--font-primary);
    font-weight: var(--fw-semibold);
    font-size: 13.5px;
    color: var(--color-green-dark);
    letter-spacing: 2.7px;
    line-height: normal;
}

.cepo-footer__brand-title {
    font-family: var(--font-primary);
    font-weight: var(--fw-bold);
    font-size: 18px;
    color: var(--color-green-primary);
    letter-spacing: 2.16px;
    line-height: normal;
}

/* ---- Menú del Footer ---- */
.cepo-footer__menu-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 105px;
}

.cepo-footer__menu-title {
    font-family: var(--font-primary);
    font-weight: var(--fw-bold);
    font-size: 18px;
    color: var(--color-text-body);
    line-height: normal;
}

.cepo-footer__menu-columns {
    display: flex;
    gap: 50px;
}

.cepo-footer__menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cepo-footer__menu-list li a {
    font-family: var(--font-primary);
    font-weight: var(--fw-medium);
    font-size: 14px;
    color: var(--color-text-body);
    line-height: normal;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.cepo-footer__menu-list li a:hover {
    color: var(--color-green-primary);
    opacity: 1;
}

/* ---- Redes Sociales ---- */
.cepo-footer__social-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.cepo-footer__social-title {
    font-family: var(--font-primary);
    font-weight: var(--fw-bold);
    font-size: 18px;
    color: var(--color-green-dark);
    line-height: normal;
}

.cepo-footer__social-icons {
    display: flex;
    align-items: center;
    gap: 18.75px;
}

.cepo-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cepo-footer__social-link:hover {
    transform: scale(1.1);
    opacity: 1;
}

.cepo-footer__social-link--disabled {
    opacity: 0.5;
    cursor: default;
}

.cepo-footer__social-link--disabled:hover {
    transform: none;
}

.cepo-footer__social-link svg {
    width: 30px;
    height: 30px;
}

/* ---- Barra Inferior Verde ---- */
.cepo-footer__bottom {
    background-color: var(--color-green-primary);
    width: 100%;
}

.cepo-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px 57px;
}

.cepo-footer__copyright {
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--color-white);
    line-height: normal;
}

.cepo-footer__copyright strong {
    font-weight: var(--fw-bold);
}

.cepo-footer__credit {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-primary);
    font-size: 12px;
    color: var(--color-white);
}

.cepo-footer__credit a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-white);
    transition: opacity 0.3s ease;
}

.cepo-footer__credit a:hover {
    opacity: 0.85;
}

.cepo-footer__credit img {
    width: 20px;
    height: 22px;
    object-fit: contain;
}

.cepo-footer__credit span {
    font-family: var(--font-primary);
    font-weight: var(--fw-medium);
    letter-spacing: 1px;
}

/* ============================================
   RESPONSIVE: Tablet (768px)
   ============================================ */
@media (max-width: 768px) {
    /* Newsletter */
    .cepo-newsletter {
        padding: 0 24px 30px;
        margin-top: -60px;
    }

    .cepo-newsletter__card {
        flex-direction: column;
    }

    .cepo-newsletter__image {
        width: 100%;
        height: 180px;
    }

    .cepo-newsletter__body {
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        text-align: center;
    }

    .cepo-newsletter__form {
        flex-direction: column;
        width: 100%;
    }

    .cepo-newsletter__form-row {
        width: 100%;
    }

    .cepo-newsletter__input {
        width: 100%;
    }

    .cepo-newsletter__submit {
        width: 100%;
    }

    /* Footer */
    .cepo-footer__inner {
        flex-direction: column;
        gap: 30px;
        padding: 40px 24px 20px;
    }

    .cepo-footer__menu-section {
        margin-left: 0;
    }

    .cepo-footer__bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px 24px;
    }
}

/* ============================================
   RESPONSIVE: Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
    .cepo-newsletter {
        padding: 0 16px 20px;
        margin-top: -50px;
    }

    .cepo-newsletter__title {
        font-size: 16px;
    }

    .cepo-newsletter__image {
        height: 140px;
    }

    .cepo-footer__inner {
        padding: 30px 16px 15px;
    }

    .cepo-footer__brand-link {
        gap: 12px;
    }

    .cepo-footer__logo {
        width: 60px;
        height: 65px;
    }

    .cepo-footer__brand-text {
        width: auto;
    }

    .cepo-footer__brand-subtitle {
        font-size: 10px;
    }

    .cepo-footer__brand-title {
        font-size: 14px;
    }

    .cepo-footer__menu-columns {
        gap: 30px;
    }

    .cepo-footer__social-icons {
        gap: 12px;
    }

    .cepo-footer__bottom-inner {
        padding: 15px 16px;
    }
}
