/* =========================================
   PÁGINA DE CONTACTO
   ========================================= */
.contact-page {
    /* El box-sizing hace que los 140px de padding se incluyan DENTRO de los 100vh */
    box-sizing: border-box;
    padding: 140px 5vw 5vw 5vw;
    height: 100vh; /* Fallback para navegadores sin soporte de dvh */
    height: 100dvh; /* Soporte dinámico perfecto para navegadores móviles/Safari */
    overflow: hidden; /* Escritorio: sin scroll vertical */
    background-color: #ffffff;
    color: var(--nc-blue);
    letter-spacing: -0.02em;
}

.contact-page .reveal-wrap {
    display: block;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr); /* La fila nunca crece más que el contenedor */
    gap: 5vw;
    /* Ocupa exactamente el espacio que queda dentro del padding del padre */
    height: 100%;
    min-height: 0;
}

/* =========================================
   COLUMNA IZQUIERDA
   ========================================= */
.contact-left {
    display: flex;
    height: 100%; /* Se ajusta a la altura de la fila del grid, no a la pantalla */
    min-height: 0;
    flex-direction: column;
    justify-content: space-between; /* Empuja el título arriba y las redes abajo */
}

.contact-title {
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.05em;
}

.contact-subtitle {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.4;
    color: var(--nc-blue-soft);
}

.contact-cta {
    margin-top: 30px;
}

.contact-socials {
    display: flex;
    gap: 2rem;
    margin-bottom: 20px;
}

.contact-socials a {
    color: var(--nc-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.contact-socials a:hover {
    opacity: 0.6;
}

/* =========================================
   COLUMNA DERECHA
   ========================================= */
.contact-right {
    display: flex;
    height: 100%;
    min-height: 0; /* Permite que la imagen se encoja en vez de desbordar */
    flex-direction: column;
    gap: 40px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-style: normal;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 400;
    color: #888;
    margin-bottom: 5px;
    display: block;
}

.info-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--nc-blue);
    text-decoration: none;
    line-height: 1.3;
}

.info-detail {
    font-size: 1rem;
    color: var(--nc-blue);
    font-weight: 500;
    text-decoration: none;
}

/* Imagen */
.contact-image-wrapper {
    flex-grow: 1; /* Hace que la imagen ocupe el espacio restante hacia abajo */
    width: 100%;
    overflow: hidden;
    position: relative;
    min-height: 0; /* En escritorio nunca debe empujar la página más allá de 100vh */
}

.contact-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
}

/* =========================================
   RESPONSIVE (MÓVIL Y TABLET)
   ========================================= */
@media (max-width: 992px) {
    /* En móvil sí necesitamos scroll porque las 2 columnas se apilan en 1 muy larga */
    .contact-page {
        height: auto;
        min-height: 100dvh;
        overflow: visible; /* Devolvemos el scroll para que se pueda bajar a la imagen */
        padding-bottom: 0; /* Quitamos el padding blanco del final */
    }

    .contact-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 60px;
    }

    .contact-left,
    .contact-right {
        height: auto;
    }

    .contact-left {
        gap: 40px;
    }

    /* Imagen a full-width rompiendo el padding y pegándose al fondo */
    .contact-image-wrapper {
        height: 350px;
        flex: 0 0 auto;
        margin-left: -5vw;
        margin-right: -5vw;
        width: calc(100% + 10vw);
        margin-bottom: 0;
        display: block;
    }
}

@media (max-width: 576px) {
    .contact-info-grid {
        grid-template-columns: 1fr; /* Una columna para los datos de contacto en teléfonos pequeños */
        gap: 30px;
    }

    .contact-socials {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}
