/* =============================================
   PROYECT 664 — DESIGN SYSTEM v2
   Boceto Final · Multi-página
   ============================================= */

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #FFFFFF;
    --bg-alt: #F7F8FC;
    --bg-dark: #0D1117;
    --bg-dark-alt: #161B22;
    --navy: #1A2340;
    --navy-mid: #2D3F6B;
    --navy-light: #3B5198;
    --gold: #D4A520;
    --gold-light: #F0D060;
    --gold-dark: #B8960A;
    --green: #2D6A4F;
    --green-light: #40916C;
    --red: #EB001B;
    --text: #1A1A1A;
    --text-mid: #4A5568;
    --text-soft: #6B7280;
    --text-inv: #F0F0F0;
    --border: #E5E7EB;
    --border-dark: #30363D;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 100px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }

/* === UTILITIES === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.badge--gold { background: rgba(212, 165, 32, 0.1); color: var(--gold-dark); border: 1px solid rgba(212, 165, 32, 0.2); }
.badge--navy { background: rgba(26, 35, 64, 0.08); color: var(--navy); border: 1px solid rgba(26, 35, 64, 0.15); }
.badge--green { background: rgba(45, 106, 79, 0.08); color: var(--green); border: 1px solid rgba(45, 106, 79, 0.15); }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.3px;
}

.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26, 35, 64, 0.25); }
.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212, 165, 32, 0.3); }
.btn--outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn--ghost-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.35); }
.btn--ghost-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }


.btn--white { background: #fff; color: var(--navy); border: 2px solid transparent; }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: #f0f0f0; }

.btn--lg { padding: 18px 40px; font-size: 16px; border-radius: var(--radius-md); }
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--block { width: 100%; }

/* =============================================
   HEADER / NAVBAR — CON ICONOS
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: all var(--transition);
}

.header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav__logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.nav__logo span { color: var(--gold); }

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}

.nav__link:hover, .nav__link.active { color: var(--navy); }

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav__link:hover::after, .nav__link.active::after { width: 100%; }

/* Icons area (user + cart) */
.nav__icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--text-mid);
}

.nav__icon-btn:hover {
    background: var(--bg-alt);
    color: var(--navy);
}

.nav__icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav__cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav__cta-btn {
    margin-left: 8px;
}

/* Mobile toggle */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Submenú desktop (Curso Shopify → Módulos) ── */
.nav__item--has-sub { position: relative; }

.nav__link--caret {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav__sub-toggle {
    font-size: 10px;
    transition: transform 0.2s ease;
    display: inline-block;
    line-height: 1;
}

.nav__item--has-sub:hover .nav__sub-toggle,
.nav__item--has-sub.open .nav__sub-toggle {
    transform: rotate(180deg);
}

/* Flecha › mobile y panel sub-pantalla mobile — ocultos en desktop */
.nav__mobile-caret { display: none; }
.nav__mobile-sub   { display: none !important; }



/* Panel de módulos — desktop */
/* top:100% sin gap: el mouse nunca pierde el hover,
   left:0 alineado al borde izquierdo de "Curso Shopify" */
.nav__sub {
    display: none;
    position: absolute;
    top: 100%;          /* Sin brecha — evita que hover se pierda */
    left: 0;            /* Alineado al borde izquierdo del item */
    transform: none;    /* Sin centrado — no tapa Inicio */
    background: #fff;
    border-radius: 0 14px 14px 14px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.18);
    min-width: 270px;
    padding: 6px 0 8px;
    z-index: 5000;
    list-style: none;
    border: 1px solid rgba(0,0,0,0.07);
    border-top: none;
    pointer-events: all; /* Garantiza que sea clickeable */
}

.nav__item--has-sub:hover .nav__sub { display: block; }

