/* =========================================
   COMPONENTS.CSS (FINAL DEPURADO)
   ========================================= */

/* --- 1. BOTONES --- */
.btn {
    display: inline-flex; padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 1rem; transition: all 0.2s ease; cursor: pointer;
    align-items: center; justify-content: center; line-height: 1.5; text-align: center; text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: #fff; border: 1px solid var(--color-accent); box-shadow: 0 2px 4px rgba(255, 107, 53, 0.2); }
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-text-main); }
.btn-outline:hover { border-color: var(--color-text-body); background: #fff; }


/* --- 2. HEADER Y MEGA MENU DESKTOP --- */
.site-header {
    position: fixed; top: 0; width: 100%; z-index: 2000 !important;
    height: 80px; background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease; display: flex; align-items: center;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 100%; }
.site-header .logo img, .site-header .logo svg { height: 40px !important; width: auto !important; object-fit: contain; display: block; }

.main-nav.desktop-nav { margin-left: auto; margin-right: 2rem; }
.nav-list { display: flex; gap: 2rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav-link { font-size: 0.95rem; font-weight: 600; color: var(--color-text-body); transition: color 0.2s; background: none; border: none; cursor: pointer; padding: 0.5rem 0; display: flex; align-items: center; gap: 6px; text-transform: uppercase; font-family: inherit; }
.nav-link:hover { color: var(--color-accent); }
.header-actions { flex-shrink: 0; }
.chevron-icon { transition: transform 0.3s ease; color: var(--color-accent); width: 10px; }
.has-dropdown:hover .chevron-icon { transform: rotate(180deg); }

@media (min-width: 993px) {
    .mobile-header-actions, .mobile-sidebar, .mobile-overlay { display: none !important; }
    
    .nav-item.has-dropdown { position: relative; height: 100%; display: flex; align-items: center; }
    .nav-item.has-dropdown::after { content: ''; position: absolute; top: 100%; left: -50px; width: 200px; height: 20px; background: transparent; z-index: 1000; }

    .dropdown-menu.mega-menu {
        position: absolute; top: 55px; left: 50%; transform: translateX(-50%) translateY(10px);
        width: 90vw; max-width: 1000px; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 12px;
        box-shadow: 0 40px 80px -10px rgba(15, 23, 42, 0.15); padding: 0; opacity: 0; visibility: hidden; pointer-events: none;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); z-index: 999; overflow: hidden;
    }

    .nav-item.has-dropdown:hover .dropdown-menu.mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto !important; }

    .mega-grid { display: grid; grid-template-columns: 7fr 3fr; min-height: 400px; }
    .mega-links-area { padding: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; background: #fff; }
    .mega-group { display: flex; flex-direction: column; gap: 0.5rem; }
    .group-title { font-family: var(--font-display); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: #94A3B8; letter-spacing: 0.05em; margin-bottom: 0.5rem; border-bottom: 1px solid #E2E8F0; padding-bottom: 0.5rem; }
    .mega-link { display: block; text-decoration: none; padding: 0.5rem; border-radius: 6px; transition: all 0.2s ease; margin-left: -0.5rem; cursor: pointer; }
    .mega-link:hover { background-color: #F8FAFC; }
    .link-title { display: block; font-size: 0.95rem; font-weight: 700; color: #0F172A; margin-bottom: 0.2rem; pointer-events: none; }
    .link-sub { display: block; font-size: 0.8rem; color: #64748B; font-weight: 400; pointer-events: none; }
    .mega-link:hover .link-title { color: #FF6B35; }

    .mega-sidebar { background-color: #F8FAFC; border-left: 1px solid #E2E8F0; padding: 3rem 2.5rem; display: flex; flex-direction: column; justify-content: flex-start; }
    .sidebar-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--color-accent); margin-bottom: 1rem; line-height: 1.2; transition: opacity 0.2s; }
    .sidebar-text { font-size: 0.95rem; color: #334155; line-height: 1.6; transition: opacity 0.2s; }
}


/* --- 3. MENÚ MÓVIL (SIDEBAR) --- */
.mobile-sidebar {
    position: fixed; top: 0; right: -100%; width: 85vw; max-width: 350px; height: 100vh;
    background-color: #fff; box-shadow: -10px 0 30px rgba(0,0,0,0.1); z-index: 1999;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); overflow-y: auto; padding-top: 80px; display: flex; flex-direction: column;
}
.mobile-sidebar.is-open { right: 0; }

.mobile-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(4px); z-index: 1998;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.mobile-overlay.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; width: 40px; height: 40px; position: relative; z-index: 2001; }
.hamburger-line { display: block; position: absolute; left: 8px; width: 24px; height: 2px; background-color: var(--color-text-main); transition: all 0.3s ease; border-radius: 2px; }
.hamburger-line:nth-child(1) { top: 12px; } .hamburger-line:nth-child(2) { top: 19px; } .hamburger-line:nth-child(3) { top: 26px; }
.mobile-menu-btn.is-active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.mobile-nav-item { border-bottom: 1px solid #E2E8F0; width: 100%; }
.mobile-nav-link { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 1.25rem 1.5rem; font-size: 1.1rem; font-weight: 700; color: #0F172A; text-decoration: none; background: none; border: none; text-align: left; }

.mobile-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: #F8FAFC; }
.mobile-nav-item.is-open .mobile-accordion-content { max-height: 500px; }
.mobile-nav-item.is-open .chevron-icon { transform: rotate(180deg); }

.mobile-sub-link { display: block; padding: 0.8rem 1.5rem 0.8rem 2.5rem; font-size: 0.95rem; color: #334155; text-decoration: none; border-bottom: 1px solid #E2E8F0; }
.mobile-sub-link:last-child { border-bottom: none; }

@media (max-width: 992px) {
    .site-header { padding-inline: 1rem; }
    .desktop-nav { display: none !important; }
    .header-actions { display: none !important; }
    .mobile-menu-btn { display: block; }
}

/* --- 4. HERO FULL WIDTH --- */
.hero-section.hero-full-width {
    padding-top: 0 !important; padding-bottom: 0 !important; min-height: 60vh; 
    display: flex; align-items: center; position: relative; background-size: cover; background-position: center; color: #fff; 
}
.hero-overlay-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(15, 23, 42, 0.2) 100%); z-index: 1;
}
.hero-full-width .container { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-full-width .hero-content { max-width: 700px; padding-top: 10px; }
.hero-full-width .hero-title { color: #fff !important; font-size: 3.5rem; line-height: 1.1; }
.hero-full-width .hero-lead { color: rgba(255,255,255,0.9) !important; font-size: 1.25rem; }
.hero-full-width .eyebrow { color: var(--color-accent) !important; }
.hero-full-width .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero-full-width .btn-outline:hover { background: #fff; color: var(--color-text-main) !important; }

.hero-container-flex { display: flex; align-items: center; justify-content: space-between; height: 100%; position: relative; z-index: 2; padding-top: 80px; }
.hero-visual-layer { flex: 1; display: flex; justify-content: flex-end; position: relative; }
.interface-img { max-width: 120%; width: 650px; height: auto; transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); transition: transform 0.5s ease; }
.hero-visual-layer:hover .interface-img { transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02); }


/* --- 5. COMPOSICIÓN FLOTANTE (QUÉ HACEMOS & ADN) --- */
.about-section { padding-block: 6rem; overflow: hidden; background: var(--color-bg-surface); }
.about-section .about-visuals { height: 600px; width: 100%; position: relative; overflow: visible; }
.about-visuals .hero-composition { transform: scale(0.8); transform-origin: center center; width: 100%; height: 100%; position: absolute; top: 0; left: 0; }

.hero-composition { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.layer { position: absolute; top: 50%; left: 50%; will-change: transform; }

@keyframes drift-slow { 0% { transform: translate3d(0,0,0) rotate(0deg); } 100% { transform: translate3d(0,-15px,0) rotate(1deg); } }
.layer:nth-child(odd) { animation: drift-slow 7s ease-in-out infinite alternate; }
.layer:nth-child(even) { animation: drift-slow 9s ease-in-out infinite alternate-reverse; }

.shape-bg { width: 500px; height: 500px; background: radial-gradient(circle, rgba(200,200,200,0.2) 0%, transparent 70%); border-radius: 50%; margin-left: -250px; margin-top: -250px; z-index: 0; }
.code-terminal { width: 240px; background: #0f172a; border-radius: 12px; padding: 1.5rem; z-index: 4; margin-left: -160px; margin-top: -140px; color: #fff; font-family: monospace; font-size: 0.8rem; box-shadow: 0 30px 60px rgba(0,0,0,0.3); }
.terminal-dots { display: flex; gap: 5px; margin-bottom: 10px; }
.dot { width: 10px; height: 10px;  } .dot.red{background:#ff5f56} .dot.yellow{background:#ffbd2e} .dot.green{background:#27c93f}

.photo-rails { width: 300px; height: 506px; z-index: 2; margin-left: 20px; margin-top: -200px;  border-radius: 12px; background-size: cover; background-position: center; }
.photo-board { width: 280px; height: 200px; z-index: 3; margin-left: -280px; margin-top: 20px;  border-radius: 12px; background-size: cover; background-position: center; }

.ui-card { background: #fff; padding: 1rem; border-radius: 16px; width: 200px; display: flex; align-items: center; gap: 10px; z-index: 5; margin-left: 80px; margin-top: 120px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.icon-box { width: 40px; height: 40px; background: #FFF7ED; color: #FF6B35; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.text-box span { display: block; line-height: 1.2; }

.shape-rect-orange { width: 60px; height: 60px; background: #FF6B35; position: absolute; z-index: 1; margin-left: 200px; margin-top: -80px; border-radius: 8px; }
.ui-toggle { background: #0f172a; padding: 5px 12px; border-radius: 20px; display: flex; gap: 8px; align-items: center; z-index: 1; margin-left: -200px; margin-top: -240px; color: #fff; font-size: 0.7rem; font-weight: 700; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.pill-badge { background: #fff; color: #0f172a; padding: 8px 16px; border-radius: 50px; font-weight: 700; font-size: 0.8rem; z-index: 6; margin-left: 140px; margin-top: -20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Collage Estático ADN */
.visual-image { position: relative; height: 500px; }
.laptop-img { position: absolute; top: 0; left: -60px; width:auto; height: 300px; z-index: 2; overflow: hidden; }
.tablet-img { position: absolute; bottom: 0; right: 0; width:auto; height: 380px; z-index: 4; overflow: hidden; }
.laptop-img img, .tablet-img img { width: 100%; height: 100%;  }
.orange-top { position: absolute; top: -20px; left: 0; width: 120px; height: 120px; background-color: var(--color-accent); z-index: 1; }
.pink-accent { position: absolute; bottom: 40px; left: 40px; width: 80px; height: 80px; background-color: #F06292; z-index: 3; }
.orange-bottom { position: absolute; bottom: 30px; right: -20px; width: 140px; height: 25px; background-color: var(--color-accent); z-index: 5; }


/* --- 6. MARQUEE INFINITO (VELOCIDAD CORREGIDA) --- */
.marquee-section { background-color: #0f172a; padding: 1.5rem 0; overflow:hidden;}
.marquee-track { 
    display:flex; width:max-content; gap:2rem;
    animation: marquee-scroll 80s linear infinite; /* VELOCIDAD CORREGIDA AQUÍ */
}
.marquee-content {display:flex; align-items:center; gap:2rem;}
.marquee-content .text {font-family:var(--font-display); font-weight:800; font-size:1.5rem; color:#fff; text-transform:uppercase; white-space:nowrap;}
.marquee-content .separator-arrow {font-family:var(--font-display); font-weight:300; font-size:2rem; color:var(--color-accent);}
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-section:hover .marquee-track { animation-play-state: paused; } /* Pausa al pasar el mouse */


/* --- 7. OTRAS SECCIONES (Trust, Services, Testimonials) --- */
.trust-ecosystem { padding-block: 4rem; background: #fff; overflow: hidden; }
.partners-dark-header { background-color: #1a1a1a; padding: 1rem; border-radius: 12px; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 2rem; margin: 0 auto; text-align: center; }

.slider { height: 100px; margin: auto; position: relative; width: 100%; display: grid; place-items: center; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.slide-track { display: flex; width: calc(200px * 22); animation: scroll 40s linear infinite; }
.slide { height: 100px; width: 200px; display: flex; align-items: center; justify-content: center; padding: 15px; }
.slide img { max-height: 60px; width: auto; object-fit: contain; opacity: 0.7; filter: grayscale(100%); transition: all 0.3s ease; }
.slide img:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.05); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-200px * 11)); } }

.services-section { padding-block: 6rem; }
.section-header { margin-bottom: 4rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; align-items: stretch; }
@media (min-width: 1200px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 2rem; transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.service-card:hover { border-color: var(--color-accent); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); transform: translateY(-4px); }
.card-icon { width: 48px; height: 48px; background: rgba(255, 107, 53, 0.1); color: var(--color-accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; color: var(--color-text-main); }
.card-link { font-weight: 700; color: var(--color-accent); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; margin-top: auto; }
.card-link:hover { gap: 10px; }

/* Testimonios */
.clients-section { padding-block: 6rem; border-top: 1px solid var(--color-border); }
.testimonials-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 5% 60px 5%; scrollbar-width: none; -ms-overflow-style: none; }
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card { background: #FFFFFF; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 3rem 2.5rem; position: relative; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; flex: 0 0 auto; width: 400px; scroll-snap-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); border-color: var(--color-accent); }
.card-decoration { position: absolute; top: 1.5rem; left: 2rem; font-size: 5rem; line-height: 1; font-family: serif; color: var(--color-accent); opacity: 0.15; pointer-events: none; }
.quote-text { font-size: 1.1rem; line-height: 1.7; color: var(--color-text-body); margin-bottom: 2rem; position: relative; z-index: 2; font-style: italic; }
.quote-footer { display: flex; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--color-bg-surface); }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; color: #fff; flex-shrink: 0; }
.author-avatar.dark { background-color: #0F172A; } .author-avatar.orange { background-color: #FF6B35; }
.author-info { display: flex; flex-direction: column; }
.author-name { font-style: normal; font-weight: 700; color: var(--color-text-main); font-size: 1rem; }
.author-role { font-size: 0.85rem; color: var(--color-text-muted); }


/* --- 8. FOOTER --- */
.site-footer { background-color: #050a14; color: #fff; padding-top: 5rem; padding-bottom: 2rem; }
.site-footer .logo-text { color: #ffffff !important; }
.site-footer .footer-title { color: #ffffff; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.2rem; opacity: 0.9; }
.site-footer .footer-links a { color: #94a3b8; text-decoration: none; transition: color 0.2s; font-size: 0.95rem; display: block; margin-bottom: 0.6rem; }
.site-footer .footer-links a:hover { color: var(--color-accent); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.dot-spark { color: var(--color-accent); }


/* --- 9. RESPONSIVE GENERAL Y FIX DE GRIDS EN MÓVIL --- */
.about-grid, .visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

@media (max-width: 992px) {
    /* Fix Grids: Forzar 1 columna en móvil en lugar de aplastarse */
    .about-grid, .visual-grid { 
        grid-template-columns: 1fr !important; 
        gap: 2rem !important; 
    }
    
    /* Invertir orden en móvil: Texto primero, luego las imágenes */
    .about-content, .visual-content { order: 1; }
    .about-visuals, .visual-image { order: 2; }

    /* Ajustes Hero Mobile */
    .hero-container-flex { flex-direction: column; justify-content: center; text-align: center; padding-top: 120px; }
    .hero-content { padding-right: 0; margin-bottom: 3rem; }
    .hero-visual-layer { display: none !important; } 
    .hero-full-width .hero-title { font-size: 2.5rem !important; }
    .hero-full-width .hero-lead { font-size: 1.1rem !important; }
    .hero-cta-group { justify-content: center; }

    /* Ajuste Contenedores Visuales (Evitar que se corten) */
    .about-section .about-visuals { height: 350px; margin-bottom: 0; }
    .about-visuals .hero-composition { transform: scale(0.5); } 
    .visual-image { height: 350px !important; margin-top: 2rem; }

    /* Partners Full Width */
    .trust-ecosystem .container { width: 100% !important; max-width: 100%; padding-inline: 0; }
    .partners-dark-header { border-radius: 0; margin-inline: 0; width: 100%; padding: 1.5rem 1rem; }
    .partners-logos-container { gap: 1.5rem; }
    .partner-logo-img { height: 24px; }
    
    .testimonial-card { width: 85vw; }
}

@media (max-width: 480px) {
    .hero-full-width .hero-title { font-size: 2.2rem !important; }
    .hero-cta-group { flex-direction: column; width: 100%; }
    .hero-cta-group .btn { width: 100%; }
}


.eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: block;
}

.trust-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.partners-dark-header {
    background-color: #1a1a1a;
    padding: 14px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: 0 auto 3rem auto;
    text-align: center;
}

.partners-logos-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.text-center {
    text-align: center;
}

.about-visuals .hero-composition {
    transform: scale(0.8);
    transform-origin: center center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
@media (max-width: 992px) {
    .hero-composition {
        display: none !important;
    }
}

.shape-bg {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 200, 200, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    margin-left: -250px;
    margin-top: -250px;
    z-index: 0;
}
.layer {
    position: absolute;
    top: 50%;
    left: 50%;
    will-change: transform;
}

.shape-rect-orange {
    width: 60px;
    height: 60px;
    background: #FF6B35;
    position: absolute;
    z-index: 1;
    margin-left: 200px;
    margin-top: -80px;
    border-radius: 8px;
}
.ui-toggle {
    background: #485b82;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 1;
    margin-left: -200px;
    margin-top: -200px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.photo-rails {
    width: 350px;
    height: 506px;
    background-size: cover;
    border-radius: 12px;
    z-index: 2;
    margin-left: -310px;
    margin-top: -150px;
}

.code-terminal {
    width: 240px;
    background: #0f172a;
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 4;
    margin-left: -160px;
    margin-top: -140px;
    color: #fff;
    font-family: monospace;
    font-size: 0.8rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.photo-board {
    width: 450px;
    height: 450px;
    background-size: cover;
    z-index: 2;
    margin-left: 50px;
    margin-top: -300px;
    opacity: 0.9;
}
.ui-card {
    background: #fff;
    padding: 1rem;
    border-radius: 16px;
    width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
    margin-left: 80px;
    margin-top: 120px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: #fff;
}

.site-footer .footer-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.dg-01{
    background: linear-gradient(90deg, #eee7fd 2.53%, #f6f3fe 50.98%, #ffd4d8) !important;
}
.dg-02{
   background: linear-gradient(90deg, #eee7fd80 2.53%, #f6f3fe69 50.98%, #ffd4d838) !important;
}

.dg-03{
background: linear-gradient(90.32deg, #e3d6ff, #ffd4d8);
}

.bg-04{background-color: #f7f3fe !important;}
.bg-05{background-color: #eee9fd !important;}
.bg-06{background-color: #e3d7ff!important;}





/* =========================================
   4. HERO FULL WIDTH (AHORA CON VIDEO)
   ========================================= */
.hero-section.hero-full-width {
    padding-top: 0 !important; 
    padding-bottom: 0 !important; 
    min-height: 60vh; 
    display: flex; 
    align-items: center; 
    position: relative; 
    /* Quitamos el background de imagen aquí, ahora se maneja por el video */
    background-color: var(--color-bg-dark); /* Color de fallback si el video no carga */
    color: #fff; 
    overflow: hidden; /* IMPORTANTE: Para que el video no se desborde */
}

/* --- ESTILOS DEL VIDEO --- */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0; /* Al fondo del todo */
    object-fit: cover; /* Asegura que no se deforme */
    /* OPcional: Puedes bajarle la opacidad aquí si quieres que se mezcle con el color de fondo */
    /* opacity: 0.8; */
}

/* --- OVERLAY / FILTRO DE COLOR --- */
.hero-overlay-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* GRADIENTE ACTUAL: Azul oscuro sólido a la izq -> Azul semitransparente al centro -> Casi transparente a la der 
      Esto hace que el texto se lea perfecto, pero deja ver el video en la parte derecha de la pantalla.
    */
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(15, 23, 42, 0.4) 100%); 
    
    /* ALTERNATIVA: Si quieres un filtro de color plano parejo en lugar de gradiente, usa esto en vez del background de arriba: */
    /* background: rgba(15, 23, 42, 0.7); */
    
    /* EFECTOS EXTRA (Descomenta para probar) */
    /* backdrop-filter: blur(3px); /* Difumina un poco el video */
    /* mix-blend-mode: multiply; /* Efectos avanzados de mezcla de color */
    
    z-index: 1; /* Encima del video, debajo del contenido */
}

/* --- CONTENIDO HERO --- */
.hero-full-width .container { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-full-width .hero-title { color: #fff !important; font-size: 3.5rem; line-height: 1.1; }
.hero-full-width .hero-lead { color: rgba(255,255,255,0.9) !important; font-size: 1.25rem; }
.hero-full-width .eyebrow { color: var(--color-accent) !important; }

/* Ajustes botones Hero Oscuro */
.hero-full-width .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero-full-width .btn-outline:hover { background: #fff; color: var(--color-text-main) !important; border-color: #fff; }

.hero-container-flex { display: flex; align-items: center; justify-content: space-between; height: 100%; position: relative; z-index: 2; padding-top: 80px; }
.hero-visual-layer { flex: 1; display: flex; justify-content: flex-end; position: relative; }
.interface-img { max-width: 120%; width: 650px; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); transition: transform 0.5s ease; }
.hero-visual-layer:hover .interface-img { transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02); }

@media (max-width: 992px) {
    .hero-container-flex { flex-direction: column; justify-content: center; text-align: center; padding-top: 120px; }
    .hero-content { padding-right: 0; margin-bottom: 3rem; }
    .hero-visual-layer { display: none !important; } 
    .hero-full-width .hero-title { font-size: 2.5rem !important; }
    .hero-full-width .hero-lead { font-size: 1.1rem !important; }
    .hero-cta-group { justify-content: center; }
    
    /* En móvil, el gradiente suele ser mejor más oscuro o sólido porque el texto ocupa toda la pantalla */
    .hero-overlay-gradient { background: rgba(15, 23, 42, 0.85); }
}
@media (max-width: 480px) {
    .hero-full-width .hero-title { font-size: 2.2rem !important; }
    .hero-cta-group { flex-direction: column; width: 100%; }
    .hero-cta-group .btn { width: 100%; }
}