@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeue-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #0e0f13;
  --ink-2: #171a22;
  --paper: #f6f4ef;
  --white: #ffffff;
  --red: #c8271f;
  --red-dark: #a51e17;
  --blue: #0b4fc4;
  --text: #1c1e24;
  --muted: #5d6270;
  --line: rgba(255, 255, 255, .14);
  --radius: 14px;
  --display: "Bebas Neue", "Impact", "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1.02; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; margin-top: 36px; }
.small { font-size: 14px; color: rgba(255, 255, 255, .7); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--display); font-size: 21px; letter-spacing: .06em; text-decoration: none;
  line-height: 1; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 19, .92); backdrop-filter: blur(10px);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%) 1;
}
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--display); font-size: 27px; letter-spacing: .05em; }
.brand b { color: var(--red); font-weight: 400; }
.brand img { width: 46px; height: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(11, 79, 196, .35), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(200, 39, 31, .30), transparent 60%),
    var(--ink);
  color: #fff;
  padding: 70px 0 90px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { font-family: var(--display); letter-spacing: .14em; font-size: 20px; color: var(--red); margin-bottom: 10px; }
.hero h1 { font-size: clamp(54px, 8vw, 104px); margin-bottom: 22px; }
.hero h1 span { color: var(--red); }
.lead { font-size: 19px; color: rgba(255, 255, 255, .82); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; color: rgba(255, 255, 255, .78); font-size: 15px; }
.hero-points li::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--red); border-radius: 50%; margin-right: 8px; }
.hero-photo { position: relative; justify-self: center; width: min(100%, 460px); }
.hero-photo > img:first-child {
  border-radius: 22px; border: 3px solid var(--ink); aspect-ratio: 602 / 702; object-fit: cover; width: 100%;
  box-shadow: 14px 14px 0 var(--red), -14px -14px 0 var(--blue);
}
.hero-badge { position: absolute; right: -14px; bottom: -28px; width: 132px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }

/* ---------- Stats ---------- */
.stats { background: var(--ink-2); color: #fff; border-top: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats-grid div { padding: 26px 10px; border-left: 1px solid var(--line); }
.stats-grid div:first-child { border-left: 0; }
.stats strong { display: block; font-family: var(--display); font-size: 52px; line-height: 1; color: #fff; }
.stats span { font-size: 14px; color: rgba(255, 255, 255, .7); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: #fff; }
.section-ink { background: var(--ink-2); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2, .section > .wrap > h2 { font-size: clamp(38px, 5vw, 60px); }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }
.section-dark .section-head p:not(.eyebrow), .section-ink p { color: rgba(255, 255, 255, .78); }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--paper); border-radius: var(--radius); padding: 30px 28px; }
.feature svg { width: 40px; height: 40px; fill: var(--red); margin-bottom: 16px; }
.feature h3 { font-size: 30px; margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.learn { margin-top: 56px; }
.learn h3 { font-size: 34px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 2px solid var(--ink); border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: 15px; }
.chips li:nth-child(odd) { border-color: var(--red); }
.chips li:nth-child(even) { border-color: var(--blue); }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plans-small { grid-template-columns: repeat(4, 1fr); margin-top: 24px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
}
.plan.featured { background: #1c1215; border: 2px solid var(--red); transform: translateY(-8px); }
.tag {
  position: absolute; top: -14px; left: 24px; background: var(--red); color: #fff;
  font-family: var(--display); letter-spacing: .08em; font-size: 17px; padding: 4px 14px; border-radius: 999px;
}
.plan h3 { font-size: 32px; }
.price { font-family: var(--display); font-size: 50px; line-height: 1; margin: 14px 0 4px; color: #fff; }
.price small { display: block; margin-top: 8px; font-family: var(--body); font-size: 13px; color: rgba(255, 255, 255, .6); letter-spacing: 0; }
.plan-sub { color: rgba(255, 255, 255, .62); font-size: 14px; margin-bottom: 18px; }
.plan ul { margin-bottom: 26px; flex: 1; }
.plan li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: 15px; color: rgba(255, 255, 255, .88); }
.plan li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.plan-text { flex: 1; font-size: 15px; color: rgba(255, 255, 255, .8); margin-bottom: 22px; }
.plans-small .price { font-size: 42px; }
.plans-small h3 { font-size: 28px; }
.plans-note { text-align: center; margin: 34px 0 0; color: rgba(255, 255, 255, .7); }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.steps b {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--display); font-size: 26px; font-weight: 400; margin-bottom: 14px;
}
.steps li:nth-child(even) b { background: var(--blue); }
.steps h3 { font-size: 28px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Instructor ---------- */
.instructor { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.instructor-photo img { width: 100%; max-width: 420px; margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.instructor h2 { font-size: clamp(40px, 5vw, 64px); }
.instructor h2 small { display: block; font-size: .5em; color: var(--red); letter-spacing: .08em; margin-top: 4px; }
.instructor p { margin-top: 18px; }
blockquote {
  margin: 22px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--red);
  font-size: 18px; font-style: italic; color: rgba(255, 255, 255, .88);
}
.social { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.social a { color: #fff; font-weight: 600; text-underline-offset: 4px; }

/* ---------- Servicios ---------- */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service { border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px 24px; background: #fff; transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--red); }
.service:nth-child(even):hover { box-shadow: 8px 8px 0 var(--blue); }
.service h3 { font-size: 28px; margin-bottom: 10px; }
.service p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video { position: relative; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: linear-gradient(135deg, var(--ink) 0 50%, var(--blue) 50% 100%); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .3s; }
.video:hover img { opacity: 1; transform: scale(1.04); }
.video i { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--red); }
.video i::after { content: ""; position: absolute; left: 27px; top: 21px; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Aliados ---------- */
.allies { background: var(--ink); color: #fff; padding: 46px 0; text-align: center; }
.allies .eyebrow { color: rgba(255, 255, 255, .6); font-size: 17px; }
.allies ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 46px; margin-top: 18px; }
.allies img { height: 36px; width: auto; max-width: 150px; object-fit: contain; opacity: .8; transition: opacity .2s; }
.allies a:hover img { opacity: 1; }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid #d9d9de; }
summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 18px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 34px; color: var(--red); transition: transform .2s; }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 22px; margin: 0; color: var(--muted); max-width: 70ch; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(110deg, var(--red) 0 50%, var(--blue) 50% 100%);
  color: #fff; text-align: center; padding: 76px 0;
}
.cta h2 { font-size: clamp(44px, 7vw, 84px); }
.cta p { font-size: 19px; margin: 12px 0 26px; }
.cta .btn-red { background: var(--ink); }
.cta .btn-red:hover { background: #000; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer h3 { font-size: 26px; margin-bottom: 14px; color: var(--red); }
.footer li { margin-bottom: 8px; font-size: 15px; color: rgba(255, 255, 255, .78); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer img { margin-bottom: 12px; }
.copy { margin: 0; padding: 20px; text-align: center; border-top: 1px solid var(--line); font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service, .video img, .wa-float { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .plans-small { grid-template-columns: repeat(2, 1fr); }
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero { padding: 48px 0 70px; }
  .hero-grid, .instructor { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo { width: min(100%, 380px); }
  .cards3, .plans, .videos { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(3) { border-left: 0; }
  .stats-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 20px 22px; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .plans-small, .cards4, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand { font-size: 23px; }
  .hero-badge { width: 104px; right: -6px; }
  .hero-photo > img:first-child { box-shadow: 9px 9px 0 var(--red), -9px -9px 0 var(--blue); }
}
