/* =============================================================================
   Cursos de Excel — Hoja de estilos principal (sitio público y área del alumno)
   -----------------------------------------------------------------------------
   Organización:
     1. Variables de marca (colores, tipografía, medidas)
     2. Base y utilidades
     3. Encabezado y pie
     4. Botones y formularios
     5. Secciones del inicio
     6. Tarjetas de curso y ficha de curso
     7. Checkout
     8. Área del alumno y reproductor
     9. Certificados
    10. Responsivo
   @autor iDeeSolution & Victor Fuentes
   ============================================================================= */

/* 1. Variables ---------------------------------------------------------------- */
:root {
  --green-900: #0a3a1d;
  --green-800: #0d4d26;
  --green-700: #106329;
  --green-600: #157a34;   /* verde del logo */
  --green-500: #1f9a4b;
  --green-400: #33b866;
  --green-100: #e7f5ec;
  --green-50:  #f3faf5;
  --red-600:   #d4202b;   /* rojo del sombrero, para llamadas a la acción */
  --red-700:   #b0141f;
  --gold:      #f4b400;
  --ink:       #17201b;
  --ink-2:     #3a4540;
  --muted:     #66716b;
  --line:      #e2e8e4;
  --bg:        #ffffff;
  --bg-soft:   #f5f8f6;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 10px 30px rgba(10, 58, 29, .08);
  --shadow-lg: 0 20px 50px rgba(10, 58, 29, .14);
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1180px;
}

/* 2. Base --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-800); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--green-900); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: rgba(255,255,255,.75); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); margin-bottom: .8rem;
}
.section-dark .eyebrow { color: var(--green-400); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.badge {
  display: inline-flex; align-items: center; gap: .35em; padding: .25em .7em; border-radius: 99px;
  font-size: .78rem; font-weight: 600; background: var(--green-100); color: var(--green-700);
}
.badge-red { background: #fde8e9; color: var(--red-700); }
.badge-gray { background: #eef1ef; color: var(--muted); }
.badge-gold { background: #fff4d6; color: #8a6400; }

/* Avisos (flash) */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin: 0 0 20px; border: 1px solid; font-size: .95rem; }
.alert-ok      { background: #ebf8ef; border-color: #b9e4c6; color: #0f5226; }
.alert-error   { background: #fdeced; border-color: #f5c2c5; color: #8f121b; }
.alert-warning { background: #fff8e5; border-color: #f3dc9b; color: #6b4e00; }
.alert-info    { background: #eaf3fb; border-color: #bcd8f0; color: #194f7a; }
.flash-wrap { padding-top: 20px; }

/* 3. Encabezado y pie ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); font-weight: 500; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--green-700); background: var(--green-50); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.hide-desktop { display: none; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

.site-footer { background: var(--green-900); color: rgba(255,255,255,.78); padding: 64px 0 0; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-logo img { height: 50px; margin-bottom: 14px; }
.footer-bottom {
  margin-top: 48px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}
.footer-bottom img { height: 22px; display: inline-block; vertical-align: middle; opacity: .85; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--green-600); }
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.07); color: #fff; }

/* 4. Botones y formularios -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 12px 22px; border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; line-height: 1.2;
  transition: background .15s, transform .15s, box-shadow .15s, color .15s; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-cta { background: var(--red-600); color: #fff; box-shadow: 0 8px 20px rgba(212,32,43,.28); }
.btn-cta:hover { background: var(--red-700); color: #fff; box-shadow: 0 10px 24px rgba(212,32,43,.36); }
.btn-outline { border-color: var(--green-600); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-50); color: var(--green-800); }
.btn-light { background: #fff; color: var(--green-800); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: #fff; color: var(--red-700); border-color: #f2c0c3; }
.btn-danger:hover { background: #fdeced; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .93rem; color: var(--ink-2); }
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
input[type=url], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(31,154,75,.14); }
textarea { min-height: 120px; resize: vertical; }
.field-error { color: var(--red-700); font-size: .85rem; margin-top: 4px; }
.input-error { border-color: #e48b91 !important; }
.help { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--green-600); width: 18px; height: 18px; flex: none; }
.password-wrap { position: relative; }
.password-wrap button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0;
  color: var(--muted); cursor: pointer; padding: 6px; font-size: .8rem;
}

/* 5. Inicio ----------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(51,184,102,.35), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(212,32,43,.18), transparent 60%),
    linear-gradient(135deg, var(--green-900), var(--green-700));
  padding: 96px 0 110px;
}
.hero::after { /* cuadrícula tipo hoja de cálculo */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 64px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--gold); }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,.85); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; font-size: .92rem; color: rgba(255,255,255,.8); }
.hero-trust span { display: inline-flex; gap: 8px; align-items: center; }
.hero-card {
  background: #fff; color: var(--ink); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.hero-card img { border-radius: 12px; margin-bottom: 16px; }
.hero-card .price-row { display: flex; align-items: baseline; gap: 12px; }
.price-now { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--green-700); }
.price-old { color: var(--muted); text-decoration: line-through; }
.price-off { background: var(--red-600); color: #fff; font-weight: 700; padding: 2px 10px; border-radius: 99px; font-size: .85rem; }

.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); margin-bottom: 16px;
}
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

