/* =========================================
   DELPHOZ PRODUCTS CSS - FINAL MASTER
   ========================================= */

.fa-solid, .fas { font-family: "Font Awesome 6 Free" !important; font-weight: 900; }
a { text-decoration: none !important; }

/* Scroll bloqueado en el body siempre, el scroll es interno */
body { overflow: hidden; } 

.prod-layout {
    display: flex; flex-direction: column;
    width: 100vw; height: 100vh;
    padding-top: 0;
    background-color: #fff; /* Fondo blanco base */
    position: relative;
}

/* =========================================
   ESTILOS BASE (MOBILE FIRST)
   ========================================= */

/* --- 1. BARRA DE NAVEGACIÓN GRIS --- */
.prod-nav {
    position: fixed; /* SIEMPRE FIJA EN MÓVIL */
    top: 60px; /* Debajo del Header Global (60px) */
    left: 0; width: 100%; 
    height: 50px; /* ALTURA MÓVIL 50PX */
    background: #e5e7eb; 
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 900; 
    display: flex; align-items: center; justify-content: center;
}

.prod-nav ul {
    list-style: none; display: flex; gap: 30px; padding: 0 20px; margin: 0;
    overflow-x: auto; white-space: nowrap; width: 100%; 
    justify-content: center; /* CENTRADO EN MÓVIL */
    scrollbar-width: none; align-items: center; height: 100%;
}
.prod-nav ul::-webkit-scrollbar { display: none; }

.prod-nav a {
    color: #6b7280; font-size: 0.8rem; font-weight: 600; 
    text-transform: uppercase; letter-spacing: 1px;
    height: 100%; display: flex; align-items: center; transition: color 0.3s ease;
}
/* ESTADO ACTIVO: SOLO COLOR (Sin líneas) */
.prod-nav a:hover, .prod-nav a.active { color: var(--dark-color); font-weight: 800; }


/* --- 2. COLUMNA VISUAL (IMÁGENES) --- */
.visual-col {
    position: fixed; /* SIEMPRE FIJA EN MÓVIL */
    top: 110px; /* 60px Header + 50px Nav */
    left: 0; 
    width: 100%; height: 160px; /* ALTURA FIJA IMAGEN */
    background: #000; z-index: 10; 
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* DEGRADADO DE PROTECCIÓN */
.visual-col::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
    z-index: 5; pointer-events: none;
}

/* CONTENEDOR IMAGEN CSS BACKGROUND */
.visual-item {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.6s ease;
    background-size: cover; background-position: center center;
    background-repeat: no-repeat;
    z-index: 1; background-color: #000;
}
.visual-item.active { opacity: 1; z-index: 2; }

/* URLs IMÁGENES MÓVIL (PRODUCTS) */
#img-yupi      { background-image: url('../img/yupi-phone.webp'); }
#img-secretary { background-image: url('../img/secretary-phone.webp'); }
#img-mentor    { background-image: url('../img/mentor-phone.webp'); }
#img-plush     { background-image: url('../img/plush-phone.webp'); }

/* URLs IMÁGENES MÓVIL (SERVICES) */
#img-identity  { background-image: url('../img/identity-phone.webp'); }
#img-apps      { background-image: url('../img/apps-phone.webp'); }
#img-merch     { background-image: url('../img/merch-phone.webp'); }
#img-pack      { background-image: url('../img/pack-phone.webp'); }


/* --- 3. COLUMNA CONTENIDO (ZONA DE SCROLL) --- */
.content-col {
    /* POSICIONAMIENTO MATEMÁTICO */
    position: fixed;
    top: 270px; /* 60 (Head) + 50 (Nav) + 160 (Img) */
    left: 0; width: 100%; 
    height: calc(100vh - 270px); /* El resto de la pantalla */
    
    overflow-y: auto; scroll-behavior: smooth;
    scroll-snap-type: y mandatory; 
    background-color: #fff;
    z-index: 20;
    scrollbar-width: none;
}
.content-col::-webkit-scrollbar { display: none; }

.sections-wrapper {
    /* Padding interno del texto */
    padding: 40px 20px 100px 20px; 
    min-height: auto;
}


/* --- 4. SECCIONES Y ANIMACIONES --- */
.prod-section {
    min-height: 60vh; 
    display: flex; flex-direction: column; justify-content: center;
    margin-bottom: 60px; 
    scroll-snap-align: start; 
    scroll-margin-top: 20px; 
    opacity: 1; 
}

