:root {
    /* Brand Colors - Premium 2025 Palette */
    --primary-dark: #0c0a1d;
    /* Deep Space */
    --primary: #13102b;
    /* Rich Purple Dark */
    --primary-light: #1e1a3a;
    /* Purple Slate */

    --accent: #8b5cf6;
    /* Violet 500 - Vibrant */
    --accent-glow: rgba(139, 92, 246, 0.5);
    --accent-dark: #7c3aed;
    /* Violet 600 */
    --accent-light: #a78bfa;
    /* Violet 400 */

    --secondary: #f97316;
    /* Orange 500 - Energy */
    --secondary-glow: rgba(249, 115, 22, 0.5);
    --secondary-light: #fb923c;

    --tertiary: #ec4899;
    /* Pink 500 */
    --tertiary-glow: rgba(236, 72, 153, 0.4);

    /* Text Colors */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-body: #a5b4c8;
    /* Lighter for better readability */
    --text-muted: #64748b;
    /* Slate 500 */

    /* Backgrounds */
    --bg-body: #0c0a1d;
    --bg-card: rgba(30, 26, 58, 0.7);
    --bg-card-hover: rgba(30, 26, 58, 0.95);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #13102b 0%, #1e1a3a 100%);
    --grad-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);
    /* Violet → Pink → Orange */
    --grad-glow: radial-gradient(circle at center, rgba(139, 92, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    --grad-hero: linear-gradient(135deg, #0c0a1d 0%, #1e1a3a 50%, #13102b 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --backdrop: blur(16px);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --shadow-glow-lg: 0 0 60px var(--accent-glow), 0 0 100px rgba(139, 92, 246, 0.2);

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Animation Timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

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

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

.highlight {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-lg {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.title-md {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.title-sm {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

/* ===== MODERN ANIMATIONS ===== */

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

/* Floating blob animation */
@keyframes floatBlob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    }

    25% {
        transform: translate(20px, -30px) scale(1.05);
        border-radius: 50% 50% 40% 60% / 40% 60% 50% 50%;
    }

    50% {
        transform: translate(-10px, 20px) scale(0.95);
        border-radius: 60% 40% 50% 50% / 50% 50% 60% 40%;
    }

    75% {
        transform: translate(15px, 10px) scale(1.02);
        border-radius: 45% 55% 55% 45% / 55% 45% 55% 45%;
    }
}

/* Gradient shift animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* Glow pulse */
@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(139, 92, 246, 0.2);
    }

    50% {
        box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(139, 92, 246, 0.3);
    }
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* 3D Tilt effect on hover */
.tilt-3d {
    transition: transform 0.4s var(--ease-spring);
    transform-style: preserve-3d;
}

.tilt-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateZ(10px);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Scale on hover */
.hover-scale {
    transition: transform 0.3s var(--ease-spring);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Lift on hover */
.hover-lift {
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-lg);
}

/* Buttons */
.btn,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1rem;
    gap: 10px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-dark);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.23);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: var(--backdrop);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-body);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Nav CTA visibility */
.nav-cta-desktop {
    display: inline-flex;
}

.nav-cta-mobile {
    display: none;
}

@media (max-width: 1024px) {
    .nav-cta-desktop {
        display: none;
    }

    .nav-cta-mobile {
        display: block;
        margin-top: 16px;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Background "Glows" */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    z-index: -1;
    opacity: 0.6;
    animation: pulse-glow 8s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    z-index: -1;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 40px;
    max-width: 90%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
    animation: pulse 2s infinite;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatars {
    display: flex;
    align-items: center;
}

.avatars img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--bg-body);
    margin-left: -15px;
}

.avatars img:first-child {
    margin-left: 0;
}

.avatar-count {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--bg-body);
    margin-left: -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.proof-text {
    display: flex;
    flex-direction: column;
}

.stars {
    color: #fbbf24;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px;
    box-shadow: var(--shadow-xl);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-card:hover {
    transform: rotateY(0) rotateX(0);
}

.glass-card img {
    border-radius: 12px;
}

/* Floating Elements */
.float-ui {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float-y 6s ease-in-out infinite;
}

.ui-stats {
    top: 10%;
    right: -20px;
}

.ui-badge {
    bottom: 20%;
    left: -20px;
    animation-delay: 2s;
}

.ui-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.ui-content {
    display: flex;
    flex-direction: column;
}

.ui-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ui-value {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
}

@keyframes float-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Marquee */
.marquee-section {
    background: var(--primary);
    padding: 20px 0;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.marquee-item {
    color: #cbd5e1;
    /* Improved contrast for WCAG AA compliance - was var(--text-muted) */
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--primary-light);
    border-top: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 24px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.stat-item h3 {
    font-size: 3rem;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--text-body);
}

/* Trusted By */
.trusted-by {
    padding: 80px 0;
    background: var(--bg-body);
}

.trusted-inner {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.trusted-title h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.logos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.logo-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

/* Bento Grid */
.courses-section {
    padding: 120px 0;
    background: var(--primary-dark);
}

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

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 24px;
}

.bento-item {
    background: var(--primary-light);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Background Image Utilities */
.bento-item.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
    /* Create stacking context */
}

.bento-item.has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(3, 7, 18, 0.6), rgba(3, 7, 18, 0.9));
    z-index: 1;
    transition: all 0.4s ease;
    pointer-events: none;
}

