/* ==========================================================================
   CSS EXACT MATCH FOR PROVIDED DESIGN (Dark Deep Blue / Magenta / Cyan)
   (Ahora optimizada con separación de secciones y "Sobre Nosotros")
   ========================================================================== */

:root {
    /* Backgrounds */
    --bg-dark: #070514; 
    --bg-card: #0c0822; 
    --bg-card-hover: #120c33;
    
    /* Gradientes & Colores base */
    --magenta: #d946ef;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    
    --primary-gradient: linear-gradient(90deg, #d946ef 0%, #3b82f6 100%);
    --card-border: rgba(139, 92, 246, 0.3);
    
    /* Text */
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    
    /* Utility */
    --green: #22c55e;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark); color: var(--text-muted);
    font-family: 'Inter', sans-serif; line-height: 1.6; overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo-title { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-white); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.text-green { color: var(--green); }
.icon-small { width: 18px; height: 18px; }
.icon-tiny { width: 14px; height: 14px; }
.text-left { text-align: left; }
.justify-center { justify-content: center; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.text-gradient {
    background: var(--primary-gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; display: inline-block;
}
.text-accent { color: var(--magenta); }

.btn-gradient {
    background: var(--primary-gradient); color: #fff; padding: 10px 24px;
    border-radius: 8px; font-weight: 600; display: inline-flex; align-items: center;
    gap: 8px; border: none; cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
}
.btn-gradient:hover {
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(217, 70, 239, 0.5); filter: brightness(1.1);
}

.btn-outline {
    background: transparent; color: #fff; padding: 10px 24px; border-radius: 8px;
    font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer; transition: all 0.3s ease;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.5); }

.large-btn { padding: 14px 32px; font-size: 1.1rem; }
.w-100 { width: 100%; justify-content: center; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.inline-block { display: inline-flex; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: all 0.3s ease; border-bottom: 1px solid transparent; }
.navbar.scrolled { background: rgba(7, 5, 20, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 15px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 40px; }
.logo-title { font-size: 1.1rem; font-weight: 700; display: block; line-height: 1.1;}
.logo-subtitle { font-size: 0.65rem; color: var(--text-muted); display: block;}
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--magenta); }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: var(--bg-card); z-index: 2000; padding: 40px 24px; transition: right 0.3s ease; border-left: 1px solid var(--card-border); }
.mobile-menu.active { right: 0; }
.close-menu { background: none; border: none; color: #fff; cursor: pointer; position: absolute; right: 24px; top: 24px; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.mobile-menu a { font-size: 1.2rem; font-weight: 600; color: #fff; }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero { padding: 75px 0 60px; position: relative; overflow: hidden; }
.particles-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.5; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(217, 70, 239, 0.1); border: 1px solid rgba(217, 70, 239, 0.3); padding: 6px 16px; border-radius: 50px; color: var(--magenta); font-size: 0.70rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 24px; }
.badge-icon { width: 16px; height: 16px; }
.hero-text-col h1 { font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }
.hero-text-col p { font-size: 1.05rem; margin-bottom: 40px; max-width: 500px; color: #cbd5e1;}
.hero-actions { display: flex; gap: 16px; }
.hover-glow { filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.5)); }

/* Hero Visual 3D Logo */
.visual-wrapper { position: relative; width: 100%; aspect-ratio: 1; display: flex; justify-content: center; align-items: center; }
.glow-base { position: absolute; bottom: 10%; width: 80%; height: 20%; background: radial-gradient(ellipse, rgba(59, 130, 246, 0.5) 0%, transparent 70%); border-radius: 50%; filter: blur(20px); }
.glow-rings { position: absolute; bottom: 15%; width: 90%; height: 20%; border-radius: 50%; border: 2px solid rgba(59, 130, 246, 0.4); box-shadow: 0 0 20px rgba(59, 130, 246, 0.6), inset 0 0 20px rgba(59, 130, 246, 0.6); transform: rotateX(75deg); }
.hero-3d-img { width: 90%; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 0 30px rgba(217,70,239,0.5)); }
.floating { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* Trust Bar */
.trust-bar { display: flex; justify-content: space-between; margin-top: 60px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; font-weight: 500; color: #e2e8f0; }
.trust-icon { width: 20px; height: 20px; }

/* ==========================================================================
   CLIENTS SECTION (Infinite Marquee)
   ========================================================================== */
.clients-section { padding: 40px 0; overflow: hidden; }
.section-subtitle { text-align: center; color: var(--magenta); font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 30px; line-height: 1; text-transform: uppercase;}
.container-fluid { width: 100%; max-width: 100%; overflow: hidden;}

.logos-marquee-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}
.logos-track {
    display: inline-flex;
    gap: 80px;
    align-items: center;
    animation: scrollMarquee 25s linear infinite;
    padding-left: 80px;
}
.logos-track:hover { animation-play-state: paused; }
.logos-track span { font-size: 1.5rem; font-weight: 800; font-family: 'Plus Jakarta Sans'; color: rgba(255,255,255,0.6); letter-spacing: -1px; transition: color 0.3s; cursor: pointer; }
.logos-track span:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* ==========================================================================
   STATS SECTION (Ventajas)
   ========================================================================== */
.stats-section { padding: 40px 0 60px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box {
    display: flex; align-items: center; justify-content: center;
    gap: 15px; padding: 20px; background: rgba(255,255,255,0.02);
}
.stat-box:hover { transform: translateY(-5px); }
.stat-icon { width: 36px; height: 36px; opacity: 0.9; }
.magenta-icon { color: var(--magenta); filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.5)); }
.blue-icon { color: var(--blue); filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5)); }

