/* ==========================================================================
   W3b.ec — Redesigned Modern Design System (2026)
   Swiss Modernism 2.0 + Glassmorphism hybrid
   Brand colors: #2d69b3 (blue), #41b649 (green)
   ========================================================================== */

:root {
    /* Brand palette */
    --primary-blue: #2d69b3;
    --primary-green: #41b649;
    --secondary-green: #369e3e;
    --primary-indigo: #6366f1;

    /* Extended semantic tokens - Light Mode */
    --blue-50: #eef4fb;
    --blue-100: #dbe7f5;
    --blue-600: #1f4f8f;
    --blue-700: #1a4278;
    --blue-800: #14345c;
    --green-50: #eef8ef;
    --green-100: #d9efdb;
    --green-700: #2c7d33;

    /* Surface colors */
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.85);
    --surface-glass-dark: rgba(15, 23, 42, 0.85);
    
    /* Text colors */
    --foreground: #0f172a;
    --foreground-muted: #64748b;
    --muted: #e2e8f0;
    
    /* Border & effects */
    --border: #e2e8f0;
    --border-glass: rgba(255, 255, 255, 0.18);
    --ring: rgba(45, 105, 179, 0.18);
    
    /* Semantic colors */
    --destructive: #dc2626;
    --destructive-foreground: #ffffff;
    --success: #059669;
    --warning: #f59e0b;
    --info: #2563eb;

    /* Shadows - Elevated depth system */
    --shadow-xs: 0 1px 2px rgba(2, 8, 23, 0.05);
    --shadow-sm: 0 1px 3px rgba(2, 8, 23, 0.06), 0 1px 2px rgba(2, 8, 23, 0.03);
    --shadow: 0 4px 6px rgba(2, 8, 23, 0.07), 0 2px 4px rgba(2, 8, 23, 0.04);
    --shadow-md: 0 10px 15px rgba(2, 8, 23, 0.08), 0 4px 6px rgba(2, 8, 23, 0.04);
    --shadow-lg: 0 20px 25px rgba(2, 8, 23, 0.1), 0 8px 10px rgba(2, 8, 23, 0.06);
    --shadow-xl: 0 25px 50px rgba(2, 8, 23, 0.15);
    --shadow-glow: 0 0 40px rgba(45, 105, 179, 0.15);
    --shadow-glow-green: 0 0 40px rgba(65, 182, 73, 0.2);

    /* Glassmorphism effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(2, 8, 23, 0.08);
    --glass-blur: blur(12px);
    --backdrop-filter: blur(12px) saturate(180%);

    /* Border radius system */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-pill: 9999px;

    /* Spacing scale - 8px grid */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #2d69b3 0%, #1d4ed8 100%);
    --gradient-blue: linear-gradient(135deg, #1e3a8a 0%, #1f4f8f 100%);
    --gradient-green: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    --gradient-indigo: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    --gradient-hero: linear-gradient(135deg, #0b1329 0%, #111c38 60%, #182a52 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(45, 105, 179, 0.02) 0%, rgba(15, 23, 42, 0.01) 100%);

    /* Typography scale */
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Container max-widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1440px;

    /* Z-index scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-notification: 800;
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--foreground);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: 0;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--blue-700);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--primary-green);
    color: var(--white);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -48px;
    left: 12px;
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--space-3) var(--space-4);
    text-decoration: none;
    z-index: var(--z-notification);
    border-radius: var(--radius);
    font-weight: 600;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 12px;
    color: var(--white);
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Navbar - Glassmorphism
   ========================================================================== */
.navbar {
    background: var(--surface-glass);
    backdrop-filter: var(--backdrop-filter);
    -webkit-backdrop-filter: var(--backdrop-filter);
    border-bottom: var(--glass-border);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4) 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    padding: var(--space-3) 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin-right: var(--space-4);
}

.navbar-brand img,
.navbar-logo {
    height: 42px;
    width: auto;
    max-height: 46px;
    max-width: 150px;
    object-fit: contain;
    display: block;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.08));
}

.navbar-brand:hover img,
.navbar-brand:hover .navbar-logo {
    opacity: 0.92;
    transform: scale(1.02);
}

/* Ensure logo is clearly visible on light/glass navbar */
.navbar-brand {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius);
    padding: var(--space-2) var(--space-3);
    backdrop-filter: blur(4px);
}

.nav-link {
    color: var(--foreground-muted);
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: var(--space-2) var(--space-4) !important;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    background: var(--blue-50);
}

.nav-link i {
    font-size: var(--font-size-base);
}