.roles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.roles span { background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 99px; font-weight: 500; font-size: .95rem; }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.level-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.level-card header { padding: 22px 24px; color: #fff; background: var(--green-600); }
.level-card:nth-child(2) header { background: var(--green-700); }
.level-card:nth-child(3) header { background: var(--green-900); }
.level-card header h3 { color: #fff; margin: 0; }
.level-card ol { margin: 0; padding: 20px 24px 20px 44px; display: grid; gap: 6px; font-size: .95rem; color: var(--ink-2); flex: 1; }
.level-card footer { padding: 0 24px 24px; }

.pricing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); color: var(--ink); }
.pricing h3 { color: var(--ink); display: flex; gap: 10px; align-items: center; }
.pricing-main { padding: 44px; }
.pricing-side { background: var(--green-50); padding: 44px; border-left: 1px solid var(--line); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.countdown { display: flex; gap: 10px; margin: 18px 0 24px; }
.countdown div { background: var(--green-900); color: #fff; border-radius: 10px; padding: 10px 0; width: 70px; text-align: center; }
.countdown b { display: block; font-family: var(--font-head); font-size: 1.6rem; line-height: 1; }
.countdown small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }

.testimonial { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.testimonial .stars { color: var(--gold); letter-spacing: 2px; }
.testimonial p { margin: 0; color: var(--ink-2); flex: 1; }
.testimonial footer { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green-600); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); flex: none; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-family: var(--font-head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--green-600); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.cta-band { background: linear-gradient(120deg, var(--green-700), var(--green-500)); color: #fff; border-radius: 22px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }

/* 6. Tarjetas de curso y ficha ------------------------------------------------------ */
.course-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.course-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.course-card .cover { aspect-ratio: 16/9; background: var(--green-100); overflow: hidden; }
.course-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.course-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.course-card h3 { margin: 0; font-size: 1.15rem; }
.course-card h3 a { color: var(--ink); }
.course-card .meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .86rem; color: var(--muted); }
.course-card .meta span { display: inline-flex; gap: 5px; align-items: center; }
.course-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.course-card .price { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--green-700); }
.course-card .price del { font-size: .85rem; color: var(--muted); font-weight: 400; margin-right: 6px; }