.stat-number { font-size: 2rem; font-weight: 800; font-family: 'Plus Jakarta Sans'; color: #fff; line-height: 1;}
.stat-text { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; line-height: 1.2; text-align: left; }

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .logos-track { gap: 40px; }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section { padding: 60px 0; position: relative; overflow: hidden; }
.section-center-header { text-align: center; margin-bottom: 50px; }
.pre-title { font-size: 0.70rem; color: var(--magenta); letter-spacing: 2px; display: block; margin-bottom: 15px; }
.section-center-header h2 { font-size: 2.2rem; line-height: 1.2;}

.services-carousel-grid { 
    display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; 
    padding-bottom: 20px; scroll-behavior: smooth; margin-bottom: 40px;
    -ms-overflow-style: none; scrollbar-width: none;
}
.services-carousel-grid::-webkit-scrollbar { display: none; }

.services-carousel-grid .service-wrapper {
    flex: 0 0 350px; scroll-snap-align: center; 
}
@media (max-width: 1024px) { .services-carousel-grid .service-wrapper { flex: 0 0 320px; } }
@media (max-width: 768px) { .services-carousel-grid .service-wrapper { flex: 0 0 290px; } }

.glow-card { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 24px 15px; text-align: center; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.glow-card:hover { border-color: var(--card-border); box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15), inset 0 0 20px rgba(139, 92, 246, 0.05); transform: translateY(-5px); background: var(--bg-card-hover); }
.icon-wrapper { width: 50px; height: 50px; margin: 0 auto 20px; display: flex; justify-content: center; align-items: center; border-radius: 12px; background: rgba(217, 70, 239, 0.05); color: var(--magenta); box-shadow: 0 0 15px rgba(217, 70, 239, 0.2); }
.icon-wrapper .lucide { width: 26px; height: 26px; stroke-width: 2.5;}

.service-card h3 { font-size: 1.05rem; margin-bottom: 12px; line-height: 1.3; }
.service-card p { font-size: 0.75rem; color: var(--text-muted); }
.services-footer { text-align: center; margin-top: 40px; }

/* ==========================================================================
   NUEVA SECCIÓN: QUIÉNES SOMOS / ABOUT
   ========================================================================== */
.about-section {
    padding: 100px 0;
    position: relative;
}
.about-container {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center;
}
.about-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.about-text p { margin-bottom: 20px; font-size: 1.05rem; color: #cbd5e1; }
.about-text strong { color: #fff; }

.about-features { margin-top: 30px; display: flex; flex-direction: column; gap: 15px; }
.about-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }

.about-card-visual { padding: 50px 30px; border-color: rgba(59, 130, 246, 0.3); background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1), transparent 70%); }
.mega-icon { width: 80px; height: 80px; margin: 0 auto 20px; opacity: 0.9; filter: drop-shadow(0 0 20px rgba(217, 70, 239, 0.5)); }
.about-card-visual h3 { font-size: 1.5rem; margin-bottom: 15px; }
.about-card-visual p { font-size: 0.9rem; color: var(--text-muted); }

/* ==========================================================================
   TESTIMONIALS & CIRCULAR LOGOS (Ahora sección de ancho completo)
   ========================================================================== */
.testimonials-section { padding: 80px 0; border-top: 1px solid rgba(255,255,255,0.05); background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.05) 0%, transparent 50%); }