/* Navbar dropdowns */
.dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    margin-top: var(--space-2);
    min-width: 200px;
}

.dropdown-item {
    color: var(--foreground-muted);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item.active {
    color: var(--primary-blue);
    background: var(--blue-50);
}

/* Language & Currency toggles */
.btn-lang-toggle,
.btn-curr-toggle {
    background: transparent;
    border: 1px solid var(--border);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--foreground-muted);
    transition: all var(--transition-fast);
}

.btn-lang-toggle:hover,
.btn-curr-toggle:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: var(--blue-50);
}

/* Mobile navbar toggler */
.navbar-toggler {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-2);
    background: var(--surface);
    transition: all var(--transition-fast);
}

.navbar-toggler:hover {
    background: var(--blue-50);
    border-color: var(--primary-blue);
}

.navbar-toggler-icon {
    background-image: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler-icon i {
    font-size: var(--font-size-xl);
    color: var(--foreground);
}

/* ==========================================================================
   Hero Section & Subpage Hero
   ========================================================================== */
.hero,
.subpage-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 130px 0 90px;
    background:
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.5px),
        radial-gradient(900px 520px at 10% -10%, rgba(45, 105, 179, 0.28), transparent 62%),
        radial-gradient(820px 500px at 96% 112%, rgba(65, 182, 73, 0.16), transparent 62%),
        linear-gradient(135deg, #0a1124 0%, #101b36 50%, #16264b 100%);
    background-size: 30px 30px, auto, auto, auto;
}

/* Aurora animada: glows de marca que derivan lentamente tras el contenido */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
    will-change: transform;
}

.hero::before {
    top: -220px;
    left: -160px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at 50% 50%, rgba(45, 105, 179, 0.28), rgba(45, 105, 179, 0) 70%);
    animation: hsAuroraDrift 18s ease-in-out infinite alternate;
}

.hero::after {
    bottom: -240px;
    right: -180px;
    width: 580px;
    height: 580px;
    background: radial-gradient(circle at 50% 50%, rgba(65, 182, 73, 0.26), rgba(65, 182, 73, 0) 70%);
    animation: hsAuroraDrift 22s ease-in-out infinite alternate-reverse;
}

@keyframes hsAuroraDrift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(30px, 20px, 0) scale(1.05);
    }
}

.subpage-hero {
    padding: 120px 0 50px;
    background: linear-gradient(135deg, #0b1329 0%, #111c38 60%, #182a52 100%);
}

/* Homepage hero: split layout (copy + animated SVG scene) */
.hero .hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-16);
    align-items: center;
}