.course-hero { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; padding: 56px 0 120px; }
.course-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.course-hero .summary { color: rgba(255,255,255,.85); font-size: 1.08rem; max-width: 640px; }
.breadcrumbs { font-size: .85rem; margin-bottom: 18px; color: rgba(255,255,255,.7); }
.breadcrumbs a { color: rgba(255,255,255,.85); }
.course-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; margin-top: -84px; position: relative; }
.course-main { padding-top: 110px; }
.course-aside { position: relative; }
.buy-box { position: sticky; top: 92px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.buy-box .cover img { width: 100%; }
.buy-box .inner { padding: 24px; }
.buy-box .price-now { font-size: 2.2rem; }
.facts { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.facts li:last-child { border-bottom: 0; }
.facts li span { color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.facts li b { font-weight: 600; text-align: right; }
.fact-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 36px; }
.fact-chip { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.fact-chip b { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--green-700); }
.fact-chip small { color: var(--muted); }
.prose { color: var(--ink-2); font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul { display: grid; gap: 6px; }

.curriculum .module { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.curriculum summary { cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; gap: 14px; align-items: center; font-weight: 600; list-style: none; font-family: var(--font-head); font-size: .98rem; }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary .count { color: var(--muted); font-weight: 400; font-size: .85rem; white-space: nowrap; font-family: var(--font-body); }
.curriculum details[open] summary { border-bottom: 1px solid var(--line); background: var(--green-50); }
.curriculum ul { list-style: none; margin: 0; padding: 6px 0; }
.curriculum li { display: flex; gap: 12px; align-items: center; padding: 10px 20px; font-size: .95rem; color: var(--ink-2); }
.curriculum li .dur { margin-left: auto; color: var(--muted); font-size: .85rem; }
.curriculum li a { color: inherit; display: flex; gap: 12px; align-items: center; width: 100%; }
.curriculum li a:hover { color: var(--green-700); }

/* 7. Checkout -------------------------------------------------------------------------- */
.checkout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; padding: 40px 0 80px; align-items: start; }
.panel-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin-bottom: 20px; }
.panel-box h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--green-600); color: #fff; display: inline-grid; place-items: center; font-size: .9rem; flex: none; }
.order-summary { position: sticky; top: 92px; }
.order-line { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink-2); }
.order-total { display: flex; justify-content: space-between; padding: 14px 0 0; margin-top: 8px; border-top: 2px solid var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.coupon-row { display: flex; gap: 10px; }
.coupon-row input { text-transform: uppercase; }
.pay-options { display: grid; gap: 12px; }
.pay-option { border: 2px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; display: flex; gap: 14px; align-items: center; transition: border-color .15s, background .15s; }
.pay-option:hover { border-color: var(--green-400); }
.pay-option.selected { border-color: var(--green-600); background: var(--green-50); }
.pay-option input { accent-color: var(--green-600); width: 18px; height: 18px; }
.pay-option small { display: block; color: var(--muted); }
.secure-note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .85rem; margin-top: 14px; }
.is-hidden { display: none !important; }
.result-box { max-width: 620px; margin: 60px auto; text-align: center; }
.result-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; }
.result-icon.ok { background: var(--green-100); color: var(--green-700); }
.result-icon.wait { background: #fff4d6; color: #8a6400; }
.result-icon.bad { background: #fdeced; color: var(--red-700); }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(0,0,0,.12); border-top-color: var(--green-600); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Autenticación */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 48px 20px; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 460px; background: #fff; border-radius: 18px; padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-card h1 { font-size: 1.7rem; }
.auth-foot { text-align: center; margin-top: 18px; font-size: .95rem; color: var(--muted); }
.device-list { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 10px; }
.device-list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); font-size: .92rem; }