/* ==========================================================================
   APPS INTEGRATIONS MARQUEE (2 ROWS, INFINITE)
   ========================================================================== */
.apps-marquee-section {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}
.apps-marquee-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
}
.apps-track {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    padding-left: 12px;
}
.apps-track-fwd {
    animation: appsScrollFwd 35s linear infinite;
}
.apps-track-rev {
    animation: appsScrollRev 35s linear infinite;
}
.apps-track:hover { animation-play-state: paused; }

@keyframes appsScrollFwd {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes appsScrollRev {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.app-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 50px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    cursor: default;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 transparent;
}
.app-pill:hover {
    background: rgba(var(--c, 255 255 255) / 0.1);
    border-color: color-mix(in srgb, var(--c, #fff) 50%, transparent);
    box-shadow: 0 0 14px color-mix(in srgb, var(--c, #fff) 25%, transparent);
    transform: translateY(-2px);
    color: #fff;
}
.app-pill svg { flex-shrink: 0; }
.app-pill-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}

/* Circular Logos */
.circular-logos { display: flex; align-items: center; gap: 15px; margin-bottom: 60px;}
.nav-arrow { background: none; border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nav-arrow .lucide { width: 30px; height: 30px; color: var(--blue);}
.circle-logo { width: 65px; height: 65px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.1); display: flex; justify-content: center; align-items: center; text-align: center; font-size: 0.55rem; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; line-height: 1.2; }

/* Testimonials Grid */
.spacious-grid { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px; 
    max-width: 1000px; margin: 0 auto;
}
.testi-card { padding: 30px; border-radius: 16px; }
.testi-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.testi-header img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.1); }
.t-info h5 { font-size: 1.05rem; }
.t-info span { font-size: 0.8rem; color: var(--text-muted); line-height: 1.2; display: block; margin-top: 2px;}
.stars { color: #eab308; font-size: 1rem; margin-bottom: 15px; letter-spacing: 2px;}
.testi-card p { font-size: 0.95rem; color: #cbd5e1; font-style: italic; }

/* ==========================================================================
   CONTACT FORM SECTION (Separada y Centrada)
   ========================================================================== */
.contact-section { padding: 80px 0 40px; position: relative;}
.form-centered-wrapper { max-width: 850px; margin: 0 auto; }
.form-glow-bg {
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), var(--bg-card) 60%);
    border: 1px solid rgba(255,255,255,0.1); padding: 60px; text-align: left; border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.line-accent-center { display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.line-accent-center::before, .line-accent-center::after { content: ''; width: 40px; height: 1px; background: rgba(59,130,246,0.5); margin: 0 15px; }

.form-title { font-size: 0.85rem; color: var(--cyan); letter-spacing: 2px; text-align: center; margin-bottom: 15px; }
.form-card h2 { text-align: center; margin-bottom: 40px; font-size: 2.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.input-group { margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px;}
.input-group label { font-size: 0.9rem; color: #fff; font-weight: 500;}
.input-group input, .input-group textarea {
    width: 100%; border-radius: 8px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); padding: 15px 20px;
    color: #fff; font-family: 'Inter', sans-serif; transition: border 0.3s; font-size: 0.95rem;
}
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--blue); background: rgba(255,255,255,0.08); box-shadow: 0 0 0 3px rgba(59,130,246,0.2); }
.form-notice { text-align: center; margin-top: 25px; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted);}

/* ==========================================================================
   BOTTOM CTA BANNER
   ========================================================================== */
.bottom-cta-banner { padding: 80px 0; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); background: var(--bg-card); }
.bottom-cta-banner h2 { font-size: 2.5rem; margin-bottom: 10px; }
.bottom-cta-banner p { font-size: 1rem; color: #cbd5e1;}

/* ==========================================================================
   FOOTER y REDES SOCIALES
   ========================================================================== */
.footer { padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.9rem; margin-top: 15px; color: #94a3b8; }
.footer-links h5 { margin-bottom: 20px; font-size: 1.05rem; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.3s; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--magenta);}
.footer-bottom { font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }

/* Iconos de Redes Sociales */
.social-networks { display: flex; gap: 15px; }
.social-icon { 
    display: flex; justify-content: center; align-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-white); transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(217, 70, 239, 0.4);
}
.social-icon .lucide { width: 20px; height: 20px; }

/* ==========================================================================
   ANIMATIONS UTILS
   ========================================================================== */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .nav-links, .nav-btn { display: none; }
    .menu-toggle { display: block; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .about-container { grid-template-columns: 1fr; }
    .about-text { text-align: left; }
    .about-card-visual { margin-top: 20px; }
    .hero-text-col p, .about-text p { margin: 24px auto; }
    .about-text p { margin: 24px 0; }
    .hero-actions { justify-content: center; }
    .trust-bar { flex-wrap: wrap; justify-content: center; gap: 20px; }
    .spacious-grid { grid-template-columns: 1fr; }
    .form-centered-wrapper { padding: 0 20px; }
    .form-glow-bg { padding: 40px 30px; }
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions a { width: 100%; justify-content: center; }
    .badge { margin: 0 auto 24px; }
    .circular-logos { overflow-x: auto; justify-content: flex-start; padding-bottom: 10px;}
}

/* ==========================================================================
   FLIP CARDS (Tarjetas reversibles de servicios)
   ========================================================================== */
.service-wrapper {
    display: flex; flex-direction: column; gap: 20px; height: 100%;
}
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 440px;
    perspective: 1000px;
}
.flip-card-inner {
    position: relative; width: 100%; height: 100%;
    text-align: center; transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front, .flip-card-back {
    position: absolute; width: 100%; height: 100%;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05);
}