.hero .hero-copy {
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.hero .hero-copy::before {
    content: "";
    position: absolute;
    inset: -60px -80px;
    background: radial-gradient(ellipse at 50% 40%, rgba(7, 12, 28, 0.98) 0%, rgba(7, 12, 28, 0.92) 55%, transparent 82%);
    pointer-events: none;
    z-index: -1;
    border-radius: var(--radius-lg);
}

.hero .hero-copy > * {
    opacity: 0;
    animation: hsFadeUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    position: relative;
    z-index: 1;
}

/* Fallback sin animación: texto siempre visible */
@supports not (animation-name: test) {
    .hero .hero-copy > * {
        opacity: 1 !important;
    }
}

.no-js .hero .hero-copy > *,
.hero .hero-copy > *.no-anim {
    opacity: 1 !important;
    animation: none !important;
}

.hero .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero .hero-copy > *:nth-child(2) { animation-delay: 0.18s; }
.hero .hero-copy > *:nth-child(3) { animation-delay: 0.32s; }
.hero .hero-copy > *:nth-child(4) { animation-delay: 0.46s; }
.hero .hero-copy > *:nth-child(5) { animation-delay: 0.6s; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    margin-bottom: var(--space-6);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(65, 182, 73, 0.18);
    border: 1px solid rgba(65, 182, 73, 0.4);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-badge i {
    color: #7ee787;
}

.hero .hero-copy h1 {
    color: #ffffff;
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 18px rgba(0, 5, 16, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.hero-grad {
    background: linear-gradient(90deg, #a8d4ff 0%, #b8f5c8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 8px rgba(0, 5, 16, 0.7));
}

.hero .hero-copy p {
    font-size: var(--font-size-xl);
    line-height: 1.7;
    margin-bottom: var(--space-8);
    max-width: 640px;
    color: #e8edf5;
    text-shadow: 0 1px 8px rgba(0, 5, 16, 0.6);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4) var(--space-6);
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #e8edf5;
    text-shadow: 0 1px 6px rgba(0, 5, 16, 0.6);
}

.hero-trust li i {
    color: #7ee787;
}

/* Animated SVG scene */
.hero-visual {
    position: relative;
    min-width: 0;
}

.hero-scene {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.hero-scene .hs-fade {
    opacity: 0;
    animation: hsFadeUp 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    will-change: transform, opacity;
}

.hero-scene .hs-draw {
    animation: hsDraw 1.6s ease forwards;
    will-change: stroke-dashoffset;
}

.hero-scene .hs-net-1 { stroke-dasharray: 420; stroke-dashoffset: 420; animation-delay: 0.5s; }
.hero-scene .hs-net-2 { stroke-dasharray: 380; stroke-dashoffset: 380; animation-delay: 0.8s; }
.hero-scene .hs-net-3 { stroke-dasharray: 160; stroke-dashoffset: 160; animation-delay: 1.1s; }
.hero-scene .hs-net-4 { stroke-dasharray: 180; stroke-dashoffset: 180; animation-delay: 1.3s; }
.hero-scene .hs-net-5 { stroke-dasharray: 170; stroke-dashoffset: 170; animation-delay: 1.5s; }

.hero-scene .hs-globe-lines {
    stroke-dasharray: 640;
    stroke-dashoffset: 640;
    animation-duration: 2s;
    animation-delay: 0.4s;
}

.hero-scene .hs-shield-draw {
    stroke-dasharray: 340;
    stroke-dashoffset: 340;
    animation-delay: 1.3s;
    animation-duration: 1.2s;
}

.hero-scene .hs-check-draw {
    stroke-dasharray: 90;
    stroke-dashoffset: 90;
    animation-delay: 2.4s;
    animation-duration: 0.5s;
}

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

@keyframes hsDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-pill);
    z-index: 2;
}

.hero-scroll:hover,
.hero-scroll:focus {
    border-color: rgba(255, 255, 255, 0.7);
}

.hero-scroll span {
    display: block;
    width: 4px;
    height: 8px;
    margin: 6px auto 0;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.75);
    animation: hsScrollDot 1.8s ease-in-out infinite;
}

@keyframes hsScrollDot {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(18px); opacity: 0; }
}

/* Subpage hero gets its own simple content styling */
.subpage-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: var(--container-lg);
    color: #ffffff;
    margin: 0 auto;
}

.subpage-hero .hero-content h1 {
    color: #ffffff;
    margin-bottom: var(--space-4);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.subpage-hero .hero-content p {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subpage-hero .hero-content .btn {
    margin-top: var(--space-4);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #2d69b3 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
    color: #ffffff;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Cards - Glassmorphism + Elevation
   ========================================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.tech-card {
    background: var(--surface-glass);
    backdrop-filter: var(--backdrop-filter);
    border: var(--glass-border);
    box-shadow: var(--shadow-md);
}

.tech-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.tech-card .card-body {
    padding: var(--space-6);
}

/* Plan cards */
.plan-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition);
}

.plan-card.popular {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.plan-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.plan-card.popular:hover {
    transform: translateY(-3px);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-green);
    color: var(--white);
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
}

.plan-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: var(--gradient-subtle);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.plan-card.popular .plan-icon {
    background: linear-gradient(135deg, rgba(65, 182, 73, 0.1) 0%, rgba(54, 158, 62, 0.1) 100%);
    color: var(--primary-green);
}

.plan-price {
    text-align: center;
    margin-bottom: var(--space-6);
}

.plan-price .currency {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--foreground);
    vertical-align: top;
}

.plan-price .amount {
    font-size: var(--font-size-6xl);
    font-weight: 800;
    color: var(--foreground);
    line-height: 1;
}

.plan-price .period {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--foreground-muted);
    margin-top: var(--space-2);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-8);
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--font-size-base);
    color: var(--foreground-muted);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    color: var(--primary-green);
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.plan-features li.unavailable {
    color: var(--foreground-muted);
    opacity: 0.6;
}

.plan-features li.unavailable i {
    color: var(--foreground-muted);
    opacity: 0.4;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-16);
}

.section-header h2 {
    margin-bottom: var(--space-4);
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--foreground-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-6);
    background: var(--gradient-subtle);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: all var(--transition);
}

.feature-icon i {
    transition: transform var(--transition);
}

.col-md-4:hover .feature-icon {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.col-md-4:hover .feature-icon i {
    transform: scale(1.2);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    background: var(--gradient-subtle);
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.testimonial-card .stars {
    color: var(--warning);
    margin-bottom: var(--space-4);
}

.testimonial-card p {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--foreground-muted);
    font-style: italic;
    margin-bottom: var(--space-6);
}

.testimonial-card cite {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--foreground);
    font-style: normal;
}

