/* ═══════════════════════════════════════════════════════════════
   PHYSIOLUNG - PRINCIPAL LANDING PAGE
   Diseño Glassmorphism Premium
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   1. CSS VARIABLES & RESET
   ───────────────────────────────────────────────────────────────── */
:root {
    /* Brand Colors */
    --primary: #004AAD;
    --primary-dark: #003580;
    --primary-light: rgba(0, 74, 173, 0.1);
    --accent: #EFB644;
    --accent-dark: #d9a33a;
    --accent-light: rgba(239, 182, 68, 0.15);

    /* Neutrals */
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-gray: #F1F5F9;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─────────────────────────────────────────────────────────────────
   2. NAVBAR
   ───────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 74, 173, 0.08);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 48px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 1px solid transparent;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-icon-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
}

/* Account Dropdown */
.nav-account-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.nav-account-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-dropdown-item i {
    color: var(--primary);
    width: 20px;
}

.nav-dropdown-register {
    background: var(--accent-light);
    border-top: 1px solid rgba(239, 182, 68, 0.2);
}

.nav-dropdown-register:hover {
    background: var(--accent);
    color: white;
}

.nav-dropdown-register:hover i {
    color: white;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────────
   3. BUTTONS
   ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 74, 173, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 74, 173, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(239, 182, 68, 0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 182, 68, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ─────────────────────────────────────────────────────────────────
   4. HERO SECTION
   ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('https://physiolung.com/wp-content/uploads/2025/06/curso-de-espirometria-2025-Physiolung.webp');
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 74, 173, 0.92) 0%,
            rgba(0, 53, 128, 0.85) 40%,
            rgba(239, 182, 68, 0.75) 100%);
}

.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 6s ease-in-out infinite;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(90deg, var(--accent) 0%, #FFD93D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-cta-primary {
    background: var(--accent);
    color: var(--text-primary);
    font-weight: 700;
}

.hero-cta-primary:hover {
    background: var(--accent-dark);
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ─────────────────────────────────────────────────────────────────
   LOGOS CAROUSEL (Partners Section)
   ───────────────────────────────────────────────────────────────── */
.partners-carousel-section {
    padding: 30px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 5;
    margin-top: -20px;
    /* Slight overlap with hero for elegance */
    overflow: hidden;
}

.partners-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 40s linear infinite;
    gap: 60px;
    align-items: center;
    padding: 10px 0;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-item {
    flex-shrink: 0;
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Half length because of duplicated content */
    }
}

/* Modal and Mobile adjustments for logos */
@media (max-width: 768px) {
    .partners-carousel-section {
        padding: 20px 0;
    }

    .partners-track {
        gap: 40px;
        animation-duration: 25s;
        /* Slightly faster for mobile feel */
    }

    .partner-item {
        width: 100px;
        height: 60px;
    }
}

/* ─────────────────────────────────────────────────────────────────
   5. SECTIONS BASE
   ───────────────────────────────────────────────────────────────── */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────────
   COURSE CTA BANNER - Elegant Purple Theme
   ───────────────────────────────────────────────────────────────── */
.course-cta-banner {
    margin: 32px 0 48px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.08) 0%,
            rgba(167, 139, 250, 0.12) 50%,
            rgba(196, 181, 253, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    padding: 4px;
    position: relative;
    overflow: hidden;
}

.course-cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(167, 139, 250, 0.1) 50%,
            transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

.cta-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 20px 32px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: calc(var(--radius-xl) - 4px);
    flex-wrap: wrap;
}

.cta-banner-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.cta-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.cta-banner-highlight {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7C3AED;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-banner-date {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.cta-banner-date strong {
    color: #6D28D9;
    font-weight: 700;
}

.cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
    flex-shrink: 0;
}

.cta-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
}

.cta-banner-btn i {
    transition: transform 0.3s ease;
}

.cta-banner-btn:hover i {
    transform: translateX(4px);
}

/* ─────────────────────────────────────────────────────────────────
   6. TU TRAYECTO (TIMELINE)
   ───────────────────────────────────────────────────────────────── */
.timeline-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, white 100%);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 60px;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: calc(50% - 40px);
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0, 74, 173, 0.3);
}

.timeline-step {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.timeline-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────
   TIMELINE CTA BANNER - Elegant Dark Blue Theme
   ───────────────────────────────────────────────────────────────── */
.timeline-cta-banner {
    margin-top: 60px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 32px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 74, 173, 0.3);
}