/* --- ESTILO PREMIUM CARA FRONTAL --- */
.premium-front {
    background: #090616;
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15), inset 0 0 20px rgba(217, 70, 239, 0.1);
    display: flex;
    flex-direction: column;
}
.img-container {
    height: 55%; width: 100%; overflow: hidden; position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.img-container::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, #090616 0%, transparent 100%);
}
.front-img-premium { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: transform 0.5s ease; }
.flip-card:hover .front-img-premium { transform: scale(1.05); }

.premium-content {
    padding: 20px 20px; height: 45%; display: flex; flex-direction: column; justify-content: center;
}
.premium-content h3 {
    font-size: 1.25rem; line-height: 1.3; margin-bottom: auto;
    font-family: 'Plus Jakarta Sans', sans-serif; color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.mini-stats {
    display: flex; justify-content: space-between; align-items: stretch;
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; margin-top: 20px;
}
.mini-stat { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px; flex: 1; padding: 0 10px;}
.ms-value { font-size: 2.1rem; font-weight: 500; font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1;}
.text-magenta { color: #d946ef; text-shadow: 0 0 15px rgba(217, 70, 239, 0.4); }
.text-blue { color: #8b5cf6; text-shadow: 0 0 15px rgba(139, 92, 246, 0.4); }
.ms-label { font-size: 0.85rem; color: var(--text-muted); text-transform: none; letter-spacing: 0; text-align: left; line-height: 1.2; font-weight: 400; }
.mini-stat-divider { width: 1px; background: rgba(255,255,255,0.1); margin: 0 10px;}

/* --- ESTILO CARA TRASERA --- */
.flip-card-back {
    background: #090616; transform: rotateY(180deg);
    border: 1px solid rgba(217, 70, 239, 0.3);
    display: flex; flex-direction: column; padding: 40px 20px;
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.1) inset;
}
.flip-card-back .icon-wrapper { margin-top: auto; margin-bottom: 25px; filter: drop-shadow(0 0 15px rgba(217,70,239,0.5));}
.flip-card-back h3 { font-size: 1.3rem; margin-bottom: 15px; line-height: 1.3; font-family: 'Plus Jakarta Sans'; }
.flip-card-back p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: auto;}

/* Botón Estático inferior (no gira) */
.action-btn-static { 
    padding: 14px 16px; font-size: 0.9rem; width: 100%; 
    justify-content: center; margin-top: auto; border-radius: 12px;
}

/* ==========================================================================
   CALENDAR MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 3000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    width: 90%; max-width: 700px; position: relative;
    max-height: 90vh; overflow-y: auto;
    transform: scale(0.95); transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content { transform: scale(1); }
.close-modal {
    position: absolute; top: 15px; right: 20px; background: none; border: none;
    color: var(--text-muted); cursor: pointer; transition: color 0.3s;
}
.close-modal:hover { color: #fff; }

.calendar-ui { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 20px; }
.calendar-month { font-weight: 700; color: #fff; margin-bottom: 15px; font-size: 1.1rem; }
.calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center;
}
.cal-day-header { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 5px; }
.cal-day {
    padding: 8px 0; font-size: 0.85rem; border-radius: 5px; cursor: pointer;
    background: rgba(255,255,255,0.02); transition: all 0.2s; color: #fff;
}
.cal-day.past { color: rgba(255,255,255,0.2); cursor: not-allowed; }
.cal-day.weekend { color: var(--text-muted); }
.cal-day:hover:not(.past) { background: rgba(59,130,246,0.2); }
.cal-day.active { background: var(--blue); color: #fff; font-weight: bold; box-shadow: 0 0 10px rgba(59,130,246,0.4);}

/* Días con agenda llena — naranja con ícono visual */
.cal-day.full-day {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.45);
    color: #f97316;
    cursor: pointer;
    font-weight: 600;
    position: relative;
}
.cal-day.full-day::after {
    content: '•';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6px;
    color: #f97316;
}
.cal-day.full-day:hover {
    background: rgba(249, 115, 22, 0.25);
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.3);
}