.bento-item.has-bg-image:hover::before {
    background: linear-gradient(to bottom, rgba(3, 7, 18, 0.4), rgba(3, 7, 18, 0.8));
    backdrop-filter: blur(2px);
}

/* Course Specific Backgrounds */
.bg-fotolectura {
    background-image: url('../course_fotolectura_1766781060613.png');
}

.bg-mathekids {
    background-image: url('../course_mathekids_1766781007639.png');
}

.bg-robotics {
    background-image: url('../course_robotics_1766781022794.png');
}

.bg-homeschool {
    background-image: url('../course_homeschool_1766781038868.png');
}

.bg-universidad {
    background-image: url('../course_universidad_1766781087467.png');
}

.bg-fastkids {
    background-image: url('../course_fastkids_1766781103293.png');
}

.bg-neurocomunicacion {
    background-image: url('../course_neurocomunicacion_1766781139883.png');
}

.bg-memoria {
    background-image: url('../course_memoria_1766781119280.png');
}

.bg-lideres {
    background-image: url('../course_lideres_1766781155082.png');
}

.bg-alfa-cash {
    background-image: url('../course_alfa_cash_1766781169578.png');
}

.bg-redaccion {
    background-image: url('../course_redaccion_1766781182443.png');
}

.bg-admision {
    background-image: url('../course_admision_1766781196274.png');
}

.bg-astronomia {
    background-image: url('../course_astronomia_1766781220676.png');
}

.bg-lectoescritura {
    background-image: url('../course_lectoescritura_1766781234694.png');
}

.bg-juniormath {
    background-image: url('../course_juniormath_1766781248878.png');
}

.bg-regularizacion {
    background-image: url('../course_regularizacion_1766781267868.png');
}

/* Placeholder for when it's generated */

.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-tall {
    grid-row: span 2;
}

.item-wide {
    grid-column: span 3;
}

.bento-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.bento-icon {
    width: 54px;
    height: 54px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.bento-item>h3,
.bento-item>p {
    position: relative;
    z-index: 2;
}

.btn-bento-primary {
    background: white;
    color: black;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.btn-bento-outline {
    border: 1px solid currentColor;
    padding: 12px 24px;
    border-radius: 100px;
    position: relative;
    z-index: 2;
}

.btn-link {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

/* Bento Additional Elements - Ensure clickability above overlay */
.bento-badge,
.bento-features,
.bento-stat,
.bento-row,
.bento-text,
.bento-visual {
    position: relative;
    z-index: 2;
}

.bento-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
}

.bento-features {
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.bento-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-body);
}

.bento-features li i {
    color: var(--accent);
    font-size: 0.8rem;
}

.bento-stat {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 16px 0;
}

.bento-stat span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Space Grotesk', sans-serif;
}

.bento-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.bento-text {
    flex: 1;
}

.bento-visual {
    opacity: 0.15;
    font-size: 8rem;
    position: absolute;
    bottom: -20px;
    right: -20px;
    pointer-events: none;
}

.bento-icon-bg {
    color: currentColor;
}

/* Methodology */
.methodology-section-ultra {
    padding: 120px 0;
    background: var(--primary-dark);
}