/* Links de módulo dentro del submenú */
.nav__sub-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #333;
    font-size: 13.5px;
    transition: background 0.15s;
    text-decoration: none;
    border-bottom: 1px solid #f4f4f4;
    cursor: pointer;
}
.nav__sub-link:last-child { border-bottom: none; }
.nav__sub-link:hover { background: #f0f4ff; }
.nav__sub-link small { color: #888; font-size: 11.5px; display: block; margin-top: 1px; }
.nav__sub-link b { font-weight: 600; font-size: 13.5px; color: #1a2340; }

/* Badge — CIRCULAR */
.nav__sub-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%; /* Círculo perfecto */
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    aspect-ratio: 1;
}

/* Módulo activo */
.nav__sub-link.active-module { background: #eef2ff; }
.nav__sub-link.active-module b { color: var(--navy); font-weight: 700; }





/* =============================================
   HERO BASE
   ============================================= */
.hero {
    padding: 130px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F7F8FC 0%, #EEF0F8 50%, #F0ECE3 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 165, 32, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* =============================================
   HERO DARK (home premium)
   ============================================= */
.hero--dark {
    background: #0d1117;
}

.hero--dark::before { display: none; } /* desactivar el ::before original */

/* orbes decorativos */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}
.hero-orb--gold {
    width: 600px; height: 600px;
    top: -150px; right: -100px;
    background: radial-gradient(circle, rgba(212,165,32,0.18) 0%, transparent 65%);
}
.hero-orb--blue {
    width: 400px; height: 400px;
    bottom: -100px; left: -80px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 65%);
}

/* texto sobre fondo oscuro */
.hero--dark .hero__title     { color: #fff; }
.hero--dark .hero__subtitle  { color: rgba(255,255,255,0.6); }
.hero--dark .hero__stat-number { color: #fff; }
.hero--dark .hero__stat-label  { color: rgba(255,255,255,0.45); }
.hero--dark .hero__stats {
    border-top-color: rgba(255,255,255,0.1);
    gap: 0;
    flex-wrap: wrap;
}

/* separadores entre stats */
.hero__stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    margin: 0 24px;
    align-self: center;
}

/* badge oscuro */
.badge--gold-dark {
    background: rgba(212,165,32,0.15);
    color: var(--gold);
    border: 1px solid rgba(212,165,32,0.3);
}

/* botón ghost (solo borde blanco translúcido) */
.btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 2px solid rgba(255,255,255,0.2);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* =============================================
   COURSE PREVIEW WIDGET (hero derecho)
   ============================================= */
.course-preview-widget {
    flex: 0 0 430px;
    background: #131b2e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.cpw__titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cpw__dots {
    display: flex;
    gap: 6px;
}
.cpw__dots span {
    width: 11px; height: 11px;
    border-radius: 50%;
    display: block;
}

.cpw__title {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.3px;
}

.cpw__badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cpw__badge-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.5;
}

.cpw__modules {
    padding: 8px 0;
}

.cpw__mod {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    transition: background var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cpw__mod:last-child { border-bottom: none; }
.cpw__mod:hover { background: rgba(255,255,255,0.05); }

.cpw__num {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.cpw__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cpw__name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

.cpw__sub {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}

.cpw__arrow {
    font-size: 18px;
    color: rgba(255,255,255,0.2);
    transition: color var(--transition), transform var(--transition);
}
.cpw__mod:hover .cpw__arrow {
    color: var(--gold);
    transform: translateX(3px);
}

.cpw__cta {
    display: block;
    text-align: center;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: opacity var(--transition);
}
.cpw__cta:hover { opacity: 0.88; }

.hero__row {
    display: flex;
    align-items: center;
    gap: 60px;
}

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

.hero__image {
    flex: 0 0 420px;
    position: relative;
    z-index: 2;
}

.hero__image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero__badge { margin-bottom: 20px; }

.hero__title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.hero__title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 17px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
    display: flex;
    gap: 36px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.hero__stat-number { font-size: 26px; font-weight: 800; color: var(--navy); display: block; }
.hero__stat-label { font-size: 13px; color: var(--text-soft); margin-top: 2px; }

/* =============================================
   SECTIONS GENERAL
   ============================================= */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-inv); }

.section__header { text-align: center; margin-bottom: 48px; }
.section__tag {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 12px;
}
.section--dark .section__tag { color: var(--gold-light); }

.section__title {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.section--dark .section__title { color: #fff; }
.section__title em { font-style: normal; color: var(--gold); }
.section--dark .section__title em { color: var(--gold-light); }

.section__desc {
    font-size: 16px;
    color: var(--text-mid);
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.section--dark .section__desc { color: rgba(255,255,255,0.5); }

/* =============================================
   FEATURE CARDS (3 columns)
   ============================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--navy));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }

.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    background: rgba(26, 35, 64, 0.06);
}

.feature-card__title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card__desc { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.feature-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-dark);
    transition: gap var(--transition);
}
.feature-card__link:hover { gap: 10px; }

/* =============================================
   MODULE CARDS (for course overview page)
   ============================================= */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* =============================================
   PREMIUM MODULE CARDS (index home)
   ============================================= */
.modules-grid--premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pmod-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.pmod-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* barra lateral de color */
.pmod-card__accent {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 0;
}

/* número grande con borde del mismo color */
.pmod-card__num {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    padding: 22px 8px 0 20px;
    border: none;
    background: transparent;
    letter-spacing: -2px;
    opacity: 0.9;
}

.pmod-card__body {
    padding: 10px 20px 16px 20px;
    flex: 1;
}

.pmod-card__tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 6px;
}

.pmod-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.25;
}

.pmod-card__desc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.55;
    margin: 0;
}

.pmod-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
}

.pmod-card__lessons {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pmod-card__play {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    transition: gap 0.2s ease;
}

.pmod-card:hover .pmod-card__play {
    gap: 8px;
}



.module-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.module-card__header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.module-card__num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}

.module-card__info { flex: 1; }
.module-card__tag { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.module-card__title { font-size: 18px; font-weight: 700; color: var(--navy); margin-top: 4px; line-height: 1.3; }
.module-card__desc { font-size: 13px; color: var(--text-mid); line-height: 1.6; padding: 0 24px; margin-bottom: 16px; }

.module-card__lessons {
    list-style: none;
    padding: 0 24px;
    flex: 1;
}

.module-card__lesson {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text);
    transition: color var(--transition);
}

.module-card__lesson:hover { color: var(--gold-dark); }

.module-card__lesson-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
    flex-shrink: 0;
}

