/* ==========================================================================
   CSS Variables & Theme Setup (Premium Agency 2026 - Glass & Bento)
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark: #0A0C13;
    --bg-card: rgba(255, 255, 255, 0.03); /* Glassmorphism Base */
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    --primary: #594CE0; /* Purple-blue */
    --primary-light: #8B7CFC;
    --secondary: #2C64E3; /* 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: 2rem;
    --section-pd: 6rem 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   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: 1200px;
    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, var(--secondary), var(--primary));
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(89, 76, 224, 0.4);
}

.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, #8B5CF6 0%, #3B82F6 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: none; 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: 900px; }

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -0.03em;
    font-weight: 800; text-wrap: balance;
    background: linear-gradient(180deg, #FFFFFF 0%, #AAB2E8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.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;
}
.glass-card:hover { border-color: var(--border-hover); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.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: #A78BFA; }
.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: 1fr 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, #8B5CF6 0%, #3B82F6 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, #3B82F6 0%, #8B5CF6 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, #3B82F6 0%, #8B5CF6 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);
}
body.light-theme .hero-title {
    background: linear-gradient(180deg, #1E293B 0%, #3B82F6 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
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: #3b82f6; /* 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;
    }
}
