/* SECCIÓN ANTES DE HEADER */
.antes-cabecera {
    background: var(--color-beige);
    z-index: 11;
}

.antes-cabecera > .e-con-inner {
    padding: 0;
}

.antes-cabecera span {
    color: var(--color-texto);
    padding: 0.5rem;
    font-weight: 600;
    font-family: 'Nunito', Sans-Serif;
    font-size: var(--texto-small);
    display: flex;
    justify-content: center;
}


/* ESTILOS HEADER */
.cabecera {
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    z-index: 12;
    position: sticky;
    top: 0;
}

.cabecera .e-con-inner {
    display: flex;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

/* LOGO */
.imagotipo {
    width: 125px;
    height: auto;
}

@media (min-width: 768px) {
    .imagotipo {
        width: 200px;
    }
}

/* ------------------------------- */
/* BOTÓN CTA                       */
/* ------------------------------- */
.btn-cta {
    padding: 0.5rem 1rem;
    color: #fff;
    border-radius: 0.75rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-verde-oscuro);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.btn-cta:hover {
    transform: scale(1.05);
    color: var(--color-blanco)
}

.btn-cta svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

/* ------------------------------- */
/* MODAL BASE                      */
/* ------------------------------- */
.contact-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    z-index: 9998;
}

/* Activo */
.contact-modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* ------------------------------- */
/* CONTENIDO DEL MODAL             */
/* ------------------------------- */
.modal-content {
    background: #fff;
    width: 100%;
    max-width: 550px;
    padding: 2rem 1.5rem;
    border-radius: 1.25rem 1.25rem 0 0;
    transform: translateY(60px);
    opacity: 0;
    animation: slideUpFade .35s forwards ease-out;
    position: relative;
}

/* Animación */
@keyframes slideUpFade {
    from { transform: translateY(80px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ------------------------------- */
/* CERRAR MODAL                    */
/* ------------------------------- */
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

/* ------------------------------- */
/* TITULO                          */
/* ------------------------------- */
.modal-title {
    font-family: 'Nunito';
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

/* ------------------------------- */
/* GRID — DESKTOP  /  BOTONES MÓVIL*/
/* ------------------------------- */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Cada ítem */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--color-verde-opaco);
    text-decoration: none;
    color: #fff;
    transition: transform .2s ease, background .2s ease;
}

.contact-item:hover {
    background: var(--color-verde-seco);
    transform: translateY(-3px);
}

/* Icono */
.icon-box {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-box svg {
    width: 32px;
    height: 32px;
}

/* Info dentro del card */
.info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ------------------------------- */
/* DESKTOP (cards en columnas)     */
/* ------------------------------- */
@media (min-width: 768px) {
    .contact-modal {
        align-items: center; /* modal centrado */
    }

    .modal-content {
        border-radius: 1.25rem;
        max-width: 700px;
    }

    .contact-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .icon-box {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }
    
    .icon-box svg {
        width: 42px;
        height: 42px;
    }
}
