
/* ==========================================================================
   CSS Variables & Theme Setup (Premium Agency 2026 - Glass & Bento)
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark: #202E45;
    --bg-card: rgba(255, 255, 255, 0.03); /* Glassmorphism Base */
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    --primary: #6366F1; /* Blue */
    --primary-light: #818CF8;
    --secondary: #202E45; /* Nice blue */
    
    --text-main: #F4F4F6;
    --text-muted: #A3A8B8; /* Adjusted for WCAG High Contrast */
    
    --danger: #EF4444; 
    --orange: #F97316; 
    
    --border-color: rgba(255, 255, 255, 0.1); /* Frosted Border */
    --border-hover: rgba(255, 255, 255, 0.2);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif; 
    
    /* Spacing */
    --container-pd: 1.5rem;
    --section-pd: 6rem 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Modals background */
    --bg-modal: #0F111E;
}

@media (min-width: 768px) {
    :root {
        --container-pd: 2rem;
    }
}

@media (min-width: 1200px) {
    :root {
        --container-pd: 2.5rem;
        --section-pd: 7rem 2rem;
    }
}

@media (min-width: 1440px) {
    :root {
        --container-pd: 3rem;
    }
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.text-center { text-align: center; }
.auto-margin { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h2.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0.75rem;
}
p.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-0 { margin-bottom: 0 !important; }

/* ==========================================================================
   Layout Containers & Grid
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--container-pd);
}
.section-padding { padding: var(--section-pd); position: relative; }

.cards-grid {
    display: grid;
    gap: 1.5rem;
}
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* BENTO GRID SYSTEM */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(auto, auto);
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: auto;
    }
    .span-col-2 { grid-column: span 2; }
    .span-col-3 { grid-column: span 3; }
    .span-row-2 { grid-row: span 2; }
}

.flex-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}
@media (min-width: 992px) {
    .flex-container { flex-direction: row; align-items: center; }
    .flex-container > div { flex: 1; }
}

/* ==========================================================================
   Buttons & Glass Pills
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    border-radius: 9999px; font-weight: 600; cursor: pointer; transition: all var(--transition-fast);
    border: none;
}
.btn-sm { padding: 0.6rem 1.5rem; font-size: 0.875rem; }
.btn-lg { padding: 1.2rem 2.5rem; font-size: 1.125rem; }

.btn-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 50%, #4338CA 100%);
    color: white !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
    color: white !important;
}

.glow-btn {
    position: relative;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.45);
}
.glow-btn:hover {
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.65);
}

.pills-container {
    display: flex; justify-content: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.hero .pills-container { justify-content: center; }

.glass-pill {
    padding: 0.5rem 1.2rem; border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.15); 
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    font-size: 0.8125rem; color: var(--text-main); font-weight: 600;
    display: flex; align-items: center; gap: 0.5rem;
}
.glass-pill i { color: var(--primary-light); font-size: 1.1rem; }

.small-pill {
    padding: 0.4rem 0.8rem; border-radius: 8px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8125rem; color: var(--text-muted);
}
.pills-list { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 100;
    padding: 1.25rem 0; background: rgba(10, 12, 19, 0.7);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-family: var(--font-heading); }
.logo-box {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.brand-purple { background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%); color: white; border: none; }

.nav-links { display: none; gap: 2.5rem; }
.nav-link { font-weight: 500; color: var(--text-muted); font-size: 0.9375rem; transition: color 0.2s;}
.nav-link:hover { color: var(--text-main); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }
.lang-switch {
    font-size: 0.875rem; color: var(--text-muted); font-weight: 600;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-color); border-radius: 50%;
    cursor: pointer; z-index: 110; position: relative;
    text-decoration: none !important;
}
.lang-switch:hover { color: white; border-color: rgba(255,255,255,0.4); }
.menu-toggle { display: block; background: none; border: none; color: white; font-size: 1.5rem; }

@media (min-width: 768px) {
    .nav-links, .nav-cta { display: flex; }
    .menu-toggle { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative; padding: 12rem 0 8rem 0; text-align: center; overflow: hidden;
}
.hero-glow-blob {
    position: absolute; width: 400px; height: 400px;
    background: var(--primary); filter: blur(100px); opacity: 0.15; border-radius: 50%;
    z-index: 0; pointer-events: none;
}
.top-left { top: -100px; left: -100px; }
.bottom-right { bottom: -100px; right: 10%; background: var(--secondary); }

.hero-grid-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
    -webkit-mask-image: radial-gradient(circle at center top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
}
.hero-container { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; }

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem); letter-spacing: -0.03em;
    font-weight: 800; text-wrap: balance;
    background: linear-gradient(180deg, #FFFFFF 30%, #6366F1 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.hero-note { font-size: 0.875rem; color: var(--text-muted); margin-top: 1.5rem; font-weight: 500;}

/* ==========================================================================
   Glass Cards (Bento Items & Method)
   ========================================================================== */