.timeline-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.timeline-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.2;
    pointer-events: none;
}

.timeline-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.timeline-cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.timeline-cta-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.timeline-cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.timeline-cta-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.timeline-cta-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.timeline-cta-date {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.timeline-cta-date i {
    color: var(--accent);
    font-size: 1.1rem;
}

.timeline-cta-date strong {
    color: var(--accent);
}

.timeline-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(239, 182, 68, 0.35);
}

.timeline-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(239, 182, 68, 0.5);
    background: #f5c94d;
}

.timeline-cta-btn i {
    font-size: 1rem;
}

/* ─────────────────────────────────────────────────────────────────
   7. TEAM SECTION - INFINITE CAROUSEL
   ───────────────────────────────────────────────────────────────── */
.team-section {
    background: white;
    overflow: hidden;
}

/* Legacy grid (for fallback) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

/* New Carousel Styles */
.team-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 40px;
}

.team-carousel-wrapper::before,
.team-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.team-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, white 0%, transparent 100%);
}

.team-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, white 0%, transparent 100%);
}

.team-carousel {
    display: flex;
    width: 100%;
    overflow: visible;
}

.team-carousel-track {
    display: flex;
    gap: 32px;
    animation: scrollCarousel 30s linear infinite;
    will-change: transform;
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.team-carousel:hover .team-carousel-track {
    animation-play-state: paused;
}

.team-card-carousel {
    flex-shrink: 0;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.team-card-carousel:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-card,
.team-card-carousel {
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #9CA3AF;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar,
.team-card-carousel:hover .team-avatar {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ─────────────────────────────────────────────────────────────────
   PROMO ALERT BAR
   ───────────────────────────────────────────────────────────────── */
.promo-alert-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid rgba(0, 74, 173, 0.1);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.promo-alert-bar.hidden {
    transform: translateY(-100%);
}

.promo-alert-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.promo-alert-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.promo-alert-text i {
    color: var(--primary);
    font-size: 1.1rem;
}

.promo-alert-text strong {
    color: var(--primary);
}

.promo-alert-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
}

.promo-alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 74, 173, 0.4);
}

.promo-alert-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.promo-alert-close:hover {
    color: var(--text-primary);
}

/* Push navbar down when promo bar is visible */
body:has(.promo-alert-bar:not(.hidden)) .navbar {
    top: 60px;
}

body:has(.promo-alert-bar:not(.hidden)) .hero {
    padding-top: 60px;
}

/* ─────────────────────────────────────────────────────────────────
   8. DIRECTOR / VIDEO SECTION
   ───────────────────────────────────────────────────────────────── */
.director-section {
    background: var(--bg-gray);
    position: relative;
    overflow: hidden;
}

.director-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.director-content {
    padding-right: 40px;
}

.director-quote {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    position: relative;
    padding-left: 24px;
    border-left: 4px solid var(--accent);
}

.director-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.director-role {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.director-video-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16/9;
}

.video-cover {
    position: absolute;
    inset: 0;
    cursor: pointer;
    z-index: 2;
    transition: all 0.5s ease;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 74, 173, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-cover:hover .video-cover-overlay {
    background: rgba(0, 74, 173, 0.6);
}

.video-play-btn {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    box-shadow: 0 8px 32px rgba(239, 182, 68, 0.5);
    transition: all 0.3s ease;
}

.video-cover:hover .video-play-btn {
    transform: scale(1.1);
}

.video-cover.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ─────────────────────────────────────────────────────────────────
   8.5 DIRECTOR VIDEO - GLASSMORPHISM NUEVO
   ───────────────────────────────────────────────────────────────── */
.director-section {
    position: relative;
    overflow: hidden;
}

/* Decorative shapes for director section */
.director-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.director-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.director-shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    filter: blur(80px);
}

.director-shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    bottom: -50px;
    left: -50px;
    filter: blur(60px);
}

.director-shape-3 {
    width: 150px;
    height: 150px;
    background: #7C3AED;
    top: 40%;
    right: 10%;
    filter: blur(50px);
}

/* New video wrapper with glassmorphism */
.director-video-wrapper {
    position: relative;
}

