/* ========================================================= */
/* BLOQUEO ABSOLUTO DE FLECHA PORTAFOLIO EN ESCRITORIO       */
/* ========================================================= */
.portfolio-scroll-down-arrow {
    display: none !important;
}

/* ========================================================= */
/* 1. COMPORTAMIENTO GENERAL Y RESET */
/* ========================================================= */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, "Montserrat", sans-serif;
}

body.no-scroll {
    overflow: hidden !important;
}

/* ========================================================= */
/* TÍTULOS GENERALES DE SECCIÓN                             */
/* ========================================================= */
.text-col h2,
.gallery-header h2,
.portfolio-title-left h2,
.collage-main-title,
.team-main-title,
.colab-header h2 {
    font-family: 'Marcellus', serif !important;
    font-size: 46px !important;       
    font-weight: 400 !important;
    color: #1a1a1a !important;
    text-align: center !important;
    letter-spacing: 1px !important;   
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important; 
    margin: 0 auto 50px auto !important; 
    padding: 0 20px !important;
    width: 100% !important;
    display: block !important;
}

@media (max-width: 768px) {
    .text-col h2,
    .gallery-header h2,
    .portfolio-title-left h2,
    .collage-main-title,
    .team-main-title,
    .colab-header h2 {
        font-size: 27px !important;       
        letter-spacing: 0.5px !important; 
        margin-bottom: 35px !important;
    }
}

/* ========================================================= */
/* REGLA EXCLUSIVA: TÍTULO DE CONTACTO INDEPENDIENTE         */
/* ========================================================= */
.contact-title { 
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important; 
    font-size: 14px !important;          
    font-weight: 300 !important;          
    letter-spacing: 4px !important;       
    color: #ffffff !important; 
    text-align: left !important;          
    text-transform: uppercase !important; 
    margin: 0 0 40px 0 !important; 
    padding: 0 0 10px 0 !important;       
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important; 
    width: 100% !important; 
    display: block !important;
    white-space: normal !important;       
}

@media (max-width: 900px) {
    .contact-title {
        font-size: 13px !important;       
        text-align: center !important;    
        padding-bottom: 10px !important;
    }
}

/* ========================================================= */
/* 2. SECCIÓN HERO (INICIO) */
/* ========================================================= */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    padding-top: 80px;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', serif !important; /* ✨ Nueva fuente principal */
    font-size: clamp(45px, 8vw, 130px) !important; 
    font-weight: 300;
    letter-spacing: clamp(10px, 1.8vw, 22px) !important;
    margin-right: calc(-1 * clamp(10px, 1.8vw, 22px)) !important; 
    margin-bottom: 0px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: clamp(12px, 1.5vw, 16px) !important; /* ✨ Un poquito más grande */
    letter-spacing: clamp(6px, 1vw, 12px) !important;
    text-transform: uppercase !important;
    font-style: italic !important;
    font-weight: 400 !important; /* ✨ Más cuerpo para que no se vea tan frágil */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 2vw, 25px); 
    margin-top: 10px; 
    /* ✨ EL EFECTO: Sombra doble (Corte exacto + Halo suave) */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8), 
                 0px 0px 15px rgba(0, 0, 0, 0.5) !important;
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: '';
    display: block;
    width: clamp(35px, 6vw, 90px); 
    height: 1px; 
    background-color: rgba(255, 255, 255, 0.7); 
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 42px !important; 
        letter-spacing: 8px !important;
        margin-right: -8px !important;
    }
    .hero-subtitle {
        font-size: 11px !important; /* ✨ En celular también creció un poquito */
        letter-spacing: 5px !important;
        gap: 12px !important;
        margin-top: 15px !important;
    }
    .hero-subtitle::before,
    .hero-subtitle::after {
        width: 30px !important; 
    }
}
/* ========================================================= */
/* IMÁGENES HERO Y FILTRO OSCURO RESPONSIVO                  */
/* ========================================================= */

/* 1. Limpiamos cualquier rastro del fondo anterior */
.hero-slide {
    background: none !important;
}

/* 2. Comportamiento de las nuevas imágenes reales */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 3. ✨ LA MAGIA: Recreamos tu filtro oscuro del 27% ✨ */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.27); /* Tu mismo nivel de oscuridad */
    z-index: 1; /* Se queda por encima de la foto, pero por debajo de las letras */
    pointer-events: none; /* Permite que los clics pasen a través de él si fuera necesario */
}

/* ========================================================= */
/* 3. ENCABEZADO TRASLÚCIDO                                  */
/* ========================================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px clamp(25px, 3.5vw, 50px);
    box-sizing: border-box;
    transition: padding 0.4s ease-in-out, opacity 0.3s ease, background-color 0.3s ease;
    background-color: rgba(25, 25, 25, 0.15); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2vw, 24px); 
    letter-spacing: 5px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    z-index: 1001;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.7;
}

.nav-menu-desktop {
    display: flex;
    align-items: center;
}

.nav-list-desktop {
    display: flex;
    /* CAMBIO: El espacio entre botones ahora se adapta (mínimo 12px, máximo 25px) */
    gap: clamp(12px, 1.6vw, 25px); 
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    font-family: "Helvetica Neue", Arial, sans-serif;
    /* CAMBIO: La letra se adapta fluidamente (mínimo 9.5px, máximo 11px) */
    font-size: clamp(9.5px, 0.75vw, 11px); 
    /* CAMBIO: El espacio entre letras también se ajusta de forma proporcional */
    letter-spacing: clamp(1.5px, 0.2vw, 3px); 
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 6px;
    transition: opacity 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #ffffff;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.nav-item:hover::after,