.module-card__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Para index.html: lecciones count + "Ver módulo →" */
.module-card__lessons {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: 0.3px;
}

.module-card__cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-dark);
    transition: letter-spacing var(--transition);
}

.module-card:hover .module-card__cta {
    letter-spacing: 0.5px;
}

/* =============================================
   LESSON CARDS (inside module pages)
   ============================================= */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.lesson-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

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

.lesson-card__image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-alt);
}

.lesson-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.lesson-card:hover .lesson-card__image img { transform: scale(1.05); }

.lesson-card__num-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--navy);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.lesson-card__body { padding: 18px; }

.lesson-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

.lesson-card__desc {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.5;
    margin-bottom: 14px;
}

.lesson-card__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-dark);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* =============================================
   PRODUCT CARDS
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

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

.product-card__image {
    position: relative;
    background: var(--bg-alt);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.product-card__badge { position: absolute; top: 12px; right: 12px; }

.product-card__body { padding: 20px; }
.product-card__category { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: 8px; }
.product-card__title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 12px; line-height: 1.3; }

.product-card__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.product-card__price-old { font-size: 14px; color: var(--text-soft); text-decoration: line-through; }
.product-card__price-new { font-size: 22px; font-weight: 800; color: var(--navy); }

/* =============================================
   COURSE PAGE HERO (smaller)
   ============================================= */
.page-hero {
    padding: 120px 0 50px;
    background: linear-gradient(135deg, #F7F8FC 0%, #EEF0F8 100%);
}

.page-hero__breadcrumb {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.page-hero__breadcrumb a { color: var(--gold-dark); }
.page-hero__breadcrumb a:hover { text-decoration: underline; }

.page-hero__title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 12px;
}

.page-hero__title em {
    font-style: normal;
    color: var(--gold);
}

.page-hero__desc {
    font-size: 17px;
    color: var(--text-mid);
    max-width: 600px;
    line-height: 1.6;
}

.page-hero__stats {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.page-hero__stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-mid);
}

.page-hero__stat strong {
    color: var(--navy);
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    padding: 80px 0;
    background: #0d1117;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 165, 32, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-section__title { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.2; }
.cta-section__desc { color: rgba(255,255,255,0.6); font-size: 16px; margin-bottom: 32px; }
.cta-section__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--bg-dark);
    padding: 60px 0 30px;
    color: rgba(255,255,255,0.5);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__brand h4 { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer__brand h4 span { color: var(--gold); }
.footer__brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }

