/* =========================================
   1. RESET Y CONFIGURACIÓN BASE
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    --c-magenta: #D4006A;
    --c-amarillo: #FFE900;
    --c-amarillo-texto: #f9eb26;
    --c-gris-claro: #ccc;
    --c-gris-oscuro: #aaa;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #fff;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* =========================================
   2. UI DE NAVEGACIÓN (IZQUIERDA)
   ========================================= */
.side-nav-container {
    position: fixed; top: 40px; left: 40px; z-index: 5000;
    display: flex; flex-direction: column; align-items: flex-start;
}

.social-header {
    display: flex; gap: 15px; margin-bottom: 30px; padding-left: 5px;
}
.social-header a {
    color: var(--c-gris-claro); font-size: 1.2rem; transition: color 0.3s; text-decoration: none;
}
.social-header a:hover { color: var(--c-magenta); }

.hamburger-btn {
    width: 35px; height: 25px; cursor: pointer; position: relative; margin-bottom: 20px;
}
.hamburger-btn span {
    display: block; width: 100%; height: 2px; background: var(--c-gris-claro); position: absolute; left: 0; transition: 0.4s;
}
.hamburger-btn span:nth-child(1) { top: 0; }
.hamburger-btn span:nth-child(2) { top: 11px; }
.hamburger-btn span:nth-child(3) { top: 22px; }

.side-nav-container.open .hamburger-btn span:nth-child(1) { transform: rotate(45deg); top: 11px; background: var(--c-magenta); }
.side-nav-container.open .hamburger-btn span:nth-child(2) { opacity: 0; }
.side-nav-container.open .hamburger-btn span:nth-child(3) { transform: rotate(-45deg); top: 11px; background: var(--c-magenta); }

.nav-menu {
    display: flex; flex-direction: column; width: 220px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: 0.4s ease;
}
.side-nav-container.open .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-item {
    text-decoration: none; color: var(--c-gris-oscuro); font-size: 1.1rem; padding: 10px 0 10px 15px; transition: 0.3s; display: block; position: relative;
}
.nav-item.active {
    background: var(--c-magenta); color: var(--c-amarillo) !important; font-weight: bold;
}
.nav-item.active::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 6px; background: var(--c-amarillo);
}

/* =========================================
   3. SISTEMA DE PÁGINAS RÍGIDAS
   ========================================= */
.pages-stack { width: 100%; height: 100vh; position: relative; }
.page { position: absolute; width: 100%; height: 100%; top: 0; left: 0; visibility: hidden; opacity: 0; z-index: 1; }
.page.active { visibility: visible; opacity: 1; z-index: 10; }