.glass-card {
    background: var(--bg-card); 
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px; padding: 2.5rem; 
    transition: all var(--transition-fast);
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.glass-card:hover { 
    border-color: var(--border-hover); 
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12); 
}
.glass-card p { color: var(--text-muted); font-size: 0.9375rem; }

.card-icon {
    width: 50px; height: 50px; border-radius: 14px; 
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.5rem;
}
.card-icon.red-icon { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.card-icon.blue-icon { background: rgba(44, 100, 227, 0.15); color: var(--secondary); }

.glass-mini-card {
    padding: 1.5rem; background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 16px;
    display: flex; gap: 1.25rem;
}
.adv-icon { width: 40px; height: 40px; min-width: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }

/* Bento Specific Adjustments */
.spec-box-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; font-size: 1.4rem; font-weight: 700; }
.spec-icon-text { font-size: 1.75rem; }
.purple-text { color: #6366F1; }
.orange-text { color: var(--orange); }

.clean-list { display: flex; flex-direction: column; gap: 0.75rem; }
.clean-list li { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.9375rem; }
.clean-list li i { font-size: 1.125rem; color: var(--secondary); }
.columns-2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; align-items: start;}

.bento-row-align { flex-direction: row; align-items: center; justify-content: flex-start; gap: 2rem; padding: 2rem 2.5rem; }