.testimonial-reveal {
    animation: testimonialFadeUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

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

/* ==========================================================================
   Accordion (FAQ)
   ========================================================================== */
.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-button {
    background: var(--surface) !important;
    color: var(--foreground);
    font-weight: 600;
    padding: var(--space-5) var(--space-6) !important;
    border: none;
    border-radius: var(--radius-lg) !important;
    transition: all var(--transition-fast);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-blue);
    background: var(--blue-50) !important;
    box-shadow: none;
}

.accordion-button:hover {
    background: var(--blue-50);
}

.accordion-button::after {
    transition: transform var(--transition-fast);
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-collapse {
    transition: height var(--transition-slow);
}

.accordion-body {
    padding: var(--space-6) !important;
    color: var(--foreground-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--foreground);
    color: var(--muted);
    padding: var(--space-16) 0 var(--space-8);
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.footer a {
    color: var(--muted);
    transition: color var(--transition-fast);
    display: block;
    padding: var(--space-2) 0;
}

.footer a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--white);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

/* Social links in footer */
.social-links {
    margin-top: var(--space-8);
    display: flex;
    justify-content: center;
    gap: var(--space-3);
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--white);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-4px) rotate(5deg);
}

/* ==========================================================================
   WhatsApp Float Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--z-notification);
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--white);
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all var(--transition);
    font-size: var(--font-size-xl);
}

.whatsapp-float a:hover {
    background: #128C7E;
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:active a {
    transform: scale(0.95);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 100px;
    z-index: var(--z-notification);
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
    font-size: var(--font-size-xl);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--blue-700);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.back-to-top:active {
    transform: scale(0.95);
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: var(--z-notification);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6) var(--space-8);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    animation: slideUp 0.4s ease-out;
}

.cookie-banner p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--foreground-muted);
    flex: 1;
}

.cookie-banner .btn {
    white-space: nowrap;
}

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

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        padding: var(--space-6);
    }

    .cookie-banner .btn {
        width: 100%;
    }

    .whatsapp-float {
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-float a {
        width: 56px;
        height: 56px;
        font-size: var(--font-size-xl);
    }

    .back-to-top {
        right: 80px;
        width: 46px;
        height: 46px;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

.animate-zoom-in {
    animation: zoomIn 0.5s ease-out;
}

/* Stagger delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-glass {
    background: var(--surface-glass);
    backdrop-filter: var(--backdrop-filter);
    border: var(--glass-border);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.shadow-glow-green {
    box-shadow: var(--shadow-glow-green);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
    .hero .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
        text-align: center;
    }

    .hero .hero-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero .hero-copy h1,
    .subpage-hero .hero-content h1 {
        font-size: var(--font-size-3xl);
    }

    .hero .hero-copy p,
    .subpage-hero .hero-content p {
        font-size: var(--font-size-base);
    }

    .hero-scroll {
        display: none;
    }

    .section-header {
        margin-bottom: var(--space-10);
    }

    .plan-card.popular {
        transform: none;
    }

    .plan-card.popular:hover {
        transform: translateY(-4px);
    }

    .navbar {
        padding: var(--space-3) 0;
    }
}

@media (max-width: 576px) {
    :root {
        --space-16: 3rem;
        --space-12: 2rem;
        --space-8: 1.5rem;
    }

    .btn-lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-size-base);
    }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
    .navbar,
    .footer,
    .btn,
    .hero-visual,
    .hero-scroll {
        display: none !important;
    }

    body {
        background: var(--white);
        color: var(--foreground);
    }

    .card,
    .plan-card {
        box-shadow: none;
        border: 1px solid var(--border);
    }
}

/* ==========================================================================
   Reduced Motion — desactiva animaciones del hero bajo preferencia del usuario
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after {
        animation: none !important;
    }

    .hero .hero-copy > *,
    .hero-scene *,
    .testimonial-reveal {
        animation: none !important;
        transition: none !important;
    }

    .hero .hero-copy > * {
        opacity: 1;
    }

    .hero-scene .hs-fade {
        opacity: 1;
    }

    .hero-scene .hs-draw {
        stroke-dasharray: none !important;
        stroke-dashoffset: 0 !important;
    }

    .hero-scene .hs-packet {
        display: none;
    }

    .hero-scroll span {
        animation: none;
        opacity: 1;
    }

    .hero .hero-copy > * {
        opacity: 1 !important;
        animation: none !important;
    }
}