.director-video-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(0, 74, 173, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.video-container-responsive {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
}

.video-container-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ─────────────────────────────────────────────────────────────────
   9. TESTIMONIALS / OPINIONES - REDISEÑADO
   ───────────────────────────────────────────────────────────────── */
.testimonials-section {
    background: #edf1f6;
    position: relative;
    overflow: hidden;
}

/* Formas decorativas de fondo */
.testimonials-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.testimonials-shapes .shape {
    position: absolute;
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.testimonials-shapes .shape-circle {
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.testimonials-shapes .shape-1 {
    width: 80px;
    height: 80px;
    top: 8%;
    left: 5%;
    background: rgba(124, 58, 237, 0.12);
    border-color: #7C3AED;
    animation-delay: 0s;
}

.testimonials-shapes .shape-2 {
    width: 50px;
    height: 50px;
    top: 15%;
    right: 8%;
    background: rgba(0, 74, 173, 0.15);
    animation-delay: 1s;
}

.testimonials-shapes .shape-triangle {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid rgba(0, 74, 173, 0.1);
    top: 35%;
    left: 2%;
    animation-delay: 2s;
}

.testimonials-shapes .shape-square {
    width: 35px;
    height: 35px;
    background: rgba(239, 182, 68, 0.25);
    top: 12%;
    right: 18%;
    transform: rotate(45deg);
    animation-delay: 0.5s;
}

.testimonials-shapes .shape-5 {
    width: 25px;
    height: 25px;
    bottom: 25%;
    right: 5%;
    background: rgba(16, 185, 129, 0.25);
    animation-delay: 1.5s;
}

/* Nuevas formas adicionales */
.testimonials-shapes .shape-6 {
    width: 60px;
    height: 60px;
    bottom: 15%;
    left: 8%;
    background: rgba(239, 182, 68, 0.15);
    border: 3px solid rgba(239, 182, 68, 0.3);
    border-radius: 50%;
    animation-delay: 3s;
}

.testimonials-shapes .shape-7 {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid rgba(124, 58, 237, 0.1);
    bottom: 30%;
    right: 12%;
    animation-delay: 2.5s;
}

.testimonials-shapes .shape-8 {
    width: 20px;
    height: 20px;
    top: 55%;
    left: 3%;
    background: rgba(0, 74, 173, 0.2);
    border-radius: 50%;
    animation-delay: 4s;
}

.testimonials-shapes .shape-9 {
    width: 30px;
    height: 30px;
    top: 70%;
    right: 3%;
    background: rgba(124, 58, 237, 0.15);
    transform: rotate(45deg);
    animation-delay: 3.5s;
}

.testimonials-shapes .shape-10 {
    width: 45px;
    height: 45px;
    bottom: 8%;
    left: 25%;
    border: 3px solid rgba(16, 185, 129, 0.25);
    border-radius: 50%;
    animation-delay: 1.2s;
}

/* Layout principal */
.testimonials-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.testimonials-illustration {
    max-width: 400px;
}

.testimonials-illustration img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.testimonials-content .section-tag {
    margin-bottom: 12px;
}

.testimonials-content .section-title {
    text-align: left;
    margin-bottom: 32px;
}

/* Carrusel de testimonios */
.testimonials-carousel {
    position: relative;
    min-height: 280px;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.4s ease;
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #E5E7EB 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.testimonial-stars i {
    color: var(--accent);
    font-size: 0.9rem;
}

.testimonial-course {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
}

/* Dots de navegación */
.testimonials-dots {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 24px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D1D5DB;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot:hover {
    background: var(--primary);
    opacity: 0.6;
}

.testimonial-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ─────────────────────────────────────────────────────────────────
   10. BLOG SECTION
   ───────────────────────────────────────────────────────────────── */
.blog-section {
    background: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-thumbnail {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-content {
    padding: 24px;
}

.blog-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.blog-link:hover {
    gap: 10px;
}

/* ─────────────────────────────────────────────────────────────────
   11. LEAD CAPTURE SECTION
   ───────────────────────────────────────────────────────────────── */
.lead-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.lead-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(239, 182, 68, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.lead-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.lead-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--accent);
}

.lead-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.lead-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto 40px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.lead-input {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.lead-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.lead-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

.lead-btn {
    background: var(--accent);
    color: var(--text-primary);
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lead-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.lead-privacy {
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Hidden honeypot */
.website-check-field {
    position: absolute;
    left: -9999px;
}

/* ─────────────────────────────────────────────────────────────────
   12. FOOTER
   ───────────────────────────────────────────────────────────────── */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 48px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ─────────────────────────────────────────────────────────────────
   13. RESPONSIVE
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .director-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .director-content {
        padding-right: 0;
        text-align: center;
    }

    .director-quote {
        border-left: none;
        padding-left: 0;
        border-top: 4px solid var(--accent);
        padding-top: 20px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 80px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-icon {
        left: 30px;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 60px 0;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────────────────────────
   14. ANIMATIONS
   ───────────────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   15. COURSES CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.courses-section {
    background: linear-gradient(180deg, white 0%, var(--bg-light) 100%);
}

.courses-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.courses-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}

.courses-carousel::-webkit-scrollbar {
    display: none;
}

.course-card {
    flex: 0 0 320px;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.course-thumbnail {
    width: 100%;
    aspect-ratio: 770/440;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-content {
    padding: 20px;
    text-align: center;
}

.course-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
}

/* Free Course Badge */
.course-free {
    border: 2px solid var(--accent);
}

.course-free-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(239, 182, 68, 0.4);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

/* ═══════════════════════════════════════════════════════════════
   16. PAYMENT MODAL
   ═══════════════════════════════════════════════════════════════ */
.payment-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.payment-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.payment-modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.payment-modal-overlay.active .payment-modal {
    transform: scale(1);
}

.payment-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--bg-gray);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.payment-modal-close:hover {
    background: var(--primary);
    color: white;
}

.payment-modal-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
}

.payment-modal-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.payment-modal-price {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.payment-modal-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-option:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow-md);
}

.payment-flag {
    width: 40px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-paypal-icon {
    font-size: 2rem;
    color: #003087;
}

.payment-option-text {
    flex: 1;
}

.payment-option-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 2px;
}

.payment-option-text span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.payment-modal-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-gray);
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s ease;
}

.payment-modal-info:hover {
    color: var(--primary-dark);
}

/* ═══════════════════════════════════════════════════════════════
   17. LEAD POPUP (10 segundos)
   ═══════════════════════════════════════════════════════════════ */
.lead-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.lead-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lead-popup {
    /* Diseño blanco/light moderno */
    background: white;
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.lead-popup-overlay.active .lead-popup {
    transform: scale(1) translateY(0);
}

.lead-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--bg-gray);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.lead-popup-close:hover {
    background: var(--primary);
    color: white;
}

.lead-popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 12px 32px rgba(0, 74, 173, 0.3);
}

.lead-popup-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.lead-popup-text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
    font-size: 1rem;
}

.lead-popup-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lead-popup-input {
    padding: 16px 20px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.lead-popup-input::placeholder {
    color: var(--text-muted);
}

.lead-popup-input:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 74, 173, 0.1);
}

.lead-popup-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 74, 173, 0.35);
}