.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    transition: all var(--transition);
}
.footer__social a:hover { background: var(--gold); color: #fff; }

.footer__col h5 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer__col a:hover { color: var(--gold); }

.footer__bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   SOCIAL CARDS SECTION
   ============================================= */
.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 28px 20px;
    text-decoration: none;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.social-card__icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.social-card__platform {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.social-card__handle {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}

.social-card__btn {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--gold);
    text-transform: uppercase;
    margin-top: 4px;
    transition: letter-spacing 0.2s ease;
}

.social-card:hover .social-card__btn {
    letter-spacing: 1.5px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 968px) {

    /* ── FAB hamburger — esquina inferior derecha ── */
    .nav__toggle {
        display: flex;
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--navy);
        box-shadow: 0 4px 20px rgba(0,0,0,0.28);
        z-index: 10001;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }
    .nav__toggle:hover { background: var(--gold); box-shadow: 0 6px 28px rgba(0,0,0,0.3); transform: scale(1.06); }

    /* Líneas del hamburger — blancas sobre fondo navy */
    .nav__toggle span {
        background: #fff;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        position: absolute;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }
    .nav__toggle span:nth-child(1) { transform: translateY(-7px); }
    .nav__toggle span:nth-child(2) { transform: translateY(0); }
    .nav__toggle span:nth-child(3) { transform: translateY(7px); }

    /* Ícono → X cuando está abierto */
    .nav__toggle.active span:nth-child(1) { transform: translateY(0) rotate(45deg); }
    .nav__toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav__toggle.active span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

    /* ── Overlay: semitransparente, NO bloquea scroll ── */
    .nav__overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.25);
        z-index: 9999;
    }
    .nav__overlay.open { display: block; }

    /* ── Panel compacto flotante anclado encima del FAB ── */
    .nav__links {
        position: fixed;
        bottom: 92px;          /* justo encima del FAB (56px + 12px gap + 24px bottom) */
        right: 16px;
        width: 220px;
        background: #fff;
        flex-direction: column;
        padding: 8px 0;
        gap: 0;
        z-index: 10000;
        border-radius: 16px;
        box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
        display: flex;
        pointer-events: none;
        opacity: 0;
        transform: translateY(12px) scale(0.95);
        transform-origin: bottom right;
        transition: opacity 0.22s ease, transform 0.22s ease;
    }
    .nav__links.open {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: all;
    }

    /* ── Links dentro del panel compacto ── */
    .nav__link {
        font-size: 15px;
        font-weight: 600;
        padding: 14px 20px;
        border-radius: 0;
        color: #333;
        width: 100%;
        background: transparent;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .nav__link:first-child { border-radius: 16px 16px 0 0; }
    .nav__link:last-of-type { border-bottom: none; }
    .nav__link:hover {
        background: #f8f8f8;
        color: var(--navy);
    }
    .nav__link.active {
        color: var(--gold);
        font-weight: 700;
        background: transparent;
    }
    .nav__link::after { display: none; }

    /* Sin flecha decorativa */
    .nav__link::before { display: none; }

    /* ── Sistema dos pantallas mobile ── */

    /* En mobile: el <a> de Curso Shopify actúa como trigger (no navega, abre sub-pantalla) */
    /* Se muestra igual que los otros links pero con la flecha dorada › al lado derecho */
    .nav__item--has-sub > a.nav__link {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }
    /* Ocultar la flechita ▾ del desktop en mobile */
    .nav__item--has-sub > a.nav__link .nav__sub-toggle { display: none !important; }
    /* Quitar ::after que ya no se necesita */
    .nav__item--has-sub > a.nav__link::after { content: none !important; }

    /* Flecha › mobile (span insertado en el HTML) — solo visible en mobile */
    .nav__mobile-caret {
        display: flex !important;
        align-items: center;
        font-size: 22px;
        line-height: 1;
        color: var(--gold);
        font-weight: 300;
        margin-left: auto;
        padding-right: 4px;
    }

    /* Ocultar el dropdown hover en mobile */
    .nav__sub { display: none !important; }


    /* Panel de sub-pantalla mobile (oculto por defecto) */
    .nav__mobile-sub {
        display: none;
        list-style: none;
        padding: 0;
    }
    /* Caret derecho del trigger */
    .nav__caret-r {
        font-size: 18px;
        color: var(--gold);
        font-weight: 400;
    }

    /* Barra de encabezado de la sub-pantalla */
    .nav__sub-header-bar {
        border-bottom: 2px solid #f0f0f0;
        padding: 0;
        margin-bottom: 4px;
    }

    /* Botón "← Volver al menú principal" */
    .nav__back-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 13px 16px;
        width: 100%;
        background: transparent;
        border: none;
        font-size: 13px;
        font-weight: 600;
        color: var(--navy);
        cursor: pointer;
        font-family: inherit;
        text-align: left;
    }
    .nav__back-btn:hover { background: #f5f5f7; color: var(--gold); }

    /* Cuando navLinks está en "at-sub": ocultar items main, mostrar sub */
    .nav__links.at-sub .nav__item { display: none !important; }
    .nav__links.at-sub .nav__mobile-sub { display: block !important; }

    /* Links de módulo en mobile */
    .nav__sub-link {
        padding: 10px 16px;
        font-size: 13px;
        gap: 10px;
        border-bottom: 1px solid #ebebeb;
    }
    .nav__sub-badge {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-size: 12px;
        min-width: 30px;
        min-height: 30px;
        aspect-ratio: 1;
    }

    /* CTA dentro del panel — compacto */
    .nav__cta-btn {
        display: inline-flex;
        margin: 8px 12px 4px;
        width: calc(100% - 24px);
        justify-content: center;
        font-size: 14px;
        padding: 10px 16px;
        border-radius: 10px;
    }



    /* ── Layout responsive general ── */
    .hero { padding: 110px 0 60px; }
    .hero__row { flex-direction: column; gap: 32px; }
    .hero__image { flex: 0 0 auto; width: 100%; max-width: 400px; }

    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .modules-grid { grid-template-columns: 1fr; }
    .modules-grid--premium { grid-template-columns: 1fr 1fr; }
    .social-cards-grid { grid-template-columns: 1fr 1fr; }

    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}




@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .section { padding: 60px 0; }

    .hero__title { font-size: 28px; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .hero__stats { flex-wrap: wrap; gap: 16px; }

    .products-grid { grid-template-columns: 1fr; }
    .lessons-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }

    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }

    .page-hero__stats { flex-wrap: wrap; }
}