/* --- SECCIÓN 1: HOME --- */
.hero-section { width: 100%; height: 100%; position: relative; display: flex; align-items: center; background: #fff; }
.logo-container { position: absolute; right: 33%; top: 45%; transform: translateY(-50%); width: 450px; z-index: 20; }
.logo-container img { width: 100%; height: auto; }
.hero-art { position: absolute; top: 0; right: 0; height: 100%; z-index: 5; }
.hero-art img { height: 100%; object-fit: contain; }

/* --- SECCIÓN 2: QUIÉNES SOMOS --- */
.quienes-section { width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: flex-end; }
.quienes-art { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }
.quienes-art img { width: 100%; height: 100%; object-fit: cover; }
.quienes-content { position: relative; z-index: 20; color: white; width: 45%; margin-right: 8%; text-align: left; }
.subtitle { font-size: 1.6rem; color: var(--c-amarillo); margin-bottom: 5px; font-weight: 400; }
.title { font-size: 6rem; font-weight: 900; line-height: 0.85; margin: 20px 0; text-transform: lowercase; }
.yellow-3 { color: var(--c-amarillo); }
.description { font-size: 1.2rem; line-height: 1.4; margin-bottom: 25px; font-weight: 300; }

/* --- SECCIÓN 3: QUÉ HACEMOS --- */
.quehacemos-section { width: 100%; height: 100%; position: relative; overflow: hidden; }
.quehacemos-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.quehacemos-bg img { width: 100%; height: 100%; object-fit: cover; }
.quehacemos-content {
    position: relative; z-index: 20; width: 45%; height: 100%; margin-left: 10%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.subtitle-grey { font-size: 2rem; color: #999; margin-bottom: 15px; font-weight: 300; }
.title-huge { font-size: clamp(4rem, 6vw, 7rem); font-weight: 900; color: #000; line-height: 0.85; margin-bottom: 40px; text-transform: uppercase; letter-spacing: -2px; }
.inline-3-img { height: 0.9em; vertical-align: bottom; }
.description-grey { font-size: 1.15rem; color: #bbb; line-height: 1.4; max-width: 100%; margin-bottom: 40px; font-weight: 400; }
.description-grey strong { color: #888; font-weight: 700; }
.highlight-magenta { background-color: var(--c-magenta); color: var(--c-amarillo-texto); padding: 2px 6px; font-weight: 700; }
.logos-footer { width: 100%; display: flex; justify-content: flex-start; }
.logos-footer img { width: 100%; height: auto; display: block; }

/* --- SECCIÓN 4: NUESTRA EXPERIENCIA --- */
.experiencia-section {
    width: 100%; height: 100%; position: relative; overflow: hidden; display: flex; align-items: center;
}
.experiencia-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.experiencia-bg img { width: 100%; height: 100%; object-fit: cover; }

.experiencia-container {
    position: relative; z-index: 20; width: 100%; height: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 5% 0 15%;
}
.experiencia-text { width: 45%; }
.title-experiencia {
    font-size: clamp(3rem, 4vw, 5.5rem); font-weight: 900; color: #000; line-height: 0.9; text-transform: uppercase; letter-spacing: -2px;
}
.highlight-3 { color: #000; }

.logos-grid {
    width: 50%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-right: 50px;
}
.logo-circle {
    background: white; border-radius: 50%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); padding: 15px; opacity: 0; transform: translateY(30px);
}
.logo-circle img { width: 90%; height: auto; object-fit: contain; }

/* Animación Logos */
.page.active .logo-circle { animation: fadeUp 0.6s ease forwards; }
.page.active .logo-circle:nth-child(1) { animation-delay: 0.6s; }
.page.active .logo-circle:nth-child(2) { animation-delay: 0.7s; }
.page.active .logo-circle:nth-child(3) { animation-delay: 0.8s; }
.page.active .logo-circle:nth-child(4) { animation-delay: 0.9s; }
.page.active .logo-circle:nth-child(5) { animation-delay: 1.0s; }
.page.active .logo-circle:nth-child(6) { animation-delay: 1.1s; }
.page.active .logo-circle:nth-child(7) { animation-delay: 1.2s; }
.page.active .logo-circle:nth-child(8) { animation-delay: 1.3s; }
.page.active .logo-circle:nth-child(9) { animation-delay: 1.4s; }
.page.active .logo-circle:nth-child(10) { animation-delay: 1.5s; }
.page.active .logo-circle:nth-child(11) { animation-delay: 1.6s; }
.page.active .logo-circle:nth-child(12) { animation-delay: 1.7s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* =========================================
   SECCIÓN 5: CONTACTO
   ========================================= */

.contacto-section {
    width: 100%; height: 100%; position: relative; overflow: hidden; display: flex; justify-content: flex-end; align-items: center;
}
.contacto-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.contacto-bg img { width: 100%; height: 100%; object-fit: cover; }

.contacto-content {
    position: relative; z-index: 20; width: 100%; height: 100%; 
    display: flex; flex-direction: column; justify-content: center; /* Centra el formulario vertical */
    align-items: flex-end; 
    padding: 0 10% 80px 0; /* Padding derecho */
}

/* Form Wrapper */
.form-wrapper { width: 550px; margin-right: 5%; }

/* Cabecera Alineada */
.contacto-header {
    text-align: left;
    padding-left: 95px;
    margin-bottom: 20px;
}
.subtitle-grey-small { font-size: 1.5rem; color: #999; font-weight: 300; margin-bottom: 0; }
.title-contact { font-size: 3.5rem; font-weight: 900; color: #000; line-height: 0.9; letter-spacing: -2px; }

/* Formulario */
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
.form-group label {
    font-size: 1.1rem; color: #666; font-weight: 300; text-align: right; min-width: 80px;
}
.form-group label.label-top { align-self: flex-start; margin-top: 8px; }

.form-group input, .form-group textarea {
    width: 380px; border: 2px solid #ccc; border-radius: 20px; padding: 5px 15px;
    font-family: inherit; font-size: 1rem; color: #333; outline: none; background: rgba(255, 255, 255, 0.5); transition: 0.3s;
}
.form-group input { height: 38px; }
.form-group textarea { border-radius: 20px; resize: none; height: 120px; padding-top: 10px; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--c-magenta); background: #fff; }

.form-footer { display: flex; justify-content: flex-end; margin-top: 5px; }
.btn-enviar {
    background-color: var(--c-magenta); color: var(--c-amarillo); border: none; border-radius: 20px; padding: 6px 40px; font-size: 1.3rem; font-weight: 700; cursor: pointer; transition: transform 0.2s;
}
.btn-enviar:hover { transform: scale(1.05); }

/* Footer Info (CENTRADOS ABAJO) */
.footer-info {
    position: absolute; bottom: 0; left: 0; width: 100%; z-index: 30;
    display: flex; flex-direction: column; align-items: center;
    gap: 10px; padding-bottom: 20px; pointer-events: none;
}
.footer-info * { pointer-events: auto; }
.footer-logo img { height: 35px; width: auto; margin-bottom: 5px; }

.info-line {
    display: flex; gap: 40px; color: #aaa; font-size: 0.85rem; align-items: center; justify-content: center; flex-wrap: wrap;
}
.info-item i { margin-right: 5px; font-size: 1rem; }

.copyright-line {
    width: 100%; border-top: 1px solid #eee; text-align: center; padding-top: 10px; margin-top: 5px;
}
.copyright-line p { color: #bbb; font-size: 0.7rem; }

/* =========================================
   SCROLL INDICATOR & TRANSICIONES
   ========================================= */
.transition-circle {
    position: fixed; top: 50%; left: 50%; width: 100px; height: 100px; background: var(--c-magenta); border-radius: 50%; z-index: 6000; transform: translate(-50%, -50%) scale(0); pointer-events: none;
}
.transition-circle.animate { animation: growCircle 1.2s cubic-bezier(0.7, 0, 0.3, 1) forwards; }
@keyframes growCircle {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(50); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(60); opacity: 0; }
}

.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 5000;
    color: white; mix-blend-mode: difference; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700;
}
.mouse { width: 24px; height: 38px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.mouse::after {
    content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background: currentColor; border-radius: 50%; animation: wheelScroll 1.5s infinite;
}
@keyframes wheelScroll { 0% { top: 6px; opacity: 1; } 100% { top: 22px; opacity: 0; } }

.scroll-indicator.orange-style { color: #E69526; mix-blend-mode: normal; }
.scroll-indicator.grey-style { color: #ccc; mix-blend-mode: normal; }

/* BOTÓN SUBIR (AJUSTE) */
#btnSubir {
    bottom: 160px !important; z-index: 50;
}

/* =========================================
   RESPONSIVE (MÓVIL)
   ========================================= */
@media (max-width: 1200px) {
    .logos-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    /* UI */
    .navigation-sidebar { top: 20px; left: 20px; }
    
    /* Home */
.hero-section {background: linear-gradient(to bottom, #fff 40%, #ffffff 40%);}
    .logo-container { right: auto; left: 50%; transform: translate(-50%, -50%); width: 80%; top: 30%; }
    .hero-art { height: 60%; bottom: 0; top: auto; width: 100%; }
    
    /* Contenido General */
    .quienes-content, .quehacemos-content { width: 85%; margin: 0 auto; padding-left: 0; text-align: center; }
    .title, .title-huge, .title-experiencia { font-size: 3.5rem; }
    .logos-footer img { width: 80%; margin: 0 auto; }
    
    /* Experiencia */
    .experiencia-container { flex-direction: column; justify-content: center; padding: 80px 20px; text-align: center; }
    .experiencia-text, .logos-grid { width: 100%; padding: 0; }
    .title-experiencia { margin-bottom: 30px; }
    .logos-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; }

    /* Contacto Móvil */
    .contacto-section { justify-content: center; }
    .contacto-content { 
        align-items: center; padding: 80px 20px 180px 20px; overflow-y: auto; 
    }
    .form-wrapper { width: 100%; margin-right: 0; margin-top: 0; text-align: center; }
    .contacto-header { padding-left: 0; text-align: center; }
    .title-contact { font-size: 2.5rem; }
    .form-group { flex-direction: column; align-items: stretch; gap: 5px; }
    .form-group label { text-align: left; min-width: auto; }
    .form-group input, .form-group textarea { width: 100%; }
    
    /* Footer Móvil */
    .footer-info { position: relative; bottom: auto; left: auto; padding-top: 20px; }
    .info-line { flex-direction: column; gap: 10px; }
    
    /* Botón Subir Móvil */
    #btnSubir { bottom: 20px !important; position: absolute; }
    
}
/* =========================================
   CORRECCIÓN DE CHOQUE CON FONDO AMARILLO
   (Para Laptops y Tablets Horizontales)
   ========================================= */

@media (max-width: 1350px) {
    /* 1. Reducimos el ancho de la caja de texto */
    .quienes-content {
        width: 38%; /* Antes era 45%, lo bajamos para que no toque lo amarillo */
        margin-right: 5%; /* Lo acercamos un poco más al borde derecho */
    }

    /* 2. Achicamos el título para que no se rompa */
    .title {
        font-size: 4.5rem; 
    }
}

@media (max-width: 1100px) {
    /* Si la pantalla es aún más chica, restringimos más */
    .quienes-content {
        width: 35%; /* Muy angosto, solo en la zona magenta */
        margin-right: 2%; 
    }
    
    .title {
        font-size: 3.5rem; /* Letra más pequeña */
    }
    
    .description {
        font-size: 1rem; /* Texto de párrafo más pequeño */
    }
    
    /* Ajuste para el título "Home" que también podría chocar */
    .logo-container {
        right: 25%; /* Lo movemos un poco para asegurar */
    }
}