.lead-popup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 74, 173, 0.45);
}

.lead-popup-privacy {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.lead-popup-privacy i {
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════
   18. FOOTER SIMPLIFICADO (Inline)
   ═══════════════════════════════════════════════════════════════ */
.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-payment-inline {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-payment-inline img {
    height: 36px;
    width: auto;
    border-radius: 4px;
}

.footer-secure-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-secure-inline i {
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   19. ADMIN LEAD BADGE
   ═══════════════════════════════════════════════════════════════ */
.admin-lead-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: none;
}

.admin-lead-badge.visible {
    display: block;
}

.admin-lead-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-lead-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 74, 173, 0.4);
}

.admin-lead-count {
    background: var(--accent);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════
   20. RESPONSIVE - COMPLETE MOBILE & TABLET STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   TABLET (max-width: 1024px)
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
        display: flex;
    }

    .nav-menu .nav-link {
        padding: 16px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }

    .nav-actions .btn-nav-cta {
        display: none;
    }

    /* Director section */
    .director-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .director-content {
        text-align: center;
    }

    .director-content .section-title {
        text-align: center;
    }

    /* Testimonials */
    .testimonials-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonials-illustration {
        max-width: 280px;
        margin: 0 auto;
    }

    .testimonials-content .section-title {
        text-align: center;
    }

    /* Team grid - 3 columns on tablet */
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    /* Promo alert bar - tablet */
    .promo-alert-bar {
        padding: 10px 60px 10px 20px;
    }

    .promo-alert-text {
        font-size: 0.9rem;
    }

    /* Team carousel - smaller cards */
    .team-carousel-wrapper::before,
    .team-carousel-wrapper::after {
        width: 60px;
    }

    .team-carousel-track {
        gap: 24px;
    }

    .team-avatar {
        width: 100px;
        height: 100px;
    }
}