.nav-item.active::after {
    opacity: 1;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.menu-toggle .bar {
    width: 100%;
    height: 1px;
    background-color: #ffffff;
    transition: 0.3s ease-in-out;
    filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.4));
}

.menu-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1), backdrop-filter 0.4s ease-in-out;
}

.nav-menu-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background-color: rgba(15, 15, 15, 0.85);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.nav-menu-overlay.open {
    right: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-list-overlay {
    display: flex;
    flex-direction: column;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 80px 60px 0 0;
    text-align: right;
    z-index: 1000;
}

.nav-item-overlay {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 6px;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.nav-item-overlay::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #ffffff;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.nav-item-overlay:hover::after,
.nav-item-overlay.active::after {
    opacity: 1;
}

@media (min-width: 769px) {
    .main-header.scrolled { padding: 20px 50px; }
    .main-header.show-burger .nav-menu-desktop {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .main-header.show-burger .menu-toggle {
        display: flex;
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .main-header { padding: 15px 25px; }
    .nav-menu-desktop { display: none; }
    .menu-toggle {
        display: flex;
        opacity: 1;
        visibility: visible;
    }
    .nav-menu-overlay::before { width: 100%; }
    .nav-list-overlay {
        padding: 140px 0 0 0;
        text-align: center;
        align-items: center;
        width: 100%;
    }
    .nav-item-overlay { font-size: 14px; }
}

/* ========================================================= */
/* 4. SECCIÓN SOBRE NOSOTROS (CARRUSEL Y MODAL)              */
/* ========================================================= */
.about-section {
    background-color: #AFA7A3;
    width: 100%;
    min-height: auto;
    display: block;
    padding: 0;
    margin: 0;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    max-width: none;
    position: relative;
    padding: 0;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 600px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    scroll-snap-align: start;
}

.slide-content {
    background-color: #AFA7A3;
    width: 100%;
    height: 100%;
    border-radius: 0;
    padding: 80px 60px;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 80px;
}

.slide-content.duo-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    height: 100%;
}

/* --- AJUSTES DE CAJA DE TEXTO EDITORIAL --- */
.text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Fuerza la alineación izquierda */
    color: #1a1a1a;
    max-width: 100%;
    height: 100%;
    padding-right: 80px; /* Margen derecho generoso para acotar el cuadro */
}

.text-col h2 {
    /* El orden es: arriba | derecha | abajo | izquierda */
    margin: 0 0 15px -19px !important; 
    text-align: left !important;
}

.text-col p {
    font-family: "Helvetica Neue", Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 16px;
    opacity: 0.85;
    text-align: justify; /* Cuadro perfectamente justificado */
    width: 100%;
}

.text-col p:last-of-type { 
    margin-top: 35px; /* Separa la firma hacia abajo */
    margin-bottom: 20px; 
    font-style: italic; /* Cursiva */
    text-align: left; /* La firma se ve mejor alineada a la izquierda */
}
/* ------------------------------------------ */

.media-col {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 14px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border: 1px solid #1a1a1a;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: transparent;
}

.dot.active {
    background-color: #1a1a1a;
    transform: scale(1.1);
}

.dot:hover { transform: scale(1.1); }

.pillars-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    width: 100%;
    height: 100%;
    padding: 0 40px;
}

.flip-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.flip-card-container:hover .flip-card-inner,
.flip-card-inner.flipped {
    transform: rotateY(180deg);
}

.flip-card-container:nth-child(2) .flip-card-front {
    background-size: 135%;
    background-position: center;
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    background-size: cover;
    background-position: center;
}

.flip-card-front { background-color: #aaa29a; }

.flip-card-back {
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    padding: 20px;
}

.flip-back-text {
    font-family: 'Marcellus', serif;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pillar-title {
    font-family: 'Marcellus', serif;
    font-size: 32px;
    font-weight: 400;
    color: #1a1a1a;
    margin-top: 35px;
    letter-spacing: 1px;
}

.flip-hint {
    display: none;
}

/* ========================================================= */
/* CLASES GLOBALES DE MODALES (RESTAURADAS)                  */
/* ========================================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background-color: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover { color: #aaa29a; }

/* ========================================================= */
/* RESPONSIVIDAD SOBRE NOSOTROS                              */
/* ========================================================= */
@media (max-width: 1024px) {
    .carousel-track { height: 550px; }
    .slide-content { padding: 60px 40px; gap: 40px; }
    .text-col { padding-right: 40px; } /* Reduce un poco el margen derecho en pantallas medianas */
    .text-col p { font-size: 14px; line-height: 1.45; }
}

@media (max-width: 900px) {
    .carousel-track { 
        height: auto !important; 
        min-height: 720px !important; 
    }
    .slide-content {
        padding: 40px 0px !important; 
        height: 100% !important;
    }
    .slide-content.duo-col {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .media-col { 
        order: 1; 
        width: 100vw !important; 
        height: 220px !important; 
        margin: 0 !important;
    }
    .media-col img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .text-col { 
        order: 2; 
        align-items: flex-start !important; 
        padding: 25px 32px 0 32px !important; /* En celular el padding controla ambos lados por igual */
        box-sizing: border-box !important;
    }
    .text-col h2 {
        text-align: left !important;
        margin: 0 0 15px 0 !important; 
        padding: 0 !important;
        font-size: 27px !important; 
    }
    .text-col p { 
        font-size: 13.5px !important; 
        line-height: 1.5; 
        margin-bottom: 12px !important; 
        text-align: justify !important; /* Justificado también en móvil */
        width: 100%;
    }
    .text-col p:last-of-type {
        text-align: left !important; /* La firma sigue alineada a la izquierda */
        margin-top: 25px !important;
    }
    .pillars-wrapper {
        display: grid !important; 
        grid-template-columns: repeat(2, 1fr) !important; 
        justify-items: center !important;
        align-content: start !important; 
        gap: 15px 8px !important; 
        padding: 150px 20px 0 20px !important; 
        height: 100% !important; 
        min-height: 580px !important;
        width: 100% !important;
    }
    .flip-card-container:nth-child(1) {
        grid-column: span 2 !important; 
    }
    .flip-card-inner {
        width: 145px !important;
        height: 145px !important;
        transform-origin: center center !important; 
    }
    .flip-back-text {
        font-size: 11px !important; 
        line-height: 1.4 !important;
        letter-spacing: 0.5px !important;
        padding: 8px !important;
    }
    .pillar-title {
        font-size: 14px !important;
        margin-top: 8px !important;
        text-align: center !important;
    }
    .flip-hint {
        font-size: 8.5px !important;
        margin-top: 2px !important;
    }
    .carousel-dots {
        bottom: 20px !important; 
    }
}

/* ========================================================= */
/* 5. SECCIÓN GALLERY (COLLAGE ORIGINAL Y RESPONSIVO)        */
/* ========================================================= */
.gallery-section {
    background-color: #dcd6d0;
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-header {
    text-align: center;
    width: 100%;
}

.gallery-instruction {
    font-family: "Helvetica Neue", Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-top: -35px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.desktop-instruction { display: block !important; }
.mobile-instruction  { display: none !important; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1200px;
}

.gallery-row-container,
.gallery-row-track {
    display: contents; 
}

.gallery-item {
    height: 340px;
    overflow: hidden;
    cursor: pointer;
    background-color: #aaa29a;
}

.gallery-item.wide   { grid-column: span 5; }
.gallery-item.medium { grid-column: span 4; }
.gallery-item.narrow { grid-column: span 3; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover img { transform: scale(1.06); }

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2900;
}
.close-lightbox:hover { color: #aaa29a; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    z-index: 2600;
    opacity: 0.5;
    transition: opacity 0.3s, color 0.3s;
    user-select: none;
}
.lightbox-nav:hover { color: #ffffff; opacity: 1; }
.lightbox-nav.prev { left: 40px; }
.lightbox-nav.next { right: 40px; }

@media (max-width: 900px) {
    .gallery-section {
        padding: 60px 0px !important; 
    }
    .desktop-instruction { display: none !important; }
    .mobile-instruction  { 
        display: block !important; 
        margin-top: -25px !important;
        margin-bottom: 30px !important;
        font-size: 10px !important;
    }
    .gallery-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important; 
        width: 100% !important;
    }
    .gallery-row-container {
        display: block !important; 
        width: 100vw !important;
        overflow: hidden;
        position: relative !important; 
    }
    .gallery-row-track {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important; 
        scroll-snap-type: x mandatory; 
        scrollbar-width: none; 
        width: 100% !important;
    }
    .gallery-row-track::-webkit-scrollbar { display: none; }
    .gallery-item {
        flex: 0 0 100vw !important;     
        height: 180px !important;      
        scroll-snap-align: start;      
        background-color: transparent !important;
    }
    .row-indicator-arrow {
        display: flex !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important; 
        right: 15px !important; 
        color: rgba(255, 255, 255, 0.6) !important; 
        font-size: 14px !important;
        z-index: 10 !important;
        background-color: rgba(0, 0, 0, 0.2) !important; 
        width: 26px;
        height: 26px;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
    }
}

@media (min-width: 901px) {
    .row-indicator-arrow { display: none !important; }
}
/* ========================================================= */
/* FRASE INSPIRACIONAL - GALERÍA                             */
/* ========================================================= */
.gallery-quote-container {
    width: 100%;
    max-width: 800px;
    margin: 80px auto 60px auto; 
    background-color: transparent; 
    text-align: center;
    padding: 0 10px; /* Reduje el padding para aprovechar el ancho en celulares */
    overflow: hidden; /* Evita que se salga de la pantalla si el cel es muy chico */
}

.seijaku-quote {
    margin: 0;
    font-family: 'Marcellus', serif;
    font-style: italic;
    font-weight: 400; 
    /* 🔥 Más pequeño: va de 12px en celulares a 22px en monitores grandes */
    font-size: clamp(12px, 3.5vw, 22px); 
    color: #2c2c2c;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    white-space: nowrap; /* ✨ GARANTIZA que se quede en un solo renglón siempre */
}

.quote-author {
    display: block;
    margin-top: 15px; /* Un poco más pegadito a la frase */
    font-family: "Helvetica Neue", Arial, sans-serif; 
    font-size: 10px; /* Más pequeñito para balancear */
    font-style: italic; /* ✨ Ahora el autor también está en cursiva */
    letter-spacing: 3px;
    color: #888888;
    text-transform: uppercase;
}

/* ========================================================= */
/* 6. SECCIÓN PORTAFOLIO ESTRELLA */
/* ========================================================= */
.portfolio-section {
    background-color: #AFA7A3;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.portfolio-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 890px;
    position: relative;
    padding: 0 40px;
}
/* ========================================================= */
/* SUBTÍTULO DE PORTAFOLIO (VISIBLE EN DESKTOP Y MÓVIL)      */
/* ========================================================= */
.portfolio-subtitle {
    font-family: "Helvetica Neue", Arial, sans-serif !important;
    font-size: 11px !important;
    letter-spacing: 2px !important;
    color: #1a1a1a !important;
    opacity: 0.6 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    margin-top: -35px !important;
    margin-bottom: 50px !important;
    display: block !important; /* ✨ El blindaje: le prohíbe ocultarse */
    width: 100% !important;
}

/* Ajuste proporcional para que se vea perfecto en celulares */
@media (max-width: 900px) {
    .portfolio-subtitle {
        font-size: 10px !important;
        margin-top: -25px !important;
        margin-bottom: 35px !important;
    }
}

.portfolio-nav-arrows {
    display: flex;
    gap: 20px;
    position: absolute;
    right: 40px;
    bottom: 20px;
    z-index: 10;
}

.arrow-btn {
    background: none;
    border: none;
    color: #1a1a1a;
    opacity: 0.5;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.arrow-btn:hover { opacity: 1; color: #ffffff; }

.portfolio-slider-wrapper {
    width: 100%;
    max-width: 890px;
    padding: 0 40px;
    overflow: hidden;
}

.portfolio-grid { 
    display: grid; 
    grid-template-rows: repeat(2, auto); 
    grid-template-columns: repeat(4, 380px); 
    
    /* ✨ LA MAGIA: Le dice que cualquier columna extra (5, 6, 7...) mida exactamente lo mismo */
    grid-auto-columns: 380px; 
    
    grid-auto-flow: column; 
    gap: 30px 50px; 
    width: 100%; 
    scroll-behavior: smooth; 
    overflow-x: auto; 
    scrollbar-width: none; 
}

.portfolio-grid::-webkit-scrollbar { display: none; }
.portfolio-card { display: flex; flex-direction: column; width: 100%; }

/* Tarjeta invisible para mantener el grid perfecto en números impares */ 
.ghost-card { 
    visibility: hidden !important; 
    pointer-events: none !important; 
    height: 100%; 
    margin: 0 !important; 
    padding: 0 !important; 
}

.portfolio-thumb-wrapper {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 4 / 4.5 !important;
    background-color: #ffffff !important;
    padding: 15px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

.portfolio-thumb { 
    /* ✨ LA SOLUCIÓN: Hacemos la foto flotante para que no deforme la caja */
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    width: calc(100% - 30px) !important;
    height: calc(100% - 30px) !important;
    object-fit: cover !important; 
    display: block !important;
}

.portfolio-overlay {
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px) saturate(100%);
    -webkit-backdrop-filter: blur(12px) saturate(100%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.portfolio-overlay span {
    color: #ffffff;
    font-family: 'Marcellus', serif;
    font-weight: bold;
    font-size: 24px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.portfolio-thumb-wrapper:hover .portfolio-overlay { opacity: 1; }

.portfolio-info {
    margin-top: 18px;
    padding-left: 2px;
    font-family: "Helvetica Neue", Helvetica, sans-serif;
    color: #1a1a1a;
}

.portfolio-info h4 { font-size: 12px; letter-spacing: 1px; font-weight: bold; margin-bottom: 10px; }
.portfolio-info p { font-size: 11px; line-height: 1.6; margin-bottom: 2px; opacity: 0.8; }

.project-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: #D1CBC74D;
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
}

.close-project-lightbox {
    position: absolute;
    top: 40px; right: 40px;
    color: #1a1a1a;
    cursor: pointer;
    z-index: 2020;
    display: flex;
}
.close-project-lightbox:hover { color: #6B6460; }

.modal-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 700px;
    z-index: 2010;
}

.modal-menu-container h2 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #1a1a1a;
    margin-bottom: 50px;
}

.category-circles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px 80px; }
.category-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; }

.circle-icon {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background-color: #9D9483;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1a1a1a;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.circle-icon svg { width: 45%; height: auto; }
.category-item:hover .circle-icon { transform: scale(1.08); }
.category-item span { margin-top: 15px; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 13px; color: #1a1a1a; letter-spacing: 0.5px; }

@media (max-width: 768px) {
    .category-circles-grid { gap: 30px 20px; }
    .circle-icon { width: 110px; height: 110px; }
    .category-item span { font-size: 11px; margin-top: 10px; }
}

.modal-gallery-container { display: flex; flex-direction: column; width: 100%; max-width: 800px; position: relative; z-index: 2010; margin: 0 auto; }
.back-to-menu-btn { position: absolute; left: 0; top: -45px; background: none; border: none; color: #000000; cursor: pointer; }
.modal-gallery-project-sub { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 16px; letter-spacing: 2px; color: #000000; margin-bottom: 25px; text-transform: uppercase; }

/* ========================================================= */
/* VISOR PRINCIPAL DE FOTOS Y VIDEOS (ESCRITORIO)            */
/* ========================================================= */
.main-photo-viewer { 
    width: 100%; 
    height: auto; 
    display: flex; 
    flex-direction: column; 
    background-color: transparent !important; 
} 

.main-photo-viewer img { 
    width: 100%; 
    height: 420px; 
    object-fit: cover; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    display: block; 
} 

#projectLightboxVideo { 
    width: 100%; 
    height: 420px !important; /* Mantiene exactamente el mismo tamaño que la foto horizontal */
    object-fit: contain; /* Encoge el video vertical para que quepa perfecto en el centro */
    
    /* ✨ LA MAGIA: El "relleno" de los lados será negro translúcido */
    background-color: rgba(15, 15, 15, 0.85) !important; 
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Le mantiene la misma sombra elegante */
    display: block;
}

#photo-caption-title { 
    margin-top: 15px; 
    margin-bottom: 0;
    font-family: "Helvetica Neue", Arial, sans-serif; 
    font-size: 12px; 
    letter-spacing: 1px; 
    color: #1a1a1a !important; 
    text-transform: uppercase; 
    text-align: left; /* ✨ AQUÍ ESTÁ EL AJUSTE AL MARGEN IZQUIERDO */
    display: block;
    width: 100%;
}

.thumbnails-glass-frame {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 60px;
    padding: 25px 0;
    background-color: rgba(68, 59, 59, 0.33);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
}

.thumbnails-inner-container { width: 100%; max-width: 800px; display: flex; flex-direction: column; }
.thumbnails-header { display: flex; justify-content: flex-end; width: 100%; margin-bottom: 12px; }
.thumb-nav-arrows { display: flex; gap: 20px; }
.thumb-nav-btn { background: none; border: none; color: #ffffff; opacity: 0.5; font-size: 16px; cursor: pointer; }
.thumb-nav-btn:hover { opacity: 1; }
.gallery-thumbnails-wrapper { width: 100%; overflow: hidden; }
.thumbnails-track { display: flex; gap: 15px; overflow-x: auto; width: 100%; justify-content: flex-start; scroll-behavior: smooth; scrollbar-width: none; }
.thumbnails-track::-webkit-scrollbar { display: none; }
.thumb-img { width: 85px; height: 60px; object-fit: cover; opacity: 0.4; cursor: pointer; flex-shrink: 0; }
.thumb-img.active, .thumb-img:hover { opacity: 1; border-bottom: 2px solid #ffffff; }

/* ========================================================= */
/* VISOR MÓVIL Y SISTEMA TÁCTIL (PROCESO OPTIMIZADO)         */
/* ========================================================= */
.mobile-portfolio-container {
    width: 100vw;
    height: 100vh; 
    overflow-y: auto; 
    position: absolute;
    top: 0; left: 0;
    display: flex;
    flex-direction: column;
}

.mobile-category-strip {
    position: sticky; 
    top: 60px;
    margin-top: 60px; 
    margin-bottom: 25px; 
    z-index: 10; 
    display: flex;
    justify-content: safe center; 
    align-items: center; 
    gap: 12px; 
    padding: 15px 15px 25px 15px; 
    background-color: rgba(68, 59, 59, 0.4); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    overflow-x: auto; 
    scrollbar-width: none;
    box-sizing: border-box;
    min-height: 105px; 
    height: auto; 
}

.mobile-category-strip::-webkit-scrollbar { display: none; }

/* ========================================================= */
/* ESTADO 1: DISPONIBLE PERO NO SELECCIONADO (VERDE ORIGINAL)*/
/* ========================================================= */
.mobile-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 55px; 
    flex-shrink: 0; 
    opacity: 1; 
    cursor: pointer;
    
    /* CAMUFLAJE: Usamos tu verde terroso (RGBA: 157, 148, 131) para ocultar el recuadro negro nativo */
    -webkit-tap-highlight-color: rgba(157, 148, 131, 0.4) !important; 
    
    -webkit-appearance: none !important; 
    appearance: none !important;
    border: none !important; 
    background: transparent !important; 
    box-shadow: none !important; 
}

/* Si el navegador fuerza un margen, lo pintamos de tu verde para que se fusione */
.mobile-cat-item:focus,
.mobile-cat-item:active,
.mobile-cat-item:focus-visible,
.mobile-cat-item *,
.mobile-cat-item *:focus,
.mobile-cat-item *:active,
.mobile-cat-item *:focus-visible {
    outline: 2px solid transparent !important; 
    outline-color: #9D9483 !important; 
    -webkit-tap-highlight-color: rgba(157, 148, 131, 0.4) !important;
    border: none !important;
    box-shadow: none !important;
}

.mobile-cat-item .circle-icon { 
    width: 48px;  
    height: 48px; 
    border-radius: 50%; 
    margin-bottom: 8px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    flex-shrink: 0; 
    background-color: #9D9483; 
    color: #1a1a1a; 
    transition: all 0.3s ease; 
    outline: none !important;
    border: none !important;
}

/* REGLA PARA VOLVER EL TRAZO DE LOS ICONOS MÁS DELGADO */
.mobile-cat-item .circle-icon svg path,
.mobile-cat-item .circle-icon svg [stroke] {
    stroke-width: 3px !important; 
    outline: none !important;
}

.mobile-cat-item .circle-icon svg {
    width: 50%; 
    height: auto;
    outline: none !important;
    border: none !important;
}

.mobile-cat-item span { 
    font-family: "Helvetica Neue", Arial, sans-serif; 
    font-size: 10px; 
    color: #ffffff; 
    text-align: center; 
    white-space: nowrap;
    display: block; 
    transition: all 0.3s ease;
    opacity: 0.9;
    outline: none !important;
}

/* ========================================================= */
/* ESTADO 2: SELECCIONADO (CRISTAL LUMINOSO)                 */
/* ========================================================= */
.mobile-cat-item.active { 
    opacity: 1; 
    outline: none !important;
}

.mobile-cat-item.active .circle-icon {
    background: rgba(255, 255, 255, 0.25) !important; 
    border: 1px solid rgba(255, 255, 255, 0.5) !important; 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff !important; 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4) !important; 
    outline: none !important;
}

/* Asegura que las líneas del icono activo también se mantengan delgadas */
.mobile-cat-item.active .circle-icon svg path,
.mobile-cat-item.active .circle-icon svg [stroke] {
    stroke-width: 3px !important;
}

.mobile-cat-item.active span {
    color: #ffffff !important;
    font-weight: 500; 
    opacity: 1;
    outline: none !important;
}

/* ========================================================= */
/* MULTIMEDIA, MODALES Y RESPONSIVIDAD GENERAL               */
/* ========================================================= */
.mobile-vertical-gallery { display: flex; flex-direction: column; gap: 3px; width: 100%; }
.mobile-gallery-img-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.mobile-gallery-img-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mobile-expand-icon {
    position: absolute;
    bottom: 15px; right: 15px;
    color: white; font-size: 16px;
    background-color: rgba(0,0,0,0.5);
    width: 35px; height: 35px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%; backdrop-filter: blur(4px);
    cursor: pointer;
}

.mobile-fs-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000; z-index: 3000; justify-content: center; align-items: center;
}
.mobile-fs-modal img { width: 100%; height: 100%; object-fit: contain; }
.close-m-fs { position: absolute; top: 20px; right: 20px; color: white; font-size: 35px; z-index: 3010; cursor: pointer; }

@media (max-width: 900px) {
    .portfolio-section { padding: 60px 20px 40px 20px !important; overflow: visible !important; } 
    
    /* Apaga el fantasma en celular porque ahí todo es de una columna */
    .ghost-card { display: none !important; }
    
    .portfolio-nav-arrows { display: none !important; }
    .portfolio-section { padding: 60px 20px 40px 20px !important; overflow: visible !important; }
    .portfolio-nav-arrows { display: none !important; }
    .portfolio-slider-wrapper { width: 100% !important; max-width: 100% !important; padding: 0 !important; }
    .portfolio-grid { display: flex !important; flex-direction: column !important; gap: 40px !important; width: 100% !important; overflow-x: hidden !important; }
    .portfolio-card { width: 100% !important; max-width: 420px; margin: 0 auto !important; }
    .portfolio-thumb-wrapper { 
        aspect-ratio: 4 / 3.5 !important; 
        padding: 10px !important;  
    }
    
    .portfolio-thumb {
        top: 10px !important;
        left: 10px !important;
        width: calc(100% - 20px) !important;
        height: calc(100% - 20px) !important;
    }

    .portfolio-info { margin-top: 12px; }
    
    .portfolio-scroll-down-arrow {
        display: flex !important;
        position: sticky !important;        
        bottom: 30px !important;            
        left: 50% !important;
        transform: translateX(-50%) !important;
        color: rgba(26, 26, 26, 0.5) !important; 
        font-size: 24px !important; 
        z-index: 10 !important;
        width: fit-content; margin: 0 auto; margin-top: -30px;
    }
    .animate-bounce { animation: bounce 2s infinite; }
    
    .close-project-lightbox {
        position: fixed !important; top: 15px !important; right: 15px !important; z-index: 2050 !important; 
        width: 32px !important; height: 32px !important; background-color: rgba(0, 0, 0, 0.45) !important; 
        border-radius: 50% !important; justify-content: center !important; align-items: center !important;
        color: #ffffff !important; backdrop-filter: blur(5px) !important; padding: 0 !important;
    }
    .close-project-lightbox svg { width: 14px !important; height: 14px !important; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@media screen and (orientation: portrait) {
    .mobile-fs-modal { overflow: hidden !important; }
    .mobile-fs-modal img { width: 100vh !important; height: 100vw !important; transform: rotate(90deg); object-fit: contain !important; }
    .close-m-fs { top: auto !important; bottom: 20px !important; right: 20px !important; transform: rotate(90deg); }
}

/* ========================================================= */
/* ESTILOS PARA VIDEOS Y BOTÓN PLAY EN MÓVIL                 */
/* ========================================================= */
.mobile-gallery-video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

.mobile-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Deja que el clic lo reciba el video */
    z-index: 5;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); /* Resalta en cualquier fondo */
}


/* ========================================================= */
/* ESTADO 3: VACÍO / DESACTIVADO (GRIS OPACO)                */
/* ========================================================= */
.disabled-category {
    opacity: 0.15 !important; 
    filter: grayscale(100%) !important; 
    pointer-events: none !important; 
    cursor: default !important;
}

/* ========================================== */
/* 7. SECCIÓN: PROCESO DE DISEÑO (MÉTODO SVG) */
/* ========================================== */
.process-section {
    background-color: #D1CBC7; /* Mantenemos tu elegante color de fondo */
    padding: 100px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-svg-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.process-svg {
    width: 100%;
    max-width: 100%; /* Candado de seguridad para el ancho */
    height: auto;
    max-height: 100%; /* Evita que crezca infinitamente a lo alto */
    object-fit: contain; /* Obliga a la imagen a contenerse en su caja sin deformarse */
    display: block;
}

/* --------------------------------------------------------- */
/* CONTROL DE VISIBILIDAD INTELIGENTE (RESPONSIVE)           */
/* --------------------------------------------------------- */

/* Cuando la pantalla es de COMPUTADORA (Grande) */
@media (min-width: 901px) {
    .desktop-svg {
        display: block; /* Muestra el SVG de escritorio */
    }
    .mobile-svg {
        display: none;  /* Oculta el de celular */
    }
}

/* Cuando la pantalla es de CELULAR (Chica) */
@media (max-width: 900px) {
    .process-section {
        padding: 60px 0; /* Un poco menos de espacio arriba y abajo en móvil */
    }
    .process-svg-container {
        width: 95%; /* Le damos un poquito más de aire a los lados en pantallas chicas */
    }
    .desktop-svg {
        display: none;  /* Oculta el de escritorio */
    }
    .mobile-svg {
        display: block; /* Muestra el SVG de celular */
    }
}

/* ========================================================= */
/* 7. SECCIÓN COMPLETA: EQUIPO */
/* ========================================================= */
.team-section { background-color: #ffffff; padding: 100px 40px; display: flex; justify-content: center; width: 100%; }
.team-container { width: 100%; max-width: 1200px; display: flex; flex-direction: column; }
.team-header-container { display: flex; justify-content: center; align-items: center; position: relative; width: 100%; }
.team-nav-arrows { display: none; }
.team-slider-wrapper { width: 100%; overflow: hidden; }
.team-grid { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 40px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 20px; width: 100%; }
.team-grid::-webkit-scrollbar { display: none; }

.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 0 0 220px; width: 220px; max-width: 220px; }
.team-img-wrapper { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 20px; background-color: #f4f4f4; }
.team-img-wrapper img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.3s ease, transform 0.4s ease; }
.team-img-wrapper img:hover { filter: grayscale(0%); transform: scale(1.05); }
.team-card h4 { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 13px; font-weight: 300; color: #1a1a1a; letter-spacing: 1px; line-height: 1.4; }

@media (max-width: 900px) {
    .team-section { padding: 60px 20px !important; }
    .team-nav-arrows { display: none !important; }
    .team-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px; overflow-x: hidden !important; width: 100% !important; padding: 0 15px; box-sizing: border-box;
    }
    .team-card { width: 100% !important; min-width: unset !important; margin: 0 !important; }
    .team-card h4 { font-size: clamp(0.75rem, 2.5vw, 1rem); text-align: center; margin-top: 10px; }
}
/* ========================================================= */
/* AJUSTE DE ENCUADRE PARA FOTOS DE EQUIPO                   */
/* ========================================================= */
.focus-top {
    /* Mueve el punto focal hacia arriba. Puedes ajustar el 15% si necesitas que bajen más o menos */
    object-position: center 15% !important; 
}

/* ========================================================= */
/* 8. SECCIÓN: COLABORACIONES                                */
/* ========================================================= */
.colaboraciones-section { background-color: #dcd6d0; padding: 100px 40px; display: flex; flex-direction: column; align-items: center; width: 100%; overflow: hidden; }
.colab-header { text-align: center; width: 100%; }
.colab-header p { 
    font-family: "Helvetica Neue", Arial, sans-serif; 
    font-size: 11px; /* ✨ Igualado a Galería y Portafolio */
    letter-spacing: 2px; /* ✨ Mismo espaciado elegante */
    color: #1a1a1a; 
    opacity: 0.6; /* ✨ Misma sutileza visual */
    text-transform: uppercase; 
    margin-top: -35px; 
    margin-bottom: 50px; 
}
.colab-container { display: flex; flex-direction: column; align-items: center; gap: 70px; width: 100%; max-width: 1100px; }
.colab-row { display: flex; justify-content: center; align-items: center; width: 100%; }
.top-row { gap: 50px; } 
.bottom-row { gap: 80px; }
.colab-logo { display: flex; justify-content: center; align-items: center; }
.colab-logo img { width: 100%; height: 100%; object-fit: contain; }

.item-1 { width: 160px; height: 80px; }  
.item-2 { width: 180px; height: 60px; }  
.item-3 { width: 190px; height: 90px; }  
.item-4 { width: 120px; height: 100px; } 
.item-5 { width: 170px; height: 60px; }  
.item-6 { width: 180px; height: 120px; } 
.item-7 { width: 140px; height: 80px; }  
.item-8 { width: 110px; height: 100px; } 

@media (max-width: 900px) { 
    /* ✨ Aumentamos el padding lateral de 20px a 50px para empujar todo al centro */
    .colaboraciones-section { padding: 80px 60px; } 

    /* ✨ Redujimos el column-gap de 15px a 10px para acercarlos un poco más entre sí */
    .colab-container { display: grid; grid-template-columns: 1fr 1fr; row-gap: 30px; column-gap: 10px; width: 100%; } 
    
    .colab-row { display: contents; } 
    .colab-logo { width: 100%; max-width: 140px; margin: 0 auto; } 
    
    .item-1 { grid-column: 1; transform: translateY(-10px); }
    .item-2 { grid-column: 2; transform: translateY(35px); }
    .item-3 { grid-column: 1 / span 2; margin-top: 20px; max-width: 170px; }
    .item-4 { grid-column: 1; transform: translateY(5px); }
    .item-5 { grid-column: 2; transform: translateY(-30px); }
    .item-6 { grid-column: 1 / span 2; margin-top: 5px; max-width: 160px; }
    .item-7 { grid-column: 1; transform: translateY(-10px); }
    .item-8 { grid-column: 2; transform: translateY(40px); }
}

/* ========================================================= */
/* 9. SECCIONES FINALES: CONTACTO */
/* ========================================================= */
.contact-section { width: 100%; min-height: 650px; background-image: url('images/footer.webp'); background-size: cover; background-position: center center; background-repeat: no-repeat; display: block; padding: 0; }
.contact-divided-container { display: grid; grid-template-columns: 1fr 1fr; width: 100%; min-height: 650px; }
.contact-left-col { background-color: rgba(163, 147, 130, 0.85); padding: 60px 80px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; box-sizing: border-box; height: 100%; }
.contact-right-col { background-color: transparent; height: 100%; }

.contact-brand-wrapper { display: flex; flex-direction: column; align-items: center; width: max-content; margin-bottom: 30px; }
.contact-brand { 
    font-family: 'Cormorant Garamond', serif !important; 
    font-size: 48px !important; /* ✨ Creció notablemente en desktop (antes 42px) */
    letter-spacing: 8px !important; /* Aire ajustado para compensar el nuevo tamaño */
    font-weight: 400 !important; 
    color: #ffffff !important; 
    margin-bottom: px !important; 
    margin-right: -8px !important; 
}

.contact-brand-subtitle { 
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important; /* ✨ Fuente de subtítulos */
    font-size: 8px !important; /* ✨ Tamaño ajustado al bloque de contacto */
    letter-spacing: 5px !important; /* ✨ Espaciado elegante */
    text-transform: uppercase !important; /* ✨ Todo en mayúsculas */
    font-style: italic !important; /* ✨ En cursiva */
    font-weight: 300 !important;
    color: #ffffff; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.2); 
    display: flex; 
    align-items: center; 
    width: 100%; 
    gap: 15px; 
    margin-top: 10px;
}

.contact-brand-subtitle::before, 
.contact-brand-subtitle::after { 
    content: ''; 
    display: block; /* ✨ Obliga a la línea a existir como un bloque */
    width: 40px; /* ✨ Ancho fijo, ya no depende del flex-grow */
    height: 1px; 
    background-color: rgba(255, 255, 255, 0.7); 
}

.contact-info-stack { 
    display: flex; 
    flex-direction: column; 
    gap: 35px; 
    width: 100%; 
}

.contact-person { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start;
}

.contact-name { 
    font-family: 'Helvetica Neue', serif; 
    font-size: 15px; 
    color: #ffffff; 
    font-weight: 400; 
    letter-spacing: 1.5px; 
    margin-bottom: 12px; 
}

.contact-details { 
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
}

.contact-details a { 
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 
    font-size: 14px; 
    color: #ffffff; 
    text-decoration: none; 
    letter-spacing: 0.5px; 
    opacity: 0.8; 
    transition: opacity 0.3s ease; 
}

.contact-details a:hover { 
    opacity: 1; 
}

/* Ajustes responsivos para centrar en móviles */
/* Ajustes responsivos para centrar en móviles y expandir el fondo Taupe */
@media (max-width: 900px) {
    /* ✨ TRUCO: Convertimos la cuadrícula de 2 columnas en 1 sola gigante */
    .contact-divided-container { 
        grid-template-columns: 1fr !important; 
    }
    
    /* ✨ Hacemos que el color taupe llegue de lado a lado y centramos todo */
    .contact-left-col { 
        padding: 60px 30px !important; 
        align-items: center !important;
        text-align: center !important;
    }
    
    /* ✨ Escondemos la columna transparente derecha porque ya no la necesitamos en celular */
    .contact-right-col { 
        display: none !important; 
    }

    /* Centramos los logos y la marca */
    .contact-brand-wrapper {
        margin: 0 auto 30px auto !important;
    }
    .contact-brand {
        margin-right: 0 !important;
    }
    .contact-title {
        text-align: center !important;
    }

    /* Reglas que ya tenías para el texto de las personas */
    .contact-person { align-items: center; }
    .contact-name { font-size: 16px; text-align: center; }
    .contact-details { align-items: center; text-align: center; }
}
/* ========================================================= */
/* EFECTO FADE-IN ON SCROLL (SCROLL REVEAL)                  */
/* ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    /* Solo animamos esto, nada más */
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform; 
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}