/* 8. Área del alumno y reproductor ------------------------------------------------------- */
.account-head { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; padding: 40px 0 36px; }
.account-head h1 { color: #fff; font-size: 1.9rem; margin-bottom: .2em; }
.account-head p { color: rgba(255,255,255,.8); margin: 0; }
.account-tabs { display: flex; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.account-tabs a { color: rgba(255,255,255,.85); padding: 8px 16px; border-radius: 99px; font-weight: 500; font-size: .93rem; }
.account-tabs a.active, .account-tabs a:hover { background: rgba(255,255,255,.14); color: #fff; }
.my-course { display: grid; grid-template-columns: 240px 1fr auto; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.my-course img { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.my-course h3 { margin-bottom: 6px; }
.my-course.expired { opacity: .7; }
.progress { height: 10px; border-radius: 99px; background: #e6ece8; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-500), var(--green-400)); border-radius: 99px; transition: width .4s; }
.progress-label { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.empty { text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.learn { display: grid; grid-template-columns: 1fr 360px; min-height: calc(100vh - 72px); }
.learn-main { background: #0d1410; color: #fff; display: flex; flex-direction: column; }
.learn-main .lesson-top { padding: 14px 24px; display: flex; gap: 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .92rem; }
.learn-main .lesson-top a { color: rgba(255,255,255,.8); }
.player-wrap { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; aspect-ratio: 16/9; background: #000; user-select: none; -webkit-user-select: none; }
.player-wrap .plyr { height: 100%; --plyr-color-main: var(--green-500); }
.player-shield { position: absolute; inset: 0; z-index: 3; } /* capa que impide clic derecho/arrastrar sobre el iframe */
.player-wrap .watermark {
  position: absolute; z-index: 4; pointer-events: none; color: rgba(255,255,255,.28); font-size: 13px;
  font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.4); transition: top 1.5s, left 1.5s; white-space: nowrap;
}
.player-overlay { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(0,0,0,.85); text-align: center; padding: 24px; }
.player-overlay h3 { color: #fff; }
.lesson-info { padding: 26px 32px 40px; max-width: 1280px; width: 100%; margin: 0 auto; }
.lesson-info h1 { color: #fff; font-size: 1.5rem; }
.lesson-info .prose { color: rgba(255,255,255,.8); }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 24px; flex-wrap: wrap; }
.lesson-nav .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.lesson-nav .btn-ghost:hover { background: rgba(255,255,255,.08); }
.materials { display: grid; gap: 10px; margin-top: 12px; }
.materials a { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 10px; background: rgba(255,255,255,.06); color: #fff; }
.materials a:hover { background: rgba(255,255,255,.12); }
.lesson-status { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: rgba(255,255,255,.8); }
.learn-side { background: #fff; border-left: 1px solid var(--line); overflow-y: auto; max-height: calc(100vh - 72px); position: sticky; top: 72px; }
.learn-side .side-head { padding: 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.learn-side .side-head h2 { font-size: 1.05rem; margin-bottom: 10px; }
.learn-side .curriculum .module { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); margin: 0; }
.learn-side .curriculum li { padding: 10px 20px; }
.learn-side .curriculum li.current { background: var(--green-100); }
.learn-side .curriculum li.current a { color: var(--green-800); font-weight: 600; }
.tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c7d0cb; flex: none; display: grid; place-items: center; }
.tick.done { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.tick.partial { border-color: var(--green-400); border-style: dashed; }
.cert-cta { margin: 16px 20px 20px; padding: 18px; border-radius: 12px; background: var(--green-50); border: 1px solid var(--green-100); font-size: .92rem; }
.cert-cta.locked { background: var(--bg-soft); border-color: var(--line); color: var(--muted); }

/* 9. Certificados ------------------------------------------------------------------------ */
.cert-preview { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.cert-preview iframe { width: 100%; aspect-ratio: 1.414; border: 0; display: block; }
.verify-card { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.verify-status { padding: 22px 28px; display: flex; gap: 14px; align-items: center; color: #fff; }
.verify-status.valid { background: var(--green-600); }
.verify-status.invalid { background: var(--red-600); }
.verify-status h2 { color: #fff; margin: 0; font-size: 1.3rem; }
.verify-body { padding: 28px; }
.verify-body dl { display: grid; grid-template-columns: 180px 1fr; gap: 12px 20px; margin: 0 0 24px; }
.verify-body dt { color: var(--muted); }
.verify-body dd { margin: 0; font-weight: 600; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-linkedin { background: #0a66c2; color: #fff; }
.btn-linkedin:hover { background: #084d93; color: #fff; }

/* Página de error */
.error-page { text-align: center; padding: 100px 20px; }
.error-page .code { font-family: var(--font-head); font-size: 6rem; font-weight: 800; color: var(--green-100); line-height: 1; }

/* 10. Responsivo -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero .container, .course-layout, .checkout, .pricing { grid-template-columns: 1fr; }
  .hero-card { transform: none; max-width: 480px; }
  .course-layout { margin-top: -60px; }
  .course-main { padding-top: 0; order: 2; }
  .course-aside { order: 1; }
  .buy-box { position: static; }
  .levels, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .learn { grid-template-columns: 1fr; }
  .learn-side { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--line); }
  .pricing-side { border-left: 0; border-top: 1px solid var(--line); }
  .order-summary { position: static; }
}
@media (max-width: 780px) {
  .section { padding: 60px 0; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .hide-desktop { display: block; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-actions .btn-outline { display: none; }
  .site-header .container { gap: 12px; }
  .brand img { height: 38px; }
  .levels, .grid-2, .grid-3, .grid-4, .form-row, .fact-chips { grid-template-columns: 1fr 1fr; }
  .levels, .grid-2, .grid-3, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .my-course { grid-template-columns: 1fr; }
  .pricing-main, .pricing-side, .cta-band { padding: 28px; }
  .verify-body dl { grid-template-columns: 1fr; gap: 2px; }
  .verify-body dd { margin-bottom: 10px; }
  .lesson-info { padding: 20px; }
  .auth-card { padding: 26px 22px; }
}

/* Tablas (compras del alumno) */
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 2px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Reproductor: el iframe de YouTube no recibe clics (los atiende Plyr) */
.player-wrap iframe { pointer-events: none; }
.player-wrap .plyr__video-embed { height: 100%; }

/* Encabezado que se oculta al bajar y reaparece al subir (más espacio para el contenido) */
.site-header { transition: transform .25s ease; }
body.header-hidden .site-header { transform: translateY(-100%); }

/* Caja de compra compacta: cabe completa en pantalla (sin scroll interno). Datos en 2 columnas. */
.buy-box { transition: top .25s ease; }
body.header-hidden .buy-box { top: 16px; }
.buy-box .cover img { width: 100%; height: auto; } /* portada completa, sin recortar */
.buy-box .inner { padding: 18px 20px; }
.buy-box .price-now { font-size: 2rem; }
.buy-box .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 8px; }
.buy-box .facts li { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); font-size: .8rem; }
.buy-box .facts li span { gap: 6px; font-size: .78rem; }
.buy-box .facts li b { text-align: left; font-size: .9rem; line-height: 1.25; }
.buy-box .facts li.wide { grid-column: 1 / -1; }
.buy-box .secure-note { margin-top: 6px; font-size: .8rem; }

/* Barra fija de compra en celular/tablet */
.mobile-buy-bar { display: none; }
@media (max-width: 1024px) {
  .mobile-buy-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; gap: 14px; align-items: center;
    justify-content: space-between; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(10,58,29,.1);
  }
  .mobile-buy-bar .price-now { font-size: 1.5rem; line-height: 1.1; }
  .mobile-buy-bar small { display: block; color: var(--muted); font-size: .78rem; }
  .mobile-buy-bar .btn { flex: 1; max-width: 260px; }
  body.has-buybar { padding-bottom: 84px; }
  body.has-buybar .whatsapp-float { bottom: 96px; }
}
body.header-hidden .learn-side { top: 0; max-height: 100vh; }
.fact-chip b svg { margin: 0 auto; }
/* Pie: ícono y texto de contacto en la misma línea */
.contact-list a { display: inline-flex; align-items: center; gap: 10px; }
.contact-list svg { flex: none; }
/* Enlaces marcados como botón dentro de descripciones (data-btn) */
.prose a[data-btn] {
  display: inline-flex; align-items: center; gap: .5em; padding: 13px 26px; border-radius: 12px; margin: 6px 0;
  background: var(--red-600); color: #fff; font-family: var(--font-head); font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 20px rgba(212,32,43,.25);
}
.prose a[data-btn]:hover { background: var(--red-700); color: #fff; }

/* Promociones: cupo restante y aviso de fin */
.stock-meter { margin: 6px 0 18px; }
.stock-label { font-size: .9rem; margin-bottom: 6px; color: var(--red-700); font-weight: 500; }
.promo-notice { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 16px; padding: 12px 14px; border-radius: 10px; background: #fff4d6; color: #6b4e00; font-size: .92rem; }

/* Aviso de cookies */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 16px 18px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookie-bar p { margin: 0; font-size: .9rem; color: var(--ink-2); flex: 1 1 320px; }
.cookie-actions { display: flex; gap: 8px; }
body.has-buybar .cookie-bar { bottom: 96px; }
/* Caja de compra: contador y datos más compactos para que todo quepa en pantallas de laptop */
.buy-box .price-block > p { font-size: .8rem !important; margin-top: 6px !important; }
.buy-box .countdown { gap: 6px; margin: 8px 0 4px; }
.buy-box .countdown div { width: auto; flex: 1; padding: 6px 0; border-radius: 8px; }
.buy-box .countdown b { font-size: 1.15rem; }
.buy-box .countdown small { font-size: .6rem; }
.buy-box .facts li { padding: 6px 9px; }
.cookie-bar { right: auto; max-width: 560px; margin: 0; }
@media (max-width: 600px) { .cookie-bar { right: 16px; } }

/* Pantallas bajas: si la tarjeta (con portada completa) no cabe, deja de ser fija y se desplaza con la página */
@media (max-height: 860px) and (min-width: 1025px) { .buy-box { position: static; } }

/* =============================================================================
   Aula (rediseño): fondo claro, video que se ajusta a la pantalla, sin marca de YouTube
   ============================================================================= */
.learn-main { background: var(--bg-soft); color: var(--ink); padding: 18px 28px 40px; display: block; }
.lesson-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px;
}
.lesson-bar .lesson-course { color: var(--muted); font-size: .92rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-bar .lesson-status { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ink-2); background: var(--green-50); border: 1px solid var(--green-100); padding: 6px 12px; border-radius: 99px; }
.mini-progress { width: 70px; height: 7px; border-radius: 99px; background: #dfe7e2; overflow: hidden; display: inline-block; }
.mini-progress > span { display: block; height: 100%; background: var(--green-500); border-radius: 99px; transition: width .4s; }
.lesson-title { max-width: 1100px; margin: 0 auto 12px; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink); }

/* El video nunca es más alto que la pantalla: ancho máximo según el alto disponible
   (alto ventana − encabezado − barra − título − botones) → siempre se ven los controles. */
.player-wrap {
  width: 100%; max-width: min(1100px, calc((100vh - 72px - 200px) * 16 / 9)); min-width: 280px;
  margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: #0d1410; box-shadow: var(--shadow-lg);
}
body.header-hidden .player-wrap { max-width: min(1100px, calc((100vh - 200px) * 16 / 9)); }
.player-wrap .plyr { height: 100%; border-radius: 14px; }

/* Ocultar la marca de YouTube: el iframe se hace el doble de alto y se centra; así el
   título, el canal, el logo y "Más videos" quedan fuera del área visible. */
.player-wrap .plyr__video-embed, .player-wrap .plyr__video-wrapper { height: 100%; padding-bottom: 0 !important; overflow: hidden; }
.player-wrap .plyr__video-embed iframe { top: -50% !important; height: 200% !important; pointer-events: none; }
.player-wrap .plyr__poster { background-size: cover; }

.lesson-nav { max-width: 1100px; margin: 16px auto 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lesson-extra { max-width: 1100px; margin: 18px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.lesson-extra h3 { display: flex; gap: 8px; align-items: center; font-size: 1.05rem; margin-top: 4px; }
.lesson-extra .prose { color: var(--ink-2); }
.lesson-extra .materials a { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }
.lesson-extra .materials a:hover { background: var(--green-50); border-color: var(--green-100); }
.lesson-extra .materials small { color: var(--muted); }
.lesson-extra .materials .dl { margin-left: auto; color: var(--green-700); }

@media (max-width: 1024px) {
  .learn-main { padding: 12px 12px 28px; }
  .player-wrap, body.header-hidden .player-wrap { max-width: 100%; border-radius: 10px; }
  .lesson-bar .lesson-course { display: none; }
}
/* Barra, título y botones con el mismo ancho que el video (todo alineado) */
.learn-main { --player-w: min(1100px, calc((100vh - 72px - 200px) * 16 / 9)); }
body.header-hidden .learn-main { --player-w: min(1100px, calc((100vh - 200px) * 16 / 9)); }
.lesson-bar, .lesson-title, .lesson-nav, .lesson-extra { max-width: max(var(--player-w), 560px); }
.player-wrap, body.header-hidden .player-wrap { max-width: var(--player-w); }
@media (max-width: 1024px) {
  .learn-main, body.header-hidden .learn-main { --player-w: 100%; }
  .lesson-bar, .lesson-title, .lesson-nav, .lesson-extra { max-width: 100%; }
}

/* Ficha de curso: portada que se desplaza + tarjeta fija desde el precio (solo PC) */
.course-aside .buy-cover { position: relative; z-index: 2; border-radius: 18px 18px 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; margin-bottom: -18px; box-shadow: var(--shadow-lg); }
.course-aside .buy-cover img { width: 100%; height: auto; display: block; }
.course-aside .buy-box { position: sticky; top: 90px; border-radius: 18px; padding-top: 18px; }
body.header-hidden .course-aside .buy-box { top: 16px; }
@media (min-width: 1025px) { .course-aside .buy-box { position: sticky !important; } }
@media (max-width: 1024px) {
  .course-aside .buy-box { position: static; }
}
.recent-buyers { margin: 0 0 12px; font-size: .88rem; color: #8a4b00; background: #fff4e0; border-radius: 8px; padding: 7px 10px; display: flex; gap: 6px; align-items: center; }
.hero-card .countdown { gap: 6px; }
.hero-card .countdown div { width: auto; flex: 1; padding: 8px 0; }
.hero-card .countdown b { font-size: 1.35rem; }

/* Landings por profesión */
.feature.pain .icon { background: #fde8e9; color: var(--red-700); }
.scenarios { display: grid; gap: 16px; }
.scenario { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.scenario-num { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-600); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.scenario h3 { margin-bottom: .35em; }
.scenario p { margin: 0; color: var(--ink-2); display: flex; gap: 6px; }
.scenario p svg { flex: none; margin-top: 4px; color: var(--green-600); }
.roles .role-link { background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 99px; font-weight: 500; font-size: .95rem; color: var(--ink-2); transition: all .15s; }
.roles .role-link:hover { border-color: var(--green-500); color: var(--green-700); background: var(--green-50); }
/* Campo trampa anti-bots: invisible para personas */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