/* The Bridge Method Mockup */
.ai-orb {
    width: 200px; height: 200px; margin: 0 auto; border-radius: 50%;
    background: conic-gradient(from 180deg at 50% 50%, #2A8AF6 0deg, #A855F7 180deg, #2A8AF6 360deg);
    filter: blur(20px); opacity: 0.8; animation: spinOrb 10s linear infinite;
}

@keyframes spinOrb { 100% { transform: rotate(360deg); } }

/* ==========================================================================
   Founder Profiles (About Us)
   ========================================================================== */
.team-grid { margin-top: 4rem; }
.founder-avatar {
    width: 120px; height: 120px; border-radius: 50%; margin: 0 auto;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative; overflow: hidden;
}
.founder-avatar::after {
    content: '\f2a0'; /* remix user-line generic */
    font-family: 'remixicon'; font-size: 3rem; color: rgba(255, 255, 255, 0.2);
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.brand-purple-text {
    background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.founder-bio { font-size: 0.9375rem; line-height: 1.6; }
.founder-social { display: flex; justify-content: center; align-items: center; }
.founder-social a {
    display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255,255,255,0.05);
    transition: all var(--transition-fast);
}
.founder-social a:hover { background: var(--primary); transform: translateY(-3px); color: white; border-color: transparent;}

/* ==========================================================================
   Process Module
   ========================================================================== */
.process-grid { gap: 2rem; margin-top: 4rem; }
.process-item { position: relative; }
.proc-number {
    font-size: 4rem; font-weight: 800; color: rgba(255,255,255,0.03); font-family: var(--font-heading);
    margin-bottom: -1.2rem; line-height: 1; letter-spacing: -0.05em;
}
.proc-icon {
    width: 64px; height: 64px; margin: 0 auto 1.5rem auto; border-radius: 18px;
    background: linear-gradient(135deg, #818CF8 0%, #6366F1 100%);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    display: flex; align-items: center; justify-content: center; font-size: 2rem; color: white;
}

/* ==========================================================================
   Guarantee Box & Elements
   ========================================================================== */
.garantia-icon-box {
    width: 80px; height: 80px; margin-bottom: 1.5rem; border-radius: 20px;
    background: linear-gradient(135deg, #818CF8 0%, #6366F1 100%);
    display: inline-flex; align-items: center; justify-content: center; font-size: 2.5rem; color: white;
}
.satisfaction-text {
    font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; color: var(--secondary);
    text-transform: uppercase; margin-bottom: 0.75rem;
}
.guarantee-text { color: var(--text-muted); font-size: 1rem; max-width: 600px; line-height: 1.6; }

.bonus-box-flat {
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 1.25rem !important; max-width: 600px; margin: 2rem auto 0 auto;
    display: flex; flex-direction: row !important; align-items: center; justify-content: center; gap: 1rem;
    font-size: 0.9375rem; color: var(--text-muted); border-radius: 12px !important;
}
.orange-gift { color: var(--orange); font-size: 1.5rem; }

/* ==========================================================================
   Calendly CTA Box
   ========================================================================== */
.cta-box { max-width: 900px; padding: 4rem 3rem; }
.calendly-container {
    width: 100%; min-height: 200px; background: rgba(0,0,0,0.3); border-radius: 16px;
    border: 1px dashed rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 3rem 0 4rem 0; }
.footer-new-container { display: flex; flex-direction: column; gap: 2rem; align-items: center; text-align: center; }
.footer-location { font-size: 0.875rem; color: var(--text-muted); }
.social-icon { font-size: 1.5rem; color: var(--text-muted); opacity: 0.7; transition: opacity ease 0.2s; }
.social-icon:hover { opacity: 1; color: white; }
.text-muted { color: var(--text-muted); }

@media (min-width: 768px) {
    .footer-new-container { flex-direction: row; justify-content: space-between; text-align: left; }
}
.flex { display: flex; } .flex-col { display: flex; flex-direction: column;} .gap-1 { gap: 0.5rem;} .justify-end { justify-content: flex-end;}

/* ==========================================================================
   Animations (Staggered Bento)
   ========================================================================== */
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal-fade { opacity: 0; transition: opacity 1s ease-out; }

/* Bento Children staggered */
.bento-item { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.bento-item.active { opacity: 1; transform: translateY(0); }

.active { opacity: 1; transform: translate(0, 0); }

/* ==========================================================================
   Light Theme System
   ========================================================================== */
body.light-theme {
    --bg-dark: #F8FAFC;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(0, 0, 0, 0.04);
    --text-main: #0F172A;
    --text-muted: #475569;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --bg-modal: #FFFFFF;
}

body.light-theme .text-white { color: #0F172A !important; }
body.light-theme .navbar { background: rgba(248, 250, 252, 0.85); border-bottom-color: rgba(0,0,0,0.05); }
body.light-theme .glass-pill { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); color: #0F172A; }
body.light-theme .small-pill { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.08); color: #475569; }
body.light-theme .founder-social a { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); color: #0F172A; }
body.light-theme .founder-social a:hover { color: white; }
body.light-theme .glass-mini-card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.05); }
body.light-theme .calendly-container { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); }
body.light-theme .lang-switch { border-color: rgba(0,0,0,0.1); color: var(--text-main); }
body.light-theme .lang-switch:hover { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.2) }
body.light-theme .social-icon { color: var(--text-muted); }

/* Theme Switch Button */
.theme-switch {
    background: none; border: none; color: var(--text-muted); font-size: 1.125rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}
.theme-switch:hover { color: var(--text-main); border-color: var(--border-hover); background: rgba(255,255,255,0.05); }
.align-center { align-items: center; }

/* ==========================================================================
   Floating Action Button (Open Positions)
   ========================================================================== */
.floating-action-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #818CF8; /* Azul brillante como en la referencia */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-action-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background-color: #2563eb;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    color: #ffffff;
}

.floating-action-btn i {
    font-size: 1.15rem;
}

@media (max-width: 768px) {
    .floating-action-btn {
        bottom: 20px;
        right: 20px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Interactive Application Modal & Multi-Step Form
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 12, 19, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-box {
    max-width: 650px;
    width: 100%;
    position: relative;
    padding: 2.5rem;
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    margin: auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--text-main);
}

.modal-header {
    margin-bottom: 1.5rem;
    text-align: left;
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.modal-subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 33.33%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 99px;
    transition: width 0.3s ease;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeInStep 0.3s ease-in-out;
}

.form-step.step-active {
    display: block;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

/* Form Fields */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(89, 76, 224, 0.15);
}

.form-group select option {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

/* Radio Group styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.radio-label input[type="radio"] {
    accent-color: var(--primary-light);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-label span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

/* Custom changes for light theme application form elements */
body.light-theme .form-group input,
body.light-theme .form-group select,
body.light-theme .form-group textarea,
body.light-theme .radio-label {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
    color: #0F172A;
}

body.light-theme .form-group input:focus,
body.light-theme .form-group select:focus,
body.light-theme .form-group textarea:focus {
    background: rgba(0, 0, 0, 0.04);
}

body.light-theme .radio-label:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Responsive Fixes
   ========================================================================== */
@media (max-width: 768px) {
    /* Navbar fixes */
    .nav-cta .btn { display: none !important; }
    .logo-text { font-size: 1.2rem !important; line-height: 1.1; }
    .logo-box { width: 40px !important; height: 40px !important; }
    .nav-cta { gap: 0.5rem !important; }
    
    /* Testimonial marquee fixes */
    .testimonial-card {
        width: 280px !important;
        padding: 1.5rem !important;
    }
    .testimonials-marquee-container::before,
    .testimonials-marquee-container::after {
        width: 8% !important; /* Smaller gradients so more card is visible */
    }
    

    /* Move floating buttons up so they don't overlap pill */
    .floating-whatsapp { bottom: 6rem !important; }
    .floating-linkedin { bottom: 10.5rem !important; }
    /* Toast/Floating island fixes */
    #sales-toast {
        flex-direction: column !important;
        text-align: center;
        gap: 0.5rem;
        padding: 0.8rem !important;
        font-size: 0.8rem !important;
    }
    #sales-toast .toast-btn {
        width: 100%;
        margin-left: 0 !important;
    }
}




/* ==========================================================================
   Success Story Card (Audio Testimonial) 
   ========================================================================== */
.success-card {
    background: #1C1F26; /* Dark grey matching the image */
    border: none;
    border-radius: 24px;
    display: flex;
    padding: 1.5rem;
    gap: 2rem;
    max-width: 900px;
    margin: 4rem auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    align-items: stretch;
}

.success-left {
    background: #FFFFFF;
    color: #000000;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    flex: 1.3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.success-left .brand-tag {
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1A1A1A;
}

.success-left h2 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    color: #111111;
}