/* ─────────────────────────────────────────────────────────────────
   MOBILE (max-width: 768px)
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* General */
    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Navbar */
    .nav-logo img {
        height: 38px;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-icon-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero {
        min-height: 80vh;
        padding-top: 100px;
    }

    .hero-bg-image {
        background-position: 35% center;
        background-size: cover;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Courses Carousel */
    .courses-carousel-wrapper {
        padding: 0 16px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .carousel-prev {
        left: 0;
    }

    .carousel-next {
        right: 0;
    }

    .course-card {
        flex: 0 0 280px;
    }

    /* Course CTA Banner - Mobile */
    .course-cta-banner {
        margin: 24px 0 32px;
    }

    .cta-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 16px 20px;
    }

    .cta-banner-text {
        text-align: center;
    }

    .cta-banner-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .cta-banner-highlight {
        font-size: 0.8rem;
    }

    .cta-banner-date {
        font-size: 1rem;
    }

    .cta-banner-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-item::before {
        left: 8px;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    /* Timeline CTA - Mobile */
    .timeline-cta-banner {
        padding: 24px 20px;
        margin-top: 40px;
    }

    .timeline-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .timeline-cta-left {
        flex-direction: column;
        text-align: center;
    }

    .timeline-cta-icon {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }

    .timeline-cta-text {
        text-align: center;
    }

    .timeline-cta-title {
        font-size: 1.3rem;
    }

    .timeline-cta-subtitle {
        font-size: 0.9rem;
    }

    .timeline-cta-right {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .timeline-cta-date {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .timeline-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    /* Team Grid - 2 columns on mobile */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .team-card {
        padding: 16px;
        cursor: pointer;
    }

    .team-avatar {
        width: 70px;
        height: 70px;
    }

    .team-name {
        font-size: 0.9rem;
    }

    .team-role {
        font-size: 0.75rem;
    }

    /* Team carousel - mobile adjustments */
    .team-carousel-wrapper::before,
    .team-carousel-wrapper::after {
        width: 40px;
    }

    .team-carousel-track {
        gap: 16px;
        animation-duration: 25s;
    }

    .team-card-carousel {
        padding: 12px;
    }

    .team-card-carousel .team-avatar {
        width: 80px;
        height: 80px;
    }

    /* Promo alert bar - mobile */
    .promo-alert-bar {
        padding: 10px 50px 10px 16px;
    }

    .promo-alert-content {
        flex-direction: column;
        gap: 12px;
    }

    .promo-alert-text {
        font-size: 0.85rem;
        text-align: center;
    }

    .promo-alert-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .promo-alert-close {
        right: 8px;
        font-size: 1rem;
    }

    /* Promo bar navbar offset */
    body:has(.promo-alert-bar:not(.hidden)) .navbar {
        top: 90px;
    }

    body:has(.promo-alert-bar:not(.hidden)) .hero {
        padding-top: 90px;
    }

    /* Director section */
    .director-grid {
        gap: 32px;
    }

    .director-quote {
        font-size: 1rem;
    }

    .director-video-glass {
        padding: 10px;
    }

    /* Testimonials - Stacked layout */
    .testimonials-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonials-illustration {
        max-width: 200px;
        order: -1;
    }

    .testimonials-content {
        text-align: center;
    }

    .testimonials-content .section-tag {
        justify-content: center;
    }

    .testimonials-content .section-title {
        text-align: center;
    }

    .testimonials-carousel {
        min-height: 320px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .testimonial-info {
        text-align: center;
    }

    .testimonial-stars {
        justify-content: center;
    }

    .testimonials-dots {
        justify-content: center;
    }

    /* Hide decorative shapes on mobile */
    .testimonials-shapes .shape {
        opacity: 0.25;
        transform: scale(0.6);
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Lead Section */
    .lead-section-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .lead-form {
        flex-direction: column;
    }

    /* Footer */
    .footer-main {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
    }

    .footer-payment-inline {
        flex-direction: column;
        gap: 10px;
    }

    .footer-payment-inline img {
        height: 28px;
    }

    /* Modal/Popups */
    .payment-modal,
    .lead-popup {
        padding: 24px 20px;
        margin: 16px;
        max-width: calc(100% - 32px);
    }

    .payment-modal-title,
    .lead-popup-title {
        font-size: 1.25rem;
    }
}

/* ─────────────────────────────────────────────────────────────────
   SMALL MOBILE (max-width: 480px)
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .course-card {
        flex: 0 0 260px;
    }

    .team-grid {
        gap: 12px;
    }

    .team-avatar {
        width: 60px;
        height: 60px;
    }

    .team-name {
        font-size: 0.85rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* ─────────────────────────────────────────────────────────────────
   TEAM MEMBER MODAL (Click to Zoom)
   ───────────────────────────────────────────────────────────────── */
.team-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.team-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.team-modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.team-modal-overlay.active .team-modal {
    transform: scale(1) translateY(0);
}

.team-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.team-modal-close:hover {
    background: var(--primary);
    color: white;
}

.team-modal-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: 0 8px 32px rgba(0, 74, 173, 0.2);
    border: 4px solid var(--accent);
}

.team-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-modal-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.team-modal-role {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────
   IMPROVED TESTIMONIALS GLASSMORPHISM
   ───────────────────────────────────────────────────────────────── */
.testimonials-section {
    background: linear-gradient(135deg, #edf1f6 0%, #e8f0fa 50%, #f0f4f8 100%);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 74, 173, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 74, 173, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.testimonials-content {
    position: relative;
}

/* Glass accent border */
.testimonials-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #7C3AED 50%, var(--accent) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────── */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 60px 0 24px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary-dark) 50%, var(--accent) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 48px;
    width: auto;
}

.footer-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact li i {
    color: var(--accent);
    font-size: 1rem;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links li a:hover {
        transform: none;
    }

    .footer-contact li {
        justify-content: center;
    }
}

/* ─────────────────────────────────────────────────────────────────
   PAYMENT MODAL
   ───────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-gray);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 32px 24px;
    text-align: center;
}

.modal-header-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-price {
    font-size: 1.1rem;
    opacity: 0.9;
}

.modal-body {
    padding: 24px;
}

.modal-body>p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-light);
    border: 2px solid var(--bg-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.payment-option:hover {
    border-color: var(--primary);
    background: rgba(0, 74, 173, 0.05);
    transform: translateX(4px);
}

.payment-option-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.payment-option-icon.chile {
    background: linear-gradient(135deg, #0039A6 50%, #FFFFFF 50%, #FFFFFF 60%, #D52B1E 60%);
}

.payment-option-icon.chile::before {
    content: '★';
    color: white;
    font-size: 0.8rem;
    position: absolute;
}

.payment-option-icon.paypal {
    background: #003087;
    color: white;
}

.payment-option-info {
    flex: 1;
}

.payment-option-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.payment-option-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.payment-option i.fa-chevron-right {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.payment-option:hover i.fa-chevron-right {
    transform: translateX(4px);
    color: var(--primary);
}

@media (max-width: 576px) {
    .modal-container {
        max-width: 100%;
    }

    .modal-header {
        padding: 24px 20px;
    }

    .modal-body {
        padding: 20px;
    }
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER CTA SECTION
   ───────────────────────────────────────────────────────────────── */
.footer-cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #8B5CF6 100%);
    position: relative;
    overflow: hidden;
}

.footer-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="rgba(255,255,255,0.03)" d="M0,0 L1200,0 L1200,80 Q600,120 0,80 Z"></path></svg>');
    background-size: cover;
    opacity: 0.5;
}

.footer-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.footer-cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────
   LEAD FORM (CTA Section)
   ───────────────────────────────────────────────────────────────── */
.lead-form {
    margin-top: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.lead-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.lead-form-group {
    flex: 1;
    min-width: 200px;
}

.lead-form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    -webkit-text-fill-color: white !important;
}

/* Fix para evitar el fondo azul del autocompletado */
.lead-form-group input:-webkit-autofill,
.lead-form-group input:-webkit-autofill:hover,
.lead-form-group input:-webkit-autofill:focus,
.lead-form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.1) inset !important;
    -webkit-text-fill-color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.lead-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.lead-form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
}

.lead-submit-btn {
    flex-shrink: 0;
    min-width: 160px;
}

.lead-form-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lead-form-note i {
    font-size: 0.9rem;
}

.lead-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    margin-top: 24px;
    color: var(--white);
    font-size: 1.1rem;
}

.lead-success i {
    font-size: 1.5rem;
    color: var(--accent);
}

@media (max-width: 768px) {
    .lead-form-row {
        flex-direction: column;
    }

    .lead-form-group {
        min-width: 100%;
    }

    .lead-submit-btn {
        width: 100%;
    }
}