/* ANIMACIÓN FADE IN DOWN */
.animate-group > * {
    opacity: 0; transform: translateY(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.prod-section.reveal-visible .animate-group > * { opacity: 1; transform: translateY(0); }

/* Delays Cascada */
.prod-section.reveal-visible .animate-group > *:nth-child(1) { transition-delay: 0.1s; }
.prod-section.reveal-visible .animate-group > *:nth-child(2) { transition-delay: 0.2s; }
.prod-section.reveal-visible .animate-group > *:nth-child(3) { transition-delay: 0.3s; }
.prod-section.reveal-visible .animate-group > *:nth-child(4) { transition-delay: 0.4s; }
.prod-section.reveal-visible .animate-group > *:nth-child(5) { transition-delay: 0.5s; }
.prod-section.reveal-visible .animate-group > *:nth-child(6) { transition-delay: 0.6s; }

/* ESTILOS DE TEXTO */
.tags-group { margin-bottom: 15px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag-pill { background: #f3f4f6; color: #6b7280; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; padding: 5px 12px; border-radius: 4px; }
.prod-content h2 { color: var(--dark-color); font-size: 2.4rem; margin-bottom: 10px; line-height: 1.1; font-weight: 800; letter-spacing: -1px; }
.prod-content h3 { color: var(--primary-color); font-size: 0.9rem; font-weight: 700; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
.desc-text { color: #374151; font-size: 1.05rem; line-height: 1.6; margin-bottom: 30px; }

.value-grid { display: grid; grid-template-columns: 1fr; gap: 15px; background: #f9fafb; padding: 25px; border-radius: 8px; margin-bottom: 35px; }
.value-item { display: flex; align-items: flex-start; gap: 12px; }
.value-item i { color: var(--primary-color); font-size: 1.2rem; margin-top: 2px; text-align: center; }
.value-item span { color: #4b5563; font-size: 0.9rem; font-weight: 600; }

.prod-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.btn-request { background-color: var(--dark-color); color: #fff; padding: 14px 35px; border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; box-shadow: 0 4px 15px rgba(0,78,112, 0.15); transition: transform 0.2s; }
.btn-request:hover { transform: translateY(-2px); background-color: var(--primary-color); }
.btn-download { color: var(--dark-color); font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; opacity: 0.9; }
.btn-download:hover { opacity: 1; text-decoration: underline !important; }

/* FOOTER (FULL WIDTH & SIEMPRE OSCURO) */
.clean-footer { 
    width: 100%; /* Ocupa todo el ancho */
    scroll-snap-align: end; 
    margin-top: auto; 
    padding: 80px 20px 40px; 
    text-align: center; 
    
    background-color: var(--text-color); 
    color: #fff; 
    
    position: relative; z-index: 20;
}
.footer-mini-logo { 
    height: 75px; /* ALTURA 75PX */
    margin-bottom: 25px; 
    filter: brightness(0) invert(1); 
    opacity: 0.9; 
}
.footer-nav-row a { color: #cbd5e1; margin: 0 8px; font-size: 0.8rem; }
.footer-nav-row a:hover { color: #fff; }
.copy { color: #94a3b8; font-size: 0.7rem; margin-top: 15px; }


/* =========================================
   MEDIA QUERIES: DESKTOP (> 768px)
   ========================================= */
@media (min-width: 768px) {
    .prod-layout { flex-direction: row; padding-top: 0; }

    /* MENU DESKTOP: STICKY, 90PX, IZQUIERDA */
    .prod-nav { 
        position: sticky; top: 0; 
        width: 100%; height: 90px; /* 90PX EN DESKTOP */
        justify-content: flex-start; padding-left: 10%; order: -1; 
        background: #e5e7eb;
    }
    .prod-nav ul { justify-content: flex-start; width: auto; gap: 40px; }
    
    /* VISUAL COL: SPLIT SCREEN (Izquierda Completa) */
    .visual-col { 
        position: relative; /* Ya no fixed */
        top: 0; width: 40%; height: 100vh; 
        background: #050505; border-right: none; 
    }
    
    /* URLs IMÁGENES DESKTOP (PRODUCTS) */
    #img-yupi      { background-image: url('../img/yupi-desktop.webp'); }
    #img-secretary { background-image: url('../img/secretary-desktop.webp'); }
    #img-mentor    { background-image: url('../img/mentor-desktop.webp'); }
    #img-plush     { background-image: url('../img/plush-desktop.webp'); }

    /* URLs IMÁGENES DESKTOP (SERVICES) */
    #img-identity  { background-image: url('../img/identity-desktop.webp'); }
    #img-apps      { background-image: url('../img/apps-desktop.webp'); }
    #img-merch     { background-image: url('../img/merch-desktop.webp'); }
    #img-pack      { background-image: url('../img/pack-desktop.webp'); }

    /* CONTENT COL: DERECHA COMPLETA */
    .content-col { 
        position: relative; /* Ya no fixed */
        top: 0; width: 60%; height: 100vh;
        padding: 0; 
        background-color: #fff; 
    }
    
    .sections-wrapper { 
        margin-top: 0; 
        padding-top: 60px; padding-left: 10%; padding-right: 15%; 
        min-height: auto;
    }
    
    .prod-section { min-height: 90vh; justify-content: center; scroll-margin-top: 90px; }
    
    .value-grid { grid-template-columns: 1fr 1fr; gap: 30px; } 
    .prod-content h2 { font-size: 3.8rem; }
    
    /* En desktop, footer ocupa 100% de la columna derecha, sigue siendo oscuro */
    .clean-footer { 
        border-top: none; 
    }
}

/* FIX MOVIL (< 768px) */
@media (max-width: 767px) {
    .prod-nav { position: fixed; top: 60px; left: 0; }
}


/* ========================================================
   ESTILOS ESPECÍFICOS: PÁGINA CONTACTO (UPDATED)
   ======================================================== */

/* 1. DESBLOQUEAR SCROLL SOLO EN CONTACTO */
body.contact-page {
    overflow-y: auto !important; /* Permite scroll normal */
    overflow-x: hidden;
}

/* Layout Base Contacto */
.contact-layout {
    width: 100vw; 
    min-height: 100vh; /* Altura mínima, crece con contenido */
    height: auto;
    position: relative;
    background-color: #f4f4f4;
    display: flex; flex-direction: column;
}

/* --- VISUAL DE FONDO --- */
.contact-visual {
    /* En Desktop sigue siendo fijo para efecto elegante */
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    background-image: url('../img/contact-desktop.webp');
    background-size: cover; background-position: center; background-repeat: no-repeat;
}

/* --- CONTENEDOR FLOTANTE --- */
.contact-wrapper {
    position: relative; z-index: 10;
    width: 100%; max-width: 1200px;
    margin: 0 auto;
    /* En desktop usamos min-height para centrar, pero permitimos scroll */
    min-height: 90vh; 
    display: flex; justify-content: flex-end; align-items: center;
    padding: 120px 20px 60px;
    pointer-events: none;
    flex: 1; /* Empuja el footer hacia abajo */
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 100%; max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    pointer-events: auto;
    display: flex; flex-direction: column;
}

/* --- MAPA Y TABS --- */
.map-section {
    background: #e5e7eb;
    height: 250px; position: relative;
}

.map-tabs {
    position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
    display: flex; background: #fff; padding: 5px; border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); z-index: 20;
}

.tab-btn {
    border: none; background: none; padding: 8px 20px;
    border-radius: 20px; font-size: 0.8rem; font-weight: 700;
    color: #6b7280; cursor: pointer; transition: all 0.3s ease;
}
.tab-btn.active { background: var(--dark-color); color: #fff; }

.map-frame {
    width: 100%; height: 100%; border: 0;
    display: none;
}
.map-frame.active { display: block; }

/* --- FORMULARIO --- */
.form-section { padding: 40px; }
.form-section h2 { color: var(--dark-color); font-size: 1.8rem; margin-bottom: 10px; font-weight: 800; }
.form-section p { color: #6b7280; margin-bottom: 30px; font-size: 0.95rem; }

.contact-form { display: grid; gap: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; background: #f9fafb;
    border: 1px solid #e5e7eb; border-radius: 6px;
    font-family: inherit; color: var(--text-color); outline: none;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-color); background: #fff; }
.form-group textarea { height: 120px; resize: none; }

.btn-send {
    background-color: var(--dark-color); color: #fff; border: none;
    padding: 15px; border-radius: 6px; font-weight: 700; text-transform: uppercase;
    cursor: pointer; transition: background 0.3s; font-size: 0.9rem;
}
.btn-send:hover { background-color: var(--primary-color); }

/* --- DATOS DIRECCIÓN --- */
.address-info {
    padding: 0 40px 20px; margin-top: -20px;
    font-size: 0.85rem; color: #6b7280; display: none;
}
.address-info.active { display: block; }
.address-info strong { color: var(--dark-color); display: block; margin-bottom: 4px; }

/* --- BOTÓN FLOTANTE --- */
.floating-call-btn {
    position: fixed; bottom: 40px; right: 40px;
    width: 70px; height: 70px;
    background-color: #f59e0b;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    z-index: 100; text-decoration: none;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* --- FOOTER EN CONTACTO --- */
.contact-footer {
    position: relative; z-index: 10;
    background: var(--text-color);
    margin-bottom: auto;
    width: 100%;
}

/* =========================================
   MEDIA QUERY CONTACTO (MOBILE)
   ========================================= */
@media (max-width: 1023px) {
    .contact-layout { 
        background: #fff; display: block; height: auto; 
    }
    
    .contact-visual {
        position: relative; /* Ya no fijo, fluye normal */
        height: 50vh; /* Ocupa mitad de pantalla para VER BIEN A LA CHICA */
        width: 100%;
        background-image: url('../img/contact-phone.webp') !important;
        background-position: top center; 
        background-size: cover;
    }

    .contact-wrapper {
        display: block; padding: 0; margin: 0; 
        min-height: auto; 
        pointer-events: auto;
    }

    .contact-card {
        max-width: 100%; border-radius: 0; box-shadow: none;
        /* Quitamos margen negativo agresivo para no tapar la cara */
        margin-top: 0; 
        border-top-left-radius: 25px; 
        border-top-right-radius: 25px;
        position: relative; z-index: 20;
        background: #fff;
    }

    .map-section, .address-info { display: none !important; }
    
    /* Menos padding para que no ocupe tanto */
    .form-section { padding: 30px 20px 80px; } 
    
    .floating-call-btn { width: 60px; height: 60px; font-size: 1.5rem; bottom: 20px; r: 20px; }
}