.success-left p {
    font-size: 1.05rem;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 2rem;
    font-weight: 400;
}

.success-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.success-right .user-avatar {
    width: 200px;
    height: 200px;
    border-radius: 40px;
    background-size: cover;
    background-position: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.success-right .user-name {
    background: #6366F1;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 0.6rem 3rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
}

.success-right .audio-player {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-right .audio-player audio {
    width: 100%;
    max-width: 260px;
    height: 36px;
    outline: none;
    border-radius: 99px;
}

@media (max-width: 768px) {
    .success-card {
        flex-direction: column;
        padding: 0.75rem;
    }
    .success-left {
        padding: 2rem 1.5rem;
    }
    .success-left h2 {
        font-size: 2.5rem;
    }
}

/* Grid layout for Audio Testimonials */
.success-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem auto;
    max-width: 1200px;
}
.success-cards-grid .success-card {
    margin: 0;
    max-width: 100%;
    flex-direction: column;
    padding: 1rem;
}
.success-cards-grid .success-card .success-left {
    padding: 2rem;
}
.success-cards-grid .success-card .success-left h2 {
    font-size: 2.2rem;
}
@media (max-width: 1024px) {
    .success-cards-grid {
        grid-template-columns: 1fr;
    }
    .success-cards-grid .success-card {
        flex-direction: column;
    }
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-section {
    padding: 6rem 0;
    background: #060A14;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.faq-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

details.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

details.faq-item[open] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

details.faq-item summary {
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary::after {
    content: '+';
    color: #818CF8;
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

details.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 2rem 1.5rem 2rem;
    color: #9CA3AF;
    line-height: 1.6;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   Comprehensive Mobile Responsive Typography & Spacing Fixes
   ========================================================================== */
@media (max-width: 768px) {
    /* Base font size adjustment to slightly reduce rem values if they aren't explicitly overridden */
    html {
        font-size: 14px !important;
    }

    /* Hero & Main Titles */
    h1, .hero-title, [style*="font-size: clamp(2.2rem"] {
        font-size: 2.2rem !important; 
        line-height: 1.15 !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 0.5rem !important;
    }
    
    h2, .section-title, .success-left h2, .faq-header h2, [style*="font-size: 3.5rem"] {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        letter-spacing: -0.01em !important;
        margin-bottom: 0.75rem !important;
    }

    h3, .spec-icon-text {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    h4, .modal-title, .step-title, .success-left .brand-tag, .pricing-card h3 {
        font-size: 1.2rem !important;
    }

    /* Paragraphs and General Text */
    p, .hero-note, .section-subtitle, .success-left p, .faq-content, .guarantee-text, .founder-bio, .pricing-card p {
        font-size: 1rem !important; 
        line-height: 1.5 !important;
    }

    /* General Spacing and Paddings */
    .section-padding {
        padding: 3rem 1rem !important;
    }
    .hero-container {
        padding-top: 5rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Grids & Cards */
    .bento-grid, .success-cards-grid, .columns-2, .columns-3 {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    .success-cards-grid {
        margin: 2rem auto !important;
    }
    
    /* Specific Element Fixes */
    .success-card .success-left {
        padding: 1.5rem !important;
    }
    .proc-number {
        font-size: 2.5rem !important;
    }
    .proc-icon, .adv-icon, .spec-box-header i {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.25rem !important;
    }
    .founder-avatar::after {
        font-size: 1.8rem !important;
    }
    
    /* Pricing Page Specifics */
    .pricing-card {
        padding: 1.5rem !important;
    }
    .price-value, .pricing-card [style*="font-size: 3.5rem"], .pricing-card [style*="font-size: 2.2rem"] {
        font-size: 2rem !important;
    }
    
    /* Buttons */
    .btn, .btn-lg, .btn-sm {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.95rem !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .nav-cta .btn {
        display: none !important;
    }

    /* Adjust Floating action button & Toasts */
    .floating-whatsapp { bottom: 20px !important; transform: scale(0.9); transform-origin: bottom right; }
    .floating-linkedin { bottom: 80px !important; transform: scale(0.9); transform-origin: bottom right; }
    #sales-toast {
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
        transform: scale(0.9); transform-origin: bottom left;
    }
}

@media (max-width: 480px) {
    /* Even smaller adjustments for tiny phones */
    html {
        font-size: 13px !important;
    }
    h1, .hero-title, [style*="font-size: clamp(2.2rem"] {
        font-size: 1.9rem !important; 
    }
    h2, .section-title, .success-left h2, .faq-header h2, [style*="font-size: 3.5rem"] {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 768px) {
    .price, .price-value { font-size: 1.8rem !important; }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 5rem !important;
        padding-bottom: 3rem !important;
    }
}

.audio-player .audio-direct {
    color: inherit;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-decoration: underline;
}

.audio-player .audio-status {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

@media (max-width: 1099px) {
    .nav-links.is-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 75vh;
        overflow-y: auto;
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.is-open .nav-cta { flex-wrap: wrap; }
    .nav-links.is-open .nav-cta .btn { display: inline-flex !important; }
}

/* Responsive reading and navigation */
html { scroll-padding-top: 6rem; }

body.premium-agency {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.premium-agency :is(.hero-title, .section-title, .pillars-header h2, .faq-header h2) {
    text-wrap: balance;
}

.premium-agency :is(.program-card, .pricing-card, .pillar-card, .bento-item, .blog-card, .success-card) {
    min-width: 0;
}

.premium-agency :is(.btn, .glass-pill, .brand-tag) {
    max-width: 100%;
    white-space: normal;
}

.premium-agency :is(.btn, .menu-toggle, .theme-switch, .audio-direct):focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}

.premium-agency .floating-proof { display: none !important; }

.premium-agency .audio-direct {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0;
}

.premium-agency details.faq-item summary {
    gap: 0.75rem;
}

.premium-agency details.faq-item summary::after { flex: none; }

.premium-agency .modal-overlay {
    inset: 0;
    width: auto;
    height: auto;
    max-height: 100dvh;
    padding: clamp(0.75rem, 4vw, 2rem);
}

.premium-agency .modal-box {
    min-width: 0;
    padding: clamp(1rem, 5vw, 2.5rem);
}

.premium-agency .modal-header {
    padding-inline-end: 2rem;
    text-align: start;
}

.premium-agency .form-group :is(input:not([type=radio]), select, textarea) {
    min-width: 0;
    font-size: 1rem;
}

.premium-agency .hero .glass-pill {
    overflow-wrap: normal;
    text-align: center;
}

@media (max-width: 1099px) {
    .premium-agency .navbar .nav-links:not(.is-open) { display: none; }
    .premium-agency .navbar .menu-toggle {
        display: grid;
        place-items: center;
        flex: 0 0 44px;
        min-height: 44px;
        color: var(--text-main);
        cursor: pointer;
    }

    .premium-agency .navbar .nav-container { gap: 0.75rem; }
    .premium-agency .navbar .logo { margin-inline-end: auto; min-width: 0; }
    .premium-agency .navbar .logo-box { flex-shrink: 0; }
    .premium-agency .navbar .nav-links.is-open {
        max-height: min(75vh, calc(100dvh - 5rem));
        gap: 0.25rem;
        padding-block: 0.75rem;
        box-shadow: 0 16px 30px rgb(15 23 42 / 18%);
    }

    .premium-agency .navbar .nav-link {
        display: flex;
        align-items: center;
        min-height: 44px;
        color: var(--text-main);
    }
    .premium-agency .navbar .nav-container > .nav-cta > .btn { display: none !important; }
    .premium-agency .navbar .nav-links.is-open > .nav-cta { padding-block-start: 0.5rem; }
}

@media (max-width: 767px) {
    html { font-size: 16px !important; }
    .premium-agency { --container-pd: clamp(1rem, 4vw, 1.5rem); }
    .premium-agency .section-padding { padding: 2.75rem 0 !important; }
    .premium-agency .hero { padding: 5.5rem 0 2.75rem !important; }
    .premium-agency .hero-container { padding-block: 0 !important; }
    .premium-agency .hero-title {
        font-size: clamp(1.85rem, 6.25vw, 2.75rem) !important;
        line-height: 1.12 !important;
    }
    .premium-agency :is(.section-title, .pillars-header h2, .success-left h2, .faq-header h2) {
        font-size: clamp(1.5rem, 5.4vw, 2rem) !important;
        line-height: 1.2 !important;
    }

    .premium-agency :is(.hero-subtitle, .section-subtitle, .success-left p, .faq-content) {
        line-height: 1.65 !important;
    }

    .premium-agency .hero-actions { margin-block: 1.25rem; }
    .premium-agency .hero-actions > div:first-child { width: min(100%, 28rem); }
    .premium-agency .hero-actions .btn { min-height: 48px; }
    .premium-agency .hero .time-comparison { padding: 1rem; }

    .premium-agency :is(.success-cards-grid, .pricing-grid, .pillars-track) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        overflow: visible !important;
        scroll-snap-type: none !important;
        gap: 1rem !important;
        padding-inline: 0 !important;
        padding-bottom: 0 !important;
    }

    .premium-agency :is(.success-cards-grid, .pricing-grid, .pillars-track) > * {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        grid-column: auto !important;
    }

    .premium-agency .bento-grid > * { grid-column: auto !important; }
    .premium-agency .success-card { padding: 0 !important; }
    .premium-agency .success-card .success-left { padding: 1.125rem !important; }
    .premium-agency .success-card .success-right { padding: 1rem; }
    .premium-agency .success-left > div { flex-wrap: wrap; }
    .premium-agency .success-right .audio-player audio {
        max-width: 100%;
        height: 44px;
    }

    .premium-agency :is(#diagnostico, #garantia) .glass-card {
        padding: 1.125rem !important;
    }

    .premium-agency details.faq-item summary { padding: 0.875rem 1rem; }
    .premium-agency .faq-content { padding-inline: 1rem; }

    .premium-agency .modal-footer {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .premium-agency .modal-footer .btn { min-height: 44px; }
    .premium-agency .modal-close-btn { width: 44px; height: 44px; top: 0.5rem; right: 0.5rem; }

    /* Keep contact links available in the footer without covering the page. */
    .premium-agency :is(.floating-whatsapp, .floating-linkedin, #sales-toast) { display: none !important; }
}

@media (max-width: 380px) {
    .premium-agency .navbar .nav-container > .nav-cta .theme-switch { display: none; }
    .premium-agency .navbar .nav-container { gap: 0.375rem; }
}

@media (prefers-reduced-motion: reduce) {
    .premium-agency :is(.reveal-up, .reveal-fade, .reveal-left, .reveal-right, .bento-item) {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .premium-agency :is(.testimonial-track, .marquee-track, .companies-track, .radar-ring) {
        animation-play-state: paused;
    }
}

body.premium-agency .hero-glass .hero-title {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: #fff;
}

.premium-agency .success-right :is(.audio-direct, .audio-status) {
    color: #f1f5f9;
}

.premium-agency .faq-header p { color: #cbd5e1; }

@media (min-width: 768px) and (max-width: 1023px) {
    .premium-agency :is(.pillars-track, .success-cards-grid) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .premium-agency .pillars-track > * {
        min-width: 0;
        width: auto;
    }
}

.premium-agency .hero-intro {
    color: #c7d2fe;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .premium-agency .testimonials-marquee-container::before,
    .premium-agency .testimonials-marquee-container::after { display: none; }
    .premium-agency .testimonials-marquee {
        display: grid;
        width: 100%;
        gap: 1rem;
        animation: none !important;
    }
    .premium-agency .testimonials-marquee .testimonial-card {
        width: 100% !important;
        min-width: 0;
        max-width: 100%;
        height: auto;
    }
    .premium-agency .testimonials-marquee .testimonial-card:nth-of-type(n+6) { display: none; }
}

/* Shared navigation */
.premium-agency .site-navbar .nav-container { gap: 0.75rem; }
.premium-agency .site-navbar .nav-links { gap: clamp(0.65rem, 1.15vw, 1.25rem); }
.site-navbar .nav-about { position: relative; }
.site-navbar .nav-about > summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}
.site-navbar .nav-about > summary::-webkit-details-marker { display: none; }
.site-navbar .nav-about > summary::after {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    margin-top: -0.2rem;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.site-navbar .nav-about[open] > summary::after { transform: rotate(225deg); margin-top: 0.2rem; }
.site-navbar .nav-about > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.site-navbar .nav-about-panel {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 0.85rem);
    min-width: 14rem;
    padding: 0.4rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--bg-dark);
    box-shadow: 0 12px 28px rgb(15 23 42 / 17%);
}
.site-navbar .nav-about-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 0.65rem;
    border-radius: 0.45rem;
}
.site-navbar .nav-about-panel a:hover { background: var(--bg-card-hover); }

@media (max-width: 1099px) {
    .site-navbar .nav-about-panel {
        position: static;
        min-width: 0;
        box-shadow: none;
        margin-inline-start: 0.55rem;
        margin-bottom: 0.4rem;
    }
}

@media (min-width: 1100px) {
    .site-navbar .nav-cta { gap: clamp(0.35rem, 0.8vw, 0.8rem); }
    .site-navbar .nav-cta .btn { padding-inline: clamp(0.65rem, 1.25vw, 1.25rem); }
}