.time-header { font-weight: 700; color: #fff; margin-bottom: 15px; font-size: 1.1rem; }
.time-slots { display: flex; flex-direction: column; gap: 10px; }
.time-slot {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 10px; border-radius: 8px; cursor: pointer;
    transition: all 0.2s; font-family: 'Inter', sans-serif; font-size: 0.85rem;
}
.time-slot:hover { border-color: var(--blue); background: rgba(59,130,246,0.1); }
.time-slot.selected { background: var(--magenta); border-color: var(--magenta); font-weight: bold; }

/* ==========================================================================
   PRODUCTS / CURSOS SECTION
   ========================================================================== */
.products-section { padding: 80px 0; background: radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.05) 0%, transparent 60%); border-top: 1px solid rgba(255,255,255,0.05); overflow: hidden;}
.carousel-container { max-width: 100%; margin-top: 40px; }
.products-carousel-grid { 
    display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; 
    padding-bottom: 20px; scroll-behavior: smooth;
    -ms-overflow-style: none; scrollbar-width: none;
}
.products-carousel-grid::-webkit-scrollbar { display: none; }

.product-card { 
    flex: 0 0 350px; scroll-snap-align: center; 
    display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; justify-content: space-between; 
}
.product-img { background: rgba(255,255,255,0.02); display: flex; justify-content: center; align-items: center; padding: 40px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mega-icon-product { width: 60px; height: 60px; filter: drop-shadow(0 0 15px rgba(217, 70, 239, 0.4)); }
.product-info { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.badge-tag { align-self: flex-start; background: rgba(34, 197, 94, 0.1); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.3); padding: 4px 10px; border-radius: 50px; font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 15px; }
.product-card:nth-child(2) .badge-tag { background: rgba(217, 70, 239, 0.1); color: var(--magenta); border-color: rgba(217, 70, 239, 0.3); }
.product-info h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.3; }
.product-info p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: auto; }
.product-price { margin: 20px 0; display: flex; align-items: baseline; gap: 5px; }
.product-price .price { font-size: 2rem; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; color: #fff; }
.product-price .currency { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }

@media (max-width: 1024px) {
    .product-card { flex: 0 0 320px; }
    .carousel-left-btn, .carousel-right-btn { display: none; }
}

@media (max-width: 768px) {
    .calendar-ui { grid-template-columns: 1fr; gap: 20px;}
    .product-card { flex: 0 0 280px; }
}

/* ==========================================================================
   MINI MARQUEE INTEGRACIONES LENTAS
   ========================================================================== */
.integrations-mini-section {
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.marquee-mini-container {
    width: 100%;
    margin-top: 25px;
    display: flex;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-mini-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: scroll-mini 40s linear infinite;
    will-change: transform;
}

.marquee-mini-track:hover {
    animation-play-state: paused;
}

.marquee-mini-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 40px;
    padding-right: 40px;
    flex-shrink: 0;
}

.mini-app {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 50px;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.mini-app:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
}

.icon-circle svg {
    width: 18px;
    height: 18px;
}

.shadow-blue { box-shadow: 0 0 10px rgba(24, 119, 242, 0.4); }
.shadow-red { box-shadow: 0 0 10px rgba(234, 67, 53, 0.4); }
.shadow-orange { box-shadow: 0 0 10px rgba(255, 122, 89, 0.4); }
.shadow-magenta { box-shadow: 0 0 10px rgba(224, 30, 90, 0.4); }
.shadow-purple { box-shadow: 0 0 10px rgba(138, 43, 226, 0.4); }
.shadow-green { box-shadow: 0 0 10px rgba(37, 211, 102, 0.4); }
.shadow-yellow { box-shadow: 0 0 10px rgba(244, 180, 0, 0.4); }

.app-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
}