.timeline-3d {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-card {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.card-inner {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 24px;
    flex: 1;
}

.icon-sphere {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== MOBILE HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        transition: right 0.4s var(--ease-out-expo);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
        padding: 12px 24px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 0;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .hero-text p {
        margin: 0 auto 30px;
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        display: none;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .item-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .item-tall,
    .item-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .timeline-3d {
        gap: 40px;
    }

    .timeline-card {
        flex-direction: column;
        gap: 16px;
    }

    .step-number {
        font-size: 2.5rem;
    }

    .card-inner {
        padding: 24px;
    }

    .trusted-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .methodology-stats {
        flex-wrap: wrap;
        gap: 24px;
        padding: 24px;
    }

    .mstat-divider {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 12px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .item-large,
    .item-tall,
    .item-wide {
        grid-column: span 1;
    }

    .bento-item {
        padding: 24px;
        min-height: auto;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .courses-section,
    .methodology-section-ultra,
    .testimonials-section,
    .faq-section,
    .cta-section {
        padding: 60px 0;
    }

    .footer-cta-card {
        padding: 32px 20px;
    }

    .footer-cta-card h2 {
        font-size: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-social-proof {
        flex-direction: column;
        gap: 12px;
    }

    .avatars img {
        width: 36px;
        height: 36px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 16px;
    }

    .btn-whatsapp {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .btn-whatsapp i {
        font-size: 1.25rem;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .testimonial-card {
        padding: 24px 20px;
    }

    .testimonial-card .quote {
        font-size: 1rem;
    }

    .faq-question {
        padding: 16px;
    }

    .faq-question h4 {
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 0 16px 16px;
        font-size: 0.9rem;
    }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 100px 0;
    background: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    z-index: 0;
}

.testimonials-section .container {
    position: relative;
    z-index: 1;
}

.testimonials-section .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.testimonials-section .section-header h2 .highlight {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials-section .section-header p {
    color: var(--text-body);
    font-size: 1.1rem;
}

/* Swiper Testimonials */
.testimonial-swiper {
    padding: 40px 20px 60px;
    overflow: visible;
}

.testimonial-swiper .swiper-wrapper {
    padding-bottom: 20px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-glow);
}

.testimonial-card .stars {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 20px;
    display: flex;
    gap: 4px;
}

.testimonial-card .quote {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    flex: 1;
    font-style: italic;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.testimonial-card .author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.testimonial-card .author h5 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.testimonial-card .author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Swiper Navigation */
.testimonial-swiper .swiper-button-next,
.testimonial-swiper .swiper-button-prev {
    color: var(--accent);
    background: var(--bg-card);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.testimonial-swiper .swiper-button-next::after,
.testimonial-swiper .swiper-button-prev::after {
    font-size: 1rem;
    font-weight: bold;
}

.testimonial-swiper .swiper-button-next:hover,
.testimonial-swiper .swiper-button-prev:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.testimonial-swiper .swiper-pagination {
    bottom: 0 !important;
}

.testimonial-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--text-muted);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.testimonial-swiper .swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
    width: 32px;
    border-radius: 6px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 100px 0;
    background: var(--primary);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

.faq-section .container {
    position: relative;
    z-index: 1;
}

.faq-section .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.faq-section .section-header h2 .highlight {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-section .section-header p {
    color: var(--text-body);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

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

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
    margin: 0;
    padding-right: 16px;
}

.faq-question i {
    color: var(--accent);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-body);
    line-height: 1.7;
}

.faq-answer strong {
    color: var(--accent);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.2;
    filter: blur(100px);
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

.cta-box h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 16px;
}

.cta-box>p {
    color: var(--text-body);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-live-activity {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    margin-bottom: 32px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px var(--secondary);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 18px 36px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 1.5rem;
}

.btn-whatsapp span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-whatsapp small {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 400;
}

.btn-phone {
    color: var(--text-body);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.btn-phone:hover {
    color: var(--accent);
}

.cta-box .small-text {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-box .small-text i {
    color: #fbbf24;
}

/* ===== FOOTER ===== */
.footer-modern {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #000 100%);
    position: relative;
    padding-top: 0;
}

.footer-curve {
    position: relative;
    margin-top: -1px;
}

.footer-curve svg {
    display: block;
    width: 100%;
    height: auto;
}

.footer-curve svg path {
    fill: var(--primary-light);
}

.footer-content-wrapper {
    padding: 80px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-cta-card {
    background: var(--grad-accent);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.footer-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.footer-cta-card h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.footer-cta-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

/* Mobile Testimonials & FAQ */
@media (max-width: 768px) {

    .testimonials-section,
    .faq-section,
    .cta-section {
        padding: 60px 0;
    }

    .testimonials-section .section-header h2,
    .faq-section .section-header h2,
    .cta-box h2 {
        font-size: 1.75rem;
    }

    .faq-question h4 {
        font-size: 1rem;
    }

    .testimonial-swiper .swiper-button-next,
    .testimonial-swiper .swiper-button-prev {
        display: none;
    }

    .btn-whatsapp {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

/* Footer heading for proper hierarchy (using class instead of h4) */
.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

/* Ensure btn-primary meets WCAG AA contrast ratio */
.btn-primary {
    background: #7c3aed;
    /* Violet 600 - better contrast with white text */
    color: #ffffff;
}

/* Identity card improvements for contrast */
.identity-card .card-header {
    font-weight: 600;
}

/* Objection section text contrast fix */
.objection-section strong {
    color: #a78bfa;
    /* Visible on dark backgrounds */
}