:root{
  --bg:#07111f;
  --text:#0e1726;
  --muted:#64748b;
  --line:#e6edf5;
  --green:#009b63;
  --green2:#05b779;
  --dark:#020617;
  --soft:#f6f8fb;
  --shadow:0 18px 44px rgba(2,6,23,.09);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Arial,sans-serif;background:#fff;color:var(--text)}
a{text-decoration:none;color:inherit}
button,input,textarea{font-family:inherit}
.hidden{display:none!important}

/* HEADER */
.topbar{
  height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:0 6%;
  position:sticky;
  top:0;
  z-index:80;
  background:#121827;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.brand{
  width:156px;
  height:38px;
  display:flex;
  align-items:center;
  overflow:hidden;
  flex-shrink:0;
}
.brand img{height:30px;width:auto;max-width:145px;display:block;object-fit:contain}
.nav{display:flex;gap:28px;justify-content:center;align-items:center;flex:1;color:#d8dee9;font-weight:800}
.nav a:hover{color:white}
.top-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}

.btn{
  border:0;
  border-radius:13px;
  padding:12px 18px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
  transition:.18s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:linear-gradient(135deg,var(--green),var(--green2));color:#fff;box-shadow:0 12px 26px rgba(0,155,99,.22)}
.btn.secondary{background:#eefdf6;color:var(--green);border:1px solid #bcebd8}
.btn.ghost{background:rgba(255,255,255,.1);color:#fff}
.btn.big{padding:15px 24px;font-size:16px}
.btn.full{width:100%}

/* HERO */
.hero{
  min-height:500px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:70px 6% 66px;
  color:#fff;
  background:
    radial-gradient(circle at 50% 10%,rgba(5,183,121,.22),transparent 36%),
    linear-gradient(135deg,#07111f,#0d1728 55%,#062e25);
  text-align:center;
}
.hero-inner{width:min(980px,100%);margin:0 auto}
.badge,.eyebrow{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:8px 14px;
  background:#eafaf4;
  color:var(--green);
  font-weight:900;
  font-size:13px;
}
.hero .badge{background:rgba(5,183,121,.13);border:1px solid rgba(5,183,121,.28);color:#8ff0ca}
.hero h1{
  margin:20px auto;
  max-width:900px;
  font-size:clamp(42px,5vw,70px);
  line-height:1;
  letter-spacing:-2.2px;
  font-weight:950;
}
.hero p{max-width:700px;margin:0 auto;color:#cbd5e1;font-size:19px;line-height:1.6}
.hero-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:30px}

/* SECTIONS */
.section{padding:62px 6%}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:22px;
  margin:0 auto 26px;
  max-width:1320px;
}
.section h2,.section-title-center h2{
  font-size:clamp(34px,3vw,50px);
  line-height:1.05;
  margin:12px 0;
  letter-spacing:-1.2px;
}
.section p,.section-title-center p{color:var(--muted);font-size:17px;line-height:1.55}
.filters{display:flex;gap:8px;flex-wrap:wrap}
.chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:10px 15px;font-weight:900;cursor:pointer}
.chip.active{background:var(--dark);color:#fff}

/* CURSOS */
.courses-section{background:#f6f8fb}
.courses-grid{
  max-width:1320px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.course-card{
  background:#fff;
  border:1px solid #e8eef5;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 14px 34px rgba(2,6,23,.075);
  display:flex;
  flex-direction:column;
  min-height:360px;
}
.course-thumb{
  height:160px;
  background:linear-gradient(135deg,#0f172a,#064e3b);
  position:relative;
  display:grid;
  place-items:center;
  color:#fff;
}
.thumb-play{
  width:56px;
  height:56px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.18);
  font-size:22px;
}
.course-lock{
  position:absolute;
  top:12px;
  right:12px;
  background:rgba(2,6,23,.78);
  color:#fff;
  border-radius:999px;
  padding:7px 11px;
  font-weight:900;
  font-size:11px;
  letter-spacing:.4px;
}
.course-body{padding:18px;display:flex;flex-direction:column;gap:11px;flex:1}
.course-body h3{font-size:20px;margin:0;letter-spacing:-.3px}
.course-body p{color:var(--muted);line-height:1.5;margin:0;font-size:15px}
.course-meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:12px;font-weight:900}
.course-body .btn{margin-top:auto}
.skeleton{height:300px;border-radius:22px;background:linear-gradient(90deg,#edf2f7,#f8fafc,#edf2f7);background-size:200% 100%;animation:skeleton 1.2s infinite}
@keyframes skeleton{to{background-position:-200% 0}}

/* TRIAL */
.trial-section{background:#fff;padding-top:58px;padding-bottom:58px}
.trial-card{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:430px 1fr;
  gap:34px;
  align-items:center;
  border:1px solid #e7eef5;
  border-radius:20px;
  padding:18px;
  box-shadow:0 14px 34px rgba(2,6,23,.07);
  background:#fff;
}
.trial-media{
  height:285px;
  border-radius:14px;
  overflow:hidden;
  background:#062e25;
  border:1px solid #dce8ee;
}
.trial-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.trial-copy{padding:12px 12px 12px 0}
.trial-copy h2{
  font-size:clamp(32px,3.1vw,48px);
  line-height:1.05;
  letter-spacing:-1.2px;
  margin:12px 0;
  max-width:700px;
}
.trial-copy p{color:var(--muted);font-size:17px;line-height:1.6;max-width:680px}
.icon-list{list-style:none;padding:0;margin:20px 0}
.icon-list li{
  display:flex;
  align-items:center;
  gap:11px;
  padding:8px 0;
  font-weight:850;
  color:#203049;
}
.icon-list svg{
  width:20px;height:20px;flex:0 0 20px;fill:none;stroke:var(--green2);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;
}

/* PRICING */
.pricing-section{background:#f6f8fb;padding-top:64px}
.section-title-center{text-align:center;max-width:760px;margin:0 auto 30px}
.pricing-grid{
  max-width:1120px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  align-items:start;
}
.price-card{
  position:relative;
  background:#fff;
  border:1px solid #e5edf5;
  border-radius:20px;
  padding:22px;
  box-shadow:0 13px 32px rgba(2,6,23,.075);
  display:flex;
  flex-direction:column;
  min-height:430px;
  overflow:hidden;
}
.price-card.popular{
  border-color:rgba(5,183,121,.5);
  box-shadow:0 16px 38px rgba(0,155,99,.13);
}
.price-card.reseller{
  grid-column:2/3;
  width:100%;
  max-width:360px;
  justify-self:center;
  margin-top:10px;
  border-color:rgba(5,183,121,.5);
}
.ribbon{
  position:absolute;
  top:15px;
  right:-46px;
  transform:rotate(45deg);
  background:#45de91;
  color:#fff;
  font-weight:950;
  font-size:11px;
  padding:6px 48px;
}
.price-card h3{font-size:22px;margin:0 0 12px}
.price{
  font-size:54px;
  line-height:1;
  color:var(--green);
  font-weight:950;
  letter-spacing:-1.8px;
}
.price-note{color:var(--muted);font-weight:850;border-bottom:1px solid var(--line);padding-bottom:16px;margin:8px 0 12px}
.price-card ul{list-style:none;padding:0;margin:0 0 20px}
.price-card li{
  display:flex;
  align-items:center;
  gap:11px;
  padding:10px 0;
  border-bottom:1px solid #edf2f7;
  font-weight:850;
  color:#203049;
}
.price-card li:last-child{border-bottom:0}
.price-card svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:var(--green2);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.price-card .btn{margin-top:auto}

/* CONTACT */
.contact-block{
  max-width:1120px;
  margin:62px auto;
  padding:38px;
  border-radius:22px;
  background:linear-gradient(135deg,#052e24,#07111f);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.contact-block h2{font-size:clamp(30px,3vw,44px);line-height:1.06;margin:12px 0;max-width:700px}
.contact-block p{color:#cbd5e1;font-size:17px}
.contact-block .eyebrow{background:rgba(5,183,121,.14);border:1px solid rgba(5,183,121,.35);color:#8ff0ca}

/* PLAYER BASIC */
.player-view{min-height:100vh;display:grid;grid-template-columns:360px 1fr;background:#f8fafc}
.player-view.hidden{display:none!important}
body:not(.player-mode) #playerView{display:none!important}
body.player-mode>.topbar{display:none!important}
.player-header{grid-column:1/-1;height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:#0b1220;color:white;position:sticky;top:0;z-index:70}
.player-logo img{height:32px}.player-hamburger{display:none!important}
.course-sidebar{background:white;border-right:1px solid var(--line);height:calc(100vh - 76px);position:sticky;top:76px;overflow:auto}
.sidebar-head{padding:18px;border-bottom:1px solid var(--line)}
.back-home{background:transparent;border:0;color:var(--green);font-weight:900;cursor:pointer;margin-bottom:14px}
.progress-wrap>div{display:flex;justify-content:space-between;color:var(--muted);font-weight:800;margin-bottom:8px}.progress-bar{height:8px;border-radius:999px;background:#e5e7eb;overflow:hidden}.progress-bar span{display:block;height:100%;width:0;background:var(--green)}
.module-title{display:flex;justify-content:space-between;gap:12px;padding:15px 18px;font-weight:900;cursor:pointer;background:#f5f7fb;border-bottom:1px solid #edf2f7;font-size:15px}
.lesson-item{display:grid;grid-template-columns:28px 1fr 18px;gap:10px;padding:14px 18px;align-items:start;cursor:pointer;border-left:4px solid transparent}
.lesson-item:hover,.lesson-item.active{background:#e9fbf3;border-left-color:#05b779}
.lesson-icon{width:22px;height:22px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:#e9fbf3;color:#059669;font-size:13px;font-weight:900}
.lesson-main{padding:24px 34px 38px;background:#f7f9fc}
.lesson-top h1{font-size:clamp(30px,3.2vw,46px);line-height:1.08;letter-spacing:-1px;margin:10px 0 14px}
.video-shell{position:relative;background:#020617;border-radius:20px;overflow:hidden;box-shadow:0 18px 50px rgba(2,6,23,.16);aspect-ratio:16/8.6;max-width:1180px;margin:0 auto}
.video-shell iframe{width:100%;height:100%;border:0}.video-fallback{position:absolute;inset:0;display:grid;place-items:center;color:white}
.lesson-actions{display:grid;grid-template-columns:160px 180px;justify-content:space-between;gap:18px;max-width:1180px;margin:18px auto 0}.download-section,.comments-section{max-width:1180px;margin:18px auto 0}
.download-card{display:flex;align-items:center;gap:14px;background:white;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 12px 36px rgba(2,6,23,.08)}
.comments-section{background:white;border:1px solid var(--line);border-radius:22px;padding:22px}.comment-user{font-weight:900;color:var(--green);margin-bottom:10px}#commentInput{width:100%;min-height:92px;padding:14px;border:1px solid var(--line);border-radius:14px;resize:vertical;margin-bottom:12px}
.sidebar-overlay.hidden{display:none!important}.sidebar-overlay{position:fixed;inset:0;background:rgba(2,6,23,.62);backdrop-filter:blur(5px);z-index:9400}.sidebar-close{display:none}
.modal{position:fixed;inset:0;background:rgba(2,6,23,.72);display:grid;place-items:center;z-index:100;padding:20px}.modal-card{width:min(440px,100%);background:white;border-radius:24px;padding:26px;position:relative}.modal-close{position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:50%;border:0;background:#f1f5f9;font-size:24px;cursor:pointer}.modal-card label{display:block;margin:14px 0 6px;font-weight:900}.modal-card input{width:100%;padding:14px;border-radius:13px;border:1px solid var(--line);font-size:16px}.passbox{display:flex;gap:8px}.passbox input{flex:1}.eye{border:1px solid var(--line);background:#f8fafc;border-radius:13px;width:52px;cursor:pointer}.link-btn{border:0;background:transparent;color:var(--green);font-weight:900;margin-top:14px;cursor:pointer;width:100%}.toast{position:fixed;right:18px;bottom:18px;background:#0b1220;color:white;border:1px solid rgba(255,255,255,.15);border-radius:16px;padding:14px 18px;display:none;z-index:120}

@media(max-width:1100px){
  .trial-card{grid-template-columns:1fr;max-width:760px}.trial-media{height:260px}
  .courses-grid{grid-template-columns:repeat(2,1fr)}
  .pricing-grid{grid-template-columns:repeat(2,1fr);max-width:760px}
  .price-card.reseller{grid-column:1/-1}
}
@media(max-width:780px){
  .topbar{height:auto;padding:14px 18px}.brand{width:150px}.brand img{height:30px;max-width:135px}.nav{display:none}.top-actions{margin-left:auto}.top-actions .btn.primary{display:none}
  .hero{min-height:auto;padding:58px 18px 54px}.hero h1{font-size:clamp(38px,11vw,54px);letter-spacing:-1.6px}.section{padding:48px 18px}.section-head{display:block}
  .courses-grid,.pricing-grid{grid-template-columns:1fr;max-width:420px}
  .trial-card{padding:14px;border-radius:18px}.trial-media{height:220px;border-radius:12px}.trial-copy{padding:4px}.trial-copy h2{font-size:32px}
  .price-card.reseller{grid-column:auto;max-width:none}.contact-block{margin:52px 18px;padding:28px 22px;display:block}.contact-block .btn{width:100%;margin-top:18px}
  body.player-mode #playerView{display:block!important}.player-header{height:68px;padding:0 16px}.player-logo{display:none}.player-hamburger{display:inline-flex!important;align-items:center;justify-content:center;min-width:54px;height:46px;font-size:26px;background:#111827;color:white;border-radius:14px}.course-sidebar{position:fixed;top:68px;left:0;width:90vw;max-width:390px;height:calc(100vh - 68px);z-index:9500;transform:translateX(-112%);transition:transform .32s cubic-bezier(.22,1,.36,1);box-shadow:24px 0 80px rgba(2,6,23,.32)}.course-sidebar.open{transform:translateX(0)}.course-sidebar.open .sidebar-close{display:flex}.sidebar-close{position:absolute;top:14px;right:14px;width:42px;height:42px;border:0;border-radius:14px;background:#111827;color:white;align-items:center;justify-content:center;font-size:22px;font-weight:900;cursor:pointer}.sidebar-head{padding-top:60px}.lesson-main{padding:18px 16px 30px}.lesson-top h1{font-size:32px}.video-shell{aspect-ratio:16/9}.lesson-actions{grid-template-columns:1fr 1fr;width:100%}
}


/* =====================================================
   V211 - SOPORTE IMÁGENES PNG / JPG / SVG / ICO
===================================================== */
img{
  max-width:100%;
}

.brand img,
.player-logo img{
  display:block;
  width:auto;
  object-fit:contain;
}

.trial-media img,
.course-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.brand{
  background:transparent !important;
}

/* =====================================================
   V212 - RUTAS PRIVADAS /cliente y /reseller
   En estas URLs no se muestra "Ver cursos".
   Solo queda visible el botón hamburguesa del contenido.
===================================================== */
body.private-course-mode > .topbar,
body.private-course-mode main,
body.private-course-mode #playerBackCoursesBtn,
body.private-course-mode #backHomeBtn,
body.private-course-mode .player-logo{
  display:none!important;
}

body.private-course-mode #playerView{
  display:grid!important;
}

body.private-course-mode.player-mode .player-header{
  justify-content:flex-end;
}

body.private-course-mode.player-mode .player-hamburger{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-width:54px;
  height:46px;
  font-size:26px;
  background:#111827;
  color:white;
  border-radius:14px;
}

body.private-course-mode .course-sidebar{
  z-index:9500;
}

@media(min-width:781px){
  body.private-course-mode .player-view{
    display:block!important;
  }
  body.private-course-mode .player-header{
    height:76px;
  }
  body.private-course-mode .course-sidebar{
    position:fixed;
    top:76px;
    left:0;
    width:390px;
    height:calc(100vh - 76px);
    transform:translateX(-112%);
    transition:transform .32s cubic-bezier(.22,1,.36,1);
    box-shadow:24px 0 80px rgba(2,6,23,.32);
  }
  body.private-course-mode .course-sidebar.open{
    transform:translateX(0);
  }
  body.private-course-mode .course-sidebar.open .sidebar-close{
    display:flex;
  }
  body.private-course-mode .lesson-main{
    min-height:calc(100vh - 76px);
    padding:24px 34px 38px;
  }
}

/* =========================================================
   CLIENTE.HTML / RESELLER.HTML
   PC: sidebar izquierda + video derecha (layout original)
   Móvil/tablet: responsive original con hamburguesa
   Solo se oculta landing/index y botón "Ver cursos" del player.
========================================================= */
body.private-page > .topbar,
body.private-course-mode > .topbar,
body.private-page main,
body.private-course-mode main,
body.private-page #playerBackCoursesBtn,
body.private-course-mode #playerBackCoursesBtn{
  display:none !important;
}

body.private-course-mode.player-mode #playerView{
  display:grid !important;
  grid-template-columns:360px 1fr !important;
}

body.private-course-mode .player-header{
  grid-column:1 / -1 !important;
}

body.private-course-mode .course-sidebar{
  position:sticky !important;
  top:76px !important;
  left:auto !important;
  width:auto !important;
  max-width:none !important;
  height:calc(100vh - 76px) !important;
  transform:none !important;
  box-shadow:none !important;
}

body.private-course-mode .lesson-main{
  width:100% !important;
  max-width:none !important;
}

body.private-course-mode #backHomeBtn{
  display:inline-block !important;
}

@media(max-width:780px){
  body.private-course-mode.player-mode #playerView{
    display:block !important;
  }
  body.private-course-mode .course-sidebar{
    position:fixed !important;
    top:68px !important;
    left:0 !important;
    width:90vw !important;
    max-width:390px !important;
    height:calc(100vh - 68px) !important;
    transform:translateX(-112%) !important;
    box-shadow:24px 0 80px rgba(2,6,23,.32) !important;
  }
  body.private-course-mode .course-sidebar.open{
    transform:translateX(0) !important;
  }
}

/* =========================================================
   FIX DEFINITIVO CLIENTE.HTML / RESELLER.HTML
   - Solo afecta páginas privadas
   - PC: sidebar visible izquierda + video derecha
   - Móvil/tablet: sidebar oculto con hamburguesa
   - No cambia colores
   - Oculta solo botón Ver cursos
========================================================= */
body.private-course-mode #playerBackCoursesBtn{
  display:none !important;
}

@media (min-width: 901px){
  body.private-course-mode.player-mode #playerView.player-view{
    display:grid !important;
    grid-template-columns:360px minmax(0, 1fr) !important;
    grid-template-rows:76px minmax(0, 1fr) !important;
    min-height:100vh !important;
    background:#f8fafc !important;
  }

  body.private-course-mode.player-mode #playerView > .player-header{
    grid-column:1 / -1 !important;
    grid-row:1 !important;
    height:76px !important;
    position:sticky !important;
    top:0 !important;
    z-index:70 !important;
  }

  body.private-course-mode.player-mode #playerView > aside.course-sidebar{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    grid-column:1 !important;
    grid-row:2 !important;
    position:sticky !important;
    top:76px !important;
    left:auto !important;
    width:360px !important;
    max-width:360px !important;
    min-width:360px !important;
    height:calc(100vh - 76px) !important;
    transform:none !important;
    box-shadow:none !important;
    overflow:auto !important;
    z-index:10 !important;
    background:white !important;
    border-right:1px solid var(--line) !important;
  }

  body.private-course-mode.player-mode #playerView > section.lesson-main{
    display:block !important;
    grid-column:2 !important;
    grid-row:2 !important;
    min-width:0 !important;
    width:100% !important;
    max-width:none !important;
    padding:24px 34px 38px !important;
    background:#f7f9fc !important;
  }

  body.private-course-mode.player-mode .sidebar-overlay{
    display:none !important;
  }

  body.private-course-mode.player-mode .sidebar-close{
    display:none !important;
  }

  body.private-course-mode.player-mode .video-shell,
  body.private-course-mode.player-mode .lesson-actions,
  body.private-course-mode.player-mode .download-section,
  body.private-course-mode.player-mode .comments-section{
    max-width:1180px !important;
  }
}

@media (max-width: 900px){
  body.private-course-mode.player-mode #playerView.player-view{
    display:block !important;
  }

  body.private-course-mode.player-mode #playerView > aside.course-sidebar{
    position:fixed !important;
    top:68px !important;
    left:0 !important;
    width:90vw !important;
    max-width:390px !important;
    min-width:0 !important;
    height:calc(100vh - 68px) !important;
    transform:translateX(-112%) !important;
    transition:transform .32s cubic-bezier(.22,1,.36,1) !important;
    box-shadow:24px 0 80px rgba(2,6,23,.32) !important;
    z-index:9500 !important;
  }

  body.private-course-mode.player-mode #playerView > aside.course-sidebar.open{
    transform:translateX(0) !important;
  }
}