@keyframes scroll-mini {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* WORKS GRID */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
@media (max-width: 1024px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .works-grid { grid-template-columns: 1fr; } }

/* SECTORES CAROUSEL */
.sectores-section { padding: 40px 0; background: #0a0a1a; overflow: visible; position: relative; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sectores-marquee-wrapper { position: relative; width: 100vw; margin-left: calc(-50vw + 50%); overflow: hidden; white-space: nowrap; padding: 130px 0; margin-top: -90px; margin-bottom: -70px; mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%); }
.sectores-track { display: inline-flex; gap: 24px; align-items: stretch; animation: scrollSectores 45s linear infinite; padding-left: 24px; will-change: transform; }
.sectores-track:hover { animation-play-state: paused; }
@keyframes scrollSectores { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.sector-card { position: relative; background: #12122a; border: 1px solid rgba(168, 85, 247, 0.2); border-radius: 12px; padding: 30px 20px; width: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: all 0.3s ease; white-space: normal; flex-shrink: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 1; }
.sector-card:hover { transform: translateY(-5px); border-color: rgba(168, 85, 247, 0.8); box-shadow: 0 10px 25px rgba(168, 85, 247, 0.2); background: #1a1040; z-index: 50; }
.sector-icon { width: 44px; height: 44px; color: #a855f7; margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4)); }
.sector-title { font-size: 1.1rem; color: #ffffff; font-weight: 700; margin-bottom: 8px; font-family: 'Plus Jakarta Sans', sans-serif; }
.sector-desc { font-size: 0.8rem; color: #94a3b8; line-height: 1.3; transition: color 0.3s ease; }
.sector-card:hover .sector-desc { color: #d8b4fe; }

/* SECTOR POPUP */
.sector-popup { position: absolute; top: 50%; left: 100%; transform: translate(-10px, -50%); width: 260px; background: #1a1040; border: 1px solid #a855f7; border-radius: 12px; box-shadow: 0 10px 40px rgba(168, 85, 247, 0.4); padding: 20px; opacity: 0; visibility: hidden; transition: all 0.3s ease; text-align: left; white-space: normal; pointer-events: none; margin-left: 10px; z-index: -1; }
.sector-card:hover .sector-popup { opacity: 1; visibility: visible; transform: translate(0, -50%); pointer-events: auto; z-index: 100; }
.sector-popup-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.sector-popup-header::after { content: "Servicios que tenemos"; display: block; width: 100%; font-size: 0.75rem; color: #94a3b8; font-weight: 500; margin-top: 2px; font-family: 'Plus Jakarta Sans', sans-serif; }
.sector-popup-header-icon { width: 20px; height: 20px; color: #a855f7; display: block;}
.sector-popup-header h6 { color: #a855f7; font-size: 1.05rem; font-weight: 700; margin: 0; font-family: 'Plus Jakarta Sans', sans-serif;}
.sector-popup-divider { height: 1px; background: rgba(168, 85, 247, 0.3); margin-bottom: 15px; }
.sector-popup-list { list-style: none; padding: 0; margin: 0 0 20px 0; }
.sector-popup-list li { position: relative; padding-left: 18px; margin-bottom: 10px; font-size: 0.85rem; color: #fff; line-height: 1.4;}
.sector-popup-list li::before { content: "•"; position: absolute; left: 0; color: #a855f7; font-size: 1.2rem; line-height: 0.9; top: -1px; }
.sector-popup-btn { display: block; width: 100%; text-align: center; background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%); color: white; border: none; border-radius: 50px; padding: 12px; font-size: 0.9rem; font-weight: 700; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; }
.sector-popup-btn:hover { transform: scale(1.03); color: white; text-decoration: none; box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4); } 

/* ==========================================================================
   PROBLEM / SOLUTION SECTION
   ========================================================================== */
.problem-section { padding: 30px 0 40px; background: #0a0a1a; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.problem-container { max-width: 1000px; margin: 0 auto; }
.problem-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 40px; }
.tab-btn { background: #12122a; color: #94a3b8; border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; padding: 10px 20px; font-size: 0.9rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.tab-btn:hover { background: #1a1040; border-color: rgba(168, 85, 247, 0.4); color: #fff; }
.tab-btn.active { background: #a855f7; border-color: #a855f7; color: #fff; box-shadow: 0 0 15px rgba(168, 85, 247, 0.4); }

.accordion-list { display: flex; flex-direction: column; gap: 15px; text-align: left; margin-bottom: 40px; }
.accordion-item { background: #12122a; border: 1px solid #2a2a4a; border-radius: 10px; overflow: hidden; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.accordion-item.open { border-color: #a855f7; box-shadow: 0 0 15px rgba(168, 85, 247, 0.15); }

.accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; cursor: pointer; user-select: none; }
.accordion-header-left { display: flex; align-items: flex-start; gap: 12px; }
.accordion-header-left .item-icon { color: #ef4444; font-size: 1.1rem; flex-shrink: 0; line-height: 1.3; }
.accordion-header-left p { color: #fff; font-size: 1rem; margin: 0; font-family: 'Inter', sans-serif; line-height: 1.4; }
.accordion-header-left p strong { font-weight: 700; }
.accordion-arrow { color: #94a3b8; transition: transform 0.3s ease; flex-shrink: 0; margin-left: 15px; }
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }

.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; background: #12122a; }
.accordion-item.open .accordion-content { padding: 0 20px 20px 45px; } /* max-height will be set by JS or loosely with CSS max-height: 500px */
.accordion-sol { display: flex; align-items: flex-start; gap: 10px; color: #94a3b8; font-size: 0.95rem; line-height: 1.5; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px;}
.accordion-sol .item-icon { color: #22c55e; font-size: 1.1rem; flex-shrink: 0; line-height: 1.3; }
.sol-text strong { color: #22c55e; font-weight: 700; }

.punchline-box { background: linear-gradient(135deg, #1a1040 0%, #120e2a 100%); border: 1px solid #a855f7; border-radius: 10px; padding: 25px; text-align: center; }
.punchline-box p { font-size: 1.1rem; color: #e2e8f0; font-weight: 500; margin: 0; line-height: 1.5; }
.punchline-box p strong { color: #a855f7; font-weight: 700; }

.action-btn-problem { padding: 18px 40px; font-size: 1.15rem; border-radius: 50px; background: linear-gradient(90deg, #a855f7 0%, #3b82f6 100%); border: none; color: white; cursor: pointer; font-weight: 700; transition: transform 0.3s, box-shadow 0.3s; margin-top: 10px; }
.action-btn-problem:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4); }

@media (max-width: 768px) {
    .accordion-item.open .accordion-content { padding: 0 15px 20px 15px; }
    .accordion-header { padding: 15px; }
}


/* ==========================================================================
   VIDEO CASE CARDS
   ========================================================================== */
.video-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 991px) {
    .video-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-cases-grid {
        grid-template-columns: 1fr;
    }
}

.video-case-card {
    background: #0f0a29;
    border: 1px solid #2a2a4a;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.video-case-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.video-case-logo {
    width: 40px;
    height: 40px;
    background: #1a1040;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--magenta);
}

.video-case-title h5 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 3px;
    font-weight: 700;
}

.video-case-title p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.video-case-thumbnail {
    background: linear-gradient(180deg, rgba(18,10,48,0.7) 0%, rgba(10,10,26,0.9) 100%);
    border: 1px solid #1a1040;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 250px;
}

.video-case-thumbnail:hover {
    border-color: rgba(217, 70, 239, 0.5);
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.1);
}

.video-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #a855f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
    transition: transform 0.3s ease;
}

.video-case-thumbnail:hover .video-play-btn {
    transform: scale(1.1);
}

.video-person-info {
    text-align: center;
}

.video-person-info strong {
    display: block;
    font-size: 0.9rem;
    color: #fff;
}

.video-person-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.video-case-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    font-size: 0.75rem;
    border-top: 1px solid #1a1040;
    border-bottom: 1px solid #1a1040;
    padding: 15px 0;
}

.video-case-before h6, .video-case-after h6 {
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-case-before h6 {
    color: #ef4444;
}

.video-case-after h6 {
    color: #22c55e;
}

.video-case-before h6::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

.video-case-after h6::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.video-case-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.video-case-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #a1a1aa;
    line-height: 1.4;
}

.video-case-list li strong {
    color: #fff;
    font-weight: 700;
}

.video-case-before .video-case-list li::before {
    content: '✕';
    color: #ef4444;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.video-case-after .video-case-list li::before {
    content: '✓';
    color: #22c55e;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.video-case-quote {
    font-style: italic;
    font-size: 0.8rem;
    color: #d4d4d8;
    position: relative;
    padding-top: 10px;
}

.video-case-quote::before {
    content: '"';
    color: #a855f7;
    font-size: 1.5rem;
    font-weight: bold;
    font-style: normal;
    position: absolute;
    top: -5px;
    left: 0;
}

.video-case-quote p {
    margin-bottom: 10px;
    margin-left: 15px;
}

.video-case-quote .quote-author {
    font-style: normal;
    font-size: 0.7rem;
    margin-left: 15px;
    color: var(--text-muted);
}

.video-case-quote .quote-author strong {
    color: #a855f7;
}

/* ==========================================================================
   COMO FUNCIONA V2 (Grid 3x2)
   ========================================================================== */
.how-it-works-section-v2 {
    padding: 100px 0 40px;
    background-color: #0a0a1a;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.hiw-header {
    text-align: center;
    margin-bottom: 60px;
}

.hiw-badge {
    display: inline-block;
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hiw-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.hiw-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
}

.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.hiw-card {
    background-color: #12122a;
    border: 1px solid #2a2a4a;
    border-radius: 14px;
    padding: 30px 20px;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hiw-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.15);
}

.hiw-step-number {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(168,85,247,0.3);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.hiw-icon {
    margin-bottom: 20px;
}

.hiw-card-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.hiw-card-desc {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.hiw-card-desc span {
    color: #ffffff;
}

.hiw-pill {
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
}

.hiw-pill-green {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.hiw-pill-purple {
    background-color: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.hiw-stats-box {
    background: linear-gradient(135deg, #1a1040, #120a2a);
    border: 1px solid #a855f7;
    border-radius: 12px;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    margin-bottom: 50px;
}

.hiw-stat-number {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1;
}

.hiw-stat-label {
    color: #94a3b8;
    font-size: 13px;
}

.hiw-cta-container {
    text-align: center;
}

.hiw-cta-btn {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(168,85,247,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
}

.hiw-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168,85,247,0.6);
}

.hiw-cta-disclaimer {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 15px;
}

@media (max-width: 1024px) {
    .hiw-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hiw-grid {
        grid-template-columns: 1fr;
    }
    .hiw-title {
        font-size: 2rem;
    }
    .hiw-stats-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================================================
   FOUNDER SLIDER (ABOUT SECTION)
   ========================================================================== */
.about-section {
    background: radial-gradient(circle at center, rgba(168,85,247,0.05) 0%, #080810 60%);
    background-color: #080810;
}

.about-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.about-slider-track {
    display: flex;
    width: 200%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-slide {
    width: 50%; /* Each slide takes exactly the width of the wrapper */
    flex-shrink: 0;
}

/* Founder Button in Slide 1 */
.founder-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Founder Grid Layout (replaces inline styles) */
.founder-grid-container {
    width: 100%;
    display: grid;
    grid-template-columns: 42% 58%;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid rgba(168,85,247,0.6);
    background: #0d0d1a;
    box-shadow: 0 0 30px rgba(168,85,247,0.25), 0 0 80px rgba(168,85,247,0.1), 0 20px 60px rgba(0,0,0,0.7);
}

.founder-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #12122a;
    min-height: 420px;
}

.founder-img-gradient {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to right, transparent, #0d0d1a);
}

@media (max-width: 768px) {
    .founder-grid-container {
        grid-template-columns: 1fr;
    }
    .founder-img-wrapper {
        min-height: 250px;
        height: 250px;
    }
    .founder-img-gradient {
        width: 100%;
        height: 50px;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        background: linear-gradient(to bottom, transparent, #0d0d1a);
    }
    .founder-slide .circular-arrow-btn {
        width: 35px !important;
        height: 35px !important;
    }
}

.founder-btn-wrapper:hover {
    transform: translateX(5px);
}

.circular-arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(168,85,247,0.5);
    cursor: pointer;
}

.founder-btn-text {
    color: white;
    font-size: 0.9rem;
    line-height: 1.2;
    font-weight: 500;
}

/* Back button in Slide 2 */
.back-founder-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.back-founder-btn:hover {
    color: #a855f7;
}

/* Founder Card */
.founder-slide {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.founder-card {
    background: #0d0d1a;
    border: 1px solid #2a2a4a;
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.founder-img-col {
    width: 40%;
    background: #12122a; /* Fallback if image isn't full */
}

.founder-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.founder-info-col {
    width: 60%;
    padding: 40px;
}

.quote-box-dark {
    background: #1a103c;
    border-radius: 12px;
    padding: 25px 20px;
    border: 1px solid rgba(168,85,247,0.1);
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.metric-item h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.metric-item p {
    color: #9ca3af;
    font-size: 0.7rem;
    margin-bottom: 0;
    line-height: 1.3;
}

@media (max-width: 992px) {
    .founder-card {
        flex-direction: column;
    }
    .founder-img-col, .founder-info-col {
        width: 100%;
    }
    .founder-img-col {
        height: 300px;
    }
    .metrics-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
