/* ==========================================================
   AUPAME — estilos
   Paleta de marca: #7fc5bb · #c9e6e2 · #f2fffd · #bc82cd
   Tonos de trabajo (accesibilidad AA): lila profundo #8e4fa3 / #7d4291,
   verde tinta #1f4f49 / #3d625d
   ========================================================== */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* marca */
  --teal: #7fc5bb;
  --mist: #c9e6e2;
  --foam: #f2fffd;
  --lilac: #bc82cd;
  /* trabajo */
  --lilac-ink: #8e4fa3;      /* botones, palabra destacada (5,4:1 sobre foam) */
  --lilac-deep: #7d4291;     /* hover / enlaces sobre mist (5,2:1) */
  --ink: #1f4f49;            /* títulos y texto (9:1 sobre foam) */
  --ink-soft: #3d625d;       /* texto secundario (5,1:1 sobre mist) */
  --white: #ffffff;
  --line: rgba(31, 79, 73, 0.12);
  --lilac-tint: rgba(188, 130, 205, 0.16);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(31, 79, 73, .06), 0 4px 14px rgba(31, 79, 73, .06);
  --shadow: 0 2px 6px rgba(31, 79, 73, .06), 0 18px 40px -12px rgba(31, 79, 73, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 76px;
  --gutter: clamp(20px, 4vw, 40px);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--foam);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lilac-ink); text-underline-offset: 3px; }
a:hover { color: var(--lilac-deep); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; color: var(--ink); }
h1 { font-size: clamp(42px, 2.1rem + 2.2vw, 64px); }
h2 { font-size: clamp(34px, 1.7rem + 1.4vw, 50px); }
h3 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.25; }
.kw { color: var(--lilac-ink); position: relative; z-index: 0; white-space: nowrap; }
.kw::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .02em; height: .14em;
  background: var(--lilac); opacity: .45; border-radius: 99px; z-index: -1;
}
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mist); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.section { padding-block: clamp(72px, 9vw, 120px); position: relative; }
.section--mist { background: var(--mist); }
.section--white { background: var(--white); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--ink-soft); font-size: 19px; margin-top: 16px; margin-bottom: 0; }
.section-head.center { text-align: center; margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--lilac); border-radius: 2px; }

/* Marcador de dato a confirmar (visible en la maqueta) */
.tbc {
  display: inline-block; font-size: 12.5px; line-height: 1.4; font-weight: 600; letter-spacing: .02em;
  color: var(--lilac-deep); background: var(--lilac-tint); border: 1px dashed var(--lilac);
  padding: 2px 8px; border-radius: 99px; vertical-align: middle; white-space: normal;
}

/* ---------- Botones ---------- */
.btn {
  --bg: var(--lilac-ink); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 600; letter-spacing: .005em;
  color: var(--fg); background: var(--bg); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), background-color 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease);
}
.btn:hover { color: var(--fg); background: var(--lilac-deep); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(125, 66, 145, .6); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arrow { transition: transform 300ms var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: rgba(31, 79, 73, .28); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15.5px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; min-height: 44px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform 300ms var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 99px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--lilac-tint);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Barra de aviso ---------- */
.notice {
  background: var(--ink); color: var(--foam); font-size: 15px; text-align: center;
  padding: 9px var(--gutter); line-height: 1.45;
}
.notice a { color: var(--foam); font-weight: 600; text-decoration-color: var(--lilac); text-decoration-thickness: 2px; margin-left: 6px; display: inline-block; padding-block: 4px; }
.notice a:hover { color: var(--white); }
.notice strong { color: #e6c9ee; font-weight: 600; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(242, 255, 253, .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(31, 79, 73, .4); }
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand img { width: 40px; height: 40px; }
.brand span { font-size: 25px; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font-size: 16.5px; font-weight: 500;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: var(--lilac);
  border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 12px; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); cursor: pointer;
  }
  .menu-toggle .bars { position: relative; width: 20px; height: 14px; }
  .menu-toggle .bars span {
    position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform 300ms var(--ease), opacity 200ms var(--ease), top 300ms var(--ease);
  }
  .menu-toggle .bars span:nth-child(1) { top: 0; }
  .menu-toggle .bars span:nth-child(2) { top: 6px; }
  .menu-toggle .bars span:nth-child(3) { top: 12px; }
  .menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 28px; background: var(--foam);
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(31, 79, 73, .35);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 0s linear 300ms;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 0s; }
  .nav a:not(.btn) { min-height: 54px; font-size: 19px; padding: 0 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 20px 0 0; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 110px); position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 12em; }
.hero .lead { font-size: clamp(18px, 1rem + .3vw, 20px); color: var(--ink-soft); max-width: 34em; margin: 24px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-sign { display: flex; align-items: center; gap: 12px; margin-top: 36px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.45; }
.hero-sign img { width: 36px; height: 36px; }
.hero-sign strong { color: var(--ink); font-weight: 600; display: block; }

.hero-media { position: relative; justify-self: center; width: 100%; max-width: 470px; }
.aura {
  position: absolute; inset: -12% -16% -8% -16%; z-index: 0; pointer-events: none;
  filter: blur(36px); opacity: .9;
}
.aura span { position: absolute; border-radius: 50%; }
.aura span:nth-child(1) { width: 62%; height: 52%; left: 4%; top: 6%; background: radial-gradient(circle, var(--teal) 0%, rgba(127, 197, 187, 0) 70%); animation: drift-a 18s var(--ease) infinite alternate; }
.aura span:nth-child(2) { width: 60%; height: 56%; right: 0; top: 30%; background: radial-gradient(circle, var(--mist) 0%, rgba(201, 230, 226, 0) 70%); animation: drift-b 22s var(--ease) infinite alternate; }
.aura span:nth-child(3) { width: 50%; height: 44%; left: 18%; bottom: 0; background: radial-gradient(circle, rgba(127, 197, 187, .7) 0%, rgba(127, 197, 187, 0) 70%); animation: drift-c 26s var(--ease) infinite alternate; }
@keyframes drift-a { to { transform: translate(18%, 14%) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-16%, -12%) scale(.92); } }
@keyframes drift-c { to { transform: translate(12%, -18%) scale(1.08); } }

.arch {
  position: relative; z-index: 1; overflow: hidden;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  aspect-ratio: 1000 / 1360; background: var(--mist);
  box-shadow: var(--shadow);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-badge {
  position: absolute; z-index: 2; left: -28px; bottom: 44px; white-space: nowrap;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 18px; box-shadow: var(--shadow); font-size: 15px; line-height: 1.35;
}
.hero-badge .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--foam); color: var(--lilac-ink); }
.hero-badge .ico svg { width: 22px; height: 22px; }
.hero-badge strong { display: block; font-weight: 650; }

@media (max-width: 560px) { .hero-badge { display: none; } }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 400px; }
  .arch { aspect-ratio: 4 / 3.7; border-radius: 220px 220px var(--radius-lg) var(--radius-lg); }
  .arch img { object-position: 50% 18%; }
  .hero-badge { left: auto; right: -8px; bottom: 18px; }
}

/* ---------- Credenciales ---------- */
.creds { border-block: 1px solid var(--line); background: var(--white); }
.creds ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.creds li { display: flex; gap: 14px; align-items: flex-start; padding: 28px 24px; line-height: 1.4; }
.creds li + li { border-left: 1px solid var(--line); }
.creds .ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--foam); color: var(--ink); border: 1px solid var(--line); }
.creds .ico svg { width: 22px; height: 22px; }
.creds strong { display: block; font-size: 16.5px; font-weight: 650; }
.creds span:not(.tbc) { font-size: 15px; color: var(--ink-soft); }
.creds .tbc { margin-top: 6px; }
@media (max-width: 960px) {
  .creds ul { grid-template-columns: 1fr 1fr; }
  .creds li:nth-child(3) { border-left: 0; }
  .creds li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .creds ul { grid-template-columns: 1fr; }
  .creds li { padding: 20px 4px; }
  .creds li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid--4, .grid--2 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 30px 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--white) 0%, var(--white) 55%, #eaf7f5 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease);
}
.section--mist .card { border-color: rgba(255, 255, 255, .7); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--foam), var(--mist)); color: var(--ink);
}
.card .ico svg { width: 26px; height: 26px; }
.card p { color: var(--ink-soft); font-size: 17px; margin: 0; flex: 1; }
.card .tags { margin-top: 4px; }
.card--feature { background: linear-gradient(155deg, #ffffff 0%, var(--foam) 45%, #d8efeb 100%); border-color: rgba(127, 197, 187, .55); }
.card--feature .ico { background: var(--lilac-ink); color: var(--white); }
.card .link-arrow { margin-top: -4px; }

/* ---------- Bloque curso en home ---------- */
.course-band {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow);
}
.course-band .media { position: relative; min-height: 360px; background: var(--mist); }
.course-band .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.course-band .body {
  position: relative; padding: clamp(32px, 4.5vw, 60px); display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(127, 197, 187, .35) 0%, rgba(127, 197, 187, 0) 55%),
    linear-gradient(180deg, var(--white), var(--foam));
}
.course-band h2 { font-size: clamp(32px, 1.5rem + 1.3vw, 44px); }
.course-band .chk { margin: 22px 0 28px; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 24px; }
.price-line .amount { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.price-line .note { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 860px) {
  .course-band { grid-template-columns: 1fr; }
  .course-band .media { min-height: 0; aspect-ratio: 16 / 10; }
}

.chk { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.chk li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.chk li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4f49' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Pasos ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding: 32px 28px 30px; border-radius: var(--radius); background: linear-gradient(160deg, var(--mist) 0%, #dcf0ec 100%); border: 1px solid rgba(255, 255, 255, .7); }
.step .num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font-weight: 700; font-size: 18px; color: var(--white); background: var(--ink); margin-bottom: 20px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 17px; }
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 55px; right: -22px; width: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px); opacity: .35;
}
@media (max-width: 860px) { .steps .step::after { display: none; } }

/* ---------- Quién soy ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-media { position: relative; }
.frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1000 / 1234;
  background: var(--mist); box-shadow: var(--shadow);
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.about-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--teal), var(--mist)); z-index: -1; opacity: .7;
}
.about-text p { color: var(--ink-soft); }
.about-text p.big { font-size: 21px; color: var(--ink); line-height: 1.55; margin-top: 18px; }
.about-text h3 { font-size: 17px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 600; margin: 28px 0 14px; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin-inline: auto 18px; width: calc(100% - 18px); }
}

/* ---------- Testimonios ---------- */
.quote {
  margin: 0; display: flex; flex-direction: column; gap: 18px; min-height: 230px; padding: 30px 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--white), var(--foam)); border: 1px solid var(--line);
}
.quote--placeholder { border: 1.5px dashed rgba(142, 79, 163, .45); background: linear-gradient(160deg, rgba(255, 255, 255, .8), rgba(242, 255, 253, .8)); }
.quote .mark { width: 34px; height: 34px; color: var(--lilac); }
.quote p { margin: 0; flex: 1; color: var(--ink-soft); }
.quote .who { display: flex; align-items: center; gap: 12px; font-size: 15.5px; line-height: 1.35; }
.quote .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(145deg, var(--mist), var(--teal)); display: grid; place-items: center; font-weight: 700; color: var(--ink); }
.quote .who strong { display: block; color: var(--ink); }

/* ---------- FAQ (acordeón) ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--white); border: 1px solid var(--line); transition: box-shadow 300ms var(--ease), border-color 300ms var(--ease); }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: rgba(127, 197, 187, .7); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 16px 22px 16px 26px; font-weight: 600; font-size: 18px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus {
  flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--foam); border: 1px solid var(--line);
  transition: transform 350ms var(--ease), background-color 350ms var(--ease);
}
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--ink); border-radius: 2px; }
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); background: var(--mist); }
.faq .answer { padding: 0 26px 22px; color: var(--ink-soft); }
.faq .answer p:last-child { margin: 0; }
.faq details[open] .answer { animation: faq-in 380ms var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.channels { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.channels a {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), background-color 300ms var(--ease);
}
.channels a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); background: var(--white); color: var(--ink); }
.channels .ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--white); }
.channels .ico svg { width: 22px; height: 22px; }
.channels small { display: block; font-size: 14px; color: var(--ink-soft); line-height: 1.3; }
.channels span { font-weight: 600; line-height: 1.35; word-break: break-word; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Formularios ---------- */
.form-card { padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: 15.5px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field .hint { font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--foam); border: 1.5px solid rgba(31, 79, 73, .18); transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms var(--ease);
}
textarea.input { min-height: 132px; resize: vertical; line-height: 1.55; }
.input:hover { border-color: rgba(31, 79, 73, .35); }
.input:focus { outline: none; border-color: var(--lilac-ink); background: var(--white); box-shadow: 0 0 0 4px var(--lilac-tint); }
.field.has-error .input, .field.has-error .select-btn, .field.has-error .file-drop { border-color: #b3261e; background: #fff8f7; }
.field .err { display: none; font-size: 14px; color: #b3261e; font-weight: 500; }
.field.has-error .err { display: block; }
.form-alert {
  display: none; margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; font-size: 15.5px; line-height: 1.5;
  background: #fff4f3; color: #8c1d18; border: 1px solid #f2c4c0;
}
.form-alert.is-visible { display: block; }
.form-alert a { color: #8c1d18; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--lilac-ink); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }
.form-foot small { color: var(--ink-soft); font-size: 14px; max-width: 30em; line-height: 1.45; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-success { display: none; text-align: center; padding: 20px 8px; }
.form-success.is-visible { display: block; animation: faq-in 420ms var(--ease); }
.form-success .ok { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--ink); }
.form-success .ok svg { width: 30px; height: 30px; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--ink-soft); max-width: 30em; margin: 0 auto; }

/* Select personalizado */
.select { position: relative; }
.select-btn {
  width: 100%; min-height: 52px; padding: 12px 48px 12px 16px; border-radius: 14px; text-align: left; cursor: pointer;
  font: inherit; font-size: 17px; color: var(--ink); background: var(--foam); border: 1.5px solid rgba(31, 79, 73, .18);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.select-btn[data-empty="true"] { color: var(--ink-soft); }
.select-btn:focus-visible, .select.is-open .select-btn { outline: none; border-color: var(--lilac-ink); box-shadow: 0 0 0 4px var(--lilac-tint); background: var(--white); }
.select-btn .chev { position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; transition: transform 300ms var(--ease); }
.select.is-open .chev { transform: rotate(180deg); }
.select-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none;
  background: var(--white); border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top;
  transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 0s linear 250ms;
  max-height: 300px; overflow-y: auto;
}
.select.is-open .select-list { opacity: 1; visibility: visible; transform: none; transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 0s; }
.select-list:focus-visible { outline: none; box-shadow: var(--shadow), 0 0 0 3px var(--lilac-tint); }
.select-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 10px 14px; border-radius: 10px; cursor: pointer; line-height: 1.35; }
.select-list li.is-active { background: var(--foam); }
.select-list li[aria-selected="true"] { font-weight: 600; }
.select-list li[aria-selected="true"]::after { content: ""; width: 16px; height: 16px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e4fa3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Aviso salud ---------- */
.health-note { background: var(--mist); }
.health-note .container { display: flex; gap: 16px; align-items: flex-start; padding-block: 26px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.health-note svg { flex: none; width: 24px; height: 24px; margin-top: 1px; color: var(--ink); }
.health-note p { margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(242, 255, 253, .86); padding-block: 64px 28px; font-size: 16px; }
.footer a { color: var(--foam); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--lilac); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer .brand span { color: var(--foam); }
.footer .brand img { filter: brightness(1.05); }
.footer h4 { color: var(--foam); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer ul a { display: inline-flex; align-items: center; min-height: 36px; }
.footer .nowrap { white-space: nowrap; }
.footer .about-line { margin-top: 14px; max-width: 24em; line-height: 1.55; }
.btn-regret {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; margin-top: 12px;
  border-radius: 12px; border: 1.5px solid var(--lilac); color: var(--foam) !important; font-weight: 700; font-size: 14px; letter-spacing: .04em;
  transition: background-color 250ms var(--ease);
}
.btn-regret:hover { background: rgba(188, 130, 205, .18); text-decoration: none !important; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(242, 255, 253, .16); font-size: 14.5px; color: rgba(242, 255, 253, .72); }
.footer .tbc { color: #f0dcf5; background: rgba(188, 130, 205, .2); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white); background: var(--ink);
  border: 2px solid rgba(242, 255, 253, .55);
  box-shadow: 0 12px 28px -8px rgba(31, 79, 73, .55); transition: transform 300ms var(--ease), background-color 300ms var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: #173e39; color: var(--white); }
.wa-float svg { width: 30px; height: 30px; }

/* ==========================================================
   Página del curso
   ========================================================== */
.course-hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.course-hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.course-hero .lead { font-size: clamp(18px, 1rem + .3vw, 20px); color: var(--ink-soft); margin: 22px 0 18px; max-width: 34em; }
.course-hero .for { font-size: 16.5px; color: var(--ink); margin-bottom: 28px; max-width: 34em; }
.course-hero .for strong { font-weight: 650; }
.course-media { position: relative; }
.course-media .aura { inset: -14% -10%; }
.course-media .frame { aspect-ratio: 1400 / 966; }
.course-media .frame img { object-position: 55% 50%; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
@media (max-width: 860px) {
  .course-hero .container { grid-template-columns: 1fr; }
  .course-media { order: -1; }
}

.includes .card { padding: 26px 24px; }
.includes .card h3 { font-size: 19px; }

.syllabus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; counter-reset: cap; }
.syllabus li {
  counter-increment: cap; display: flex; align-items: center; gap: 18px; min-height: 76px; padding: 14px 20px 14px 14px;
  border-radius: 18px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .95);
  font-weight: 600; font-size: 17.5px; line-height: 1.35;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease);
}
.syllabus li:hover { transform: translateX(4px); background: var(--white); }
.syllabus li::before {
  content: counter(cap, decimal-leading-zero); flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  font-size: 15px; font-weight: 700; color: var(--ink); background: linear-gradient(145deg, var(--foam), var(--mist));
}
.syllabus li.bonus { grid-column: 1 / -1; background: var(--white); border: 1.5px dashed rgba(142, 79, 163, .45); }
.syllabus li.bonus::before { content: "+"; font-size: 24px; color: var(--white); background: var(--lilac-ink); }
.syllabus small { display: block; font-weight: 400; font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 760px) { .syllabus { grid-template-columns: 1fr; } }

.teacher { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--white), var(--foam)); border: 1px solid var(--line); }
.teacher .pic { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; background: var(--mist); box-shadow: 0 0 0 8px var(--white), 0 0 0 9px rgba(127, 197, 187, .6); }
.teacher .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.teacher p { color: var(--ink-soft); }
@media (max-width: 700px) { .teacher { grid-template-columns: 1fr; text-align: left; } .teacher .pic { width: 150px; height: 150px; } }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.price-card {
  position: relative; overflow: hidden; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow);
}
.price-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--teal), var(--mist), var(--teal));
}
.price-card .label { display: inline-flex; margin-bottom: 14px; }
.price-card .amount { font-size: clamp(48px, 2.4rem + 1.4vw, 62px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 0; }
.price-card .regular { font-size: 15.5px; color: var(--ink-soft); margin: 12px 0 4px; }
.price-card .taxes { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 22px; }
.price-card .chk { margin: 0 0 28px; font-size: 16.5px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }
.pay-methods span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-soft); padding: 4px 10px; border-radius: 99px; background: var(--foam); }
.pay-methods svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* Barra fija de compra (mobile, página del curso) */
.buy-bar { display: none; }
@media (max-width: 760px) {
  .buy-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(31, 79, 73, .4);
    transform: translateY(110%); transition: transform 350ms var(--ease);
  }
  .buy-bar.is-visible { transform: none; }
  .buy-bar .p { line-height: 1.2; }
  .buy-bar .p strong { display: block; font-size: 22px; }
  .buy-bar .p small { font-size: 13px; color: var(--ink-soft); }
  .page-course .wa-float { bottom: 96px; }
}

/* ---------- Diálogo de compra ---------- */
dialog.buy {
  width: min(600px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(15, 45, 41, .5); overflow: hidden;
}
dialog.buy[open] { animation: dlg-in 380ms var(--ease); }
dialog.buy::backdrop { background: rgba(20, 52, 48, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade-in 300ms var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
.buy-inner { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.buy-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px 18px 28px; background: linear-gradient(180deg, var(--white) 70%, rgba(255, 255, 255, .9)); border-bottom: 1px solid var(--line);
}
.buy-head h2 { font-size: 22px; letter-spacing: -0.01em; }
.buy-head p { margin: 2px 0 0; font-size: 15px; color: var(--ink-soft); }
.icon-btn { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--foam); color: var(--ink); cursor: pointer; transition: background-color 250ms var(--ease), transform 250ms var(--ease); }
.icon-btn:hover { background: var(--mist); transform: rotate(90deg); }
.icon-btn svg { width: 20px; height: 20px; }
.buy-body { padding: 24px 28px 30px; }
.buy-step[hidden] { display: none; }
.buy-step { animation: faq-in 350ms var(--ease); }
.buy-step > h3 { font-size: 18px; margin-bottom: 14px; }

.methods { display: grid; gap: 12px; margin-bottom: 24px; }
.method { position: relative; display: block; cursor: pointer; }
.method input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 24px; top: 24px; margin: 0; pointer-events: none; }
.method .box {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 18px; border-radius: 18px; border: 1.5px solid rgba(31, 79, 73, .16);
  background: linear-gradient(160deg, var(--white), var(--foam)); transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease), transform 250ms var(--ease);
}
.method:hover .box { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.method input:checked + .box { border-color: var(--lilac-ink); box-shadow: 0 0 0 4px var(--lilac-tint); }
.method input:focus-visible + .box { outline: 3px solid var(--lilac); outline-offset: 3px; }
.method .ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--ink); }
.method .ico svg { width: 24px; height: 24px; }
.method strong { display: block; font-size: 17.5px; }
.method .sub { display: block; font-size: 15px; color: var(--ink-soft); line-height: 1.45; margin-top: 2px; }
.method .pill { display: inline-flex; margin-top: 10px; }
.method .radio { flex: none; margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(31, 79, 73, .3); margin-top: 2px; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.method input:checked + .box .radio { border-color: var(--lilac-ink); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 12px var(--lilac-ink); }

.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; margin: -6px 0 10px; border: 0; background: none; font: inherit; font-size: 15.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.back:hover { color: var(--ink); }
.back svg { width: 18px; height: 18px; transition: transform 250ms var(--ease); }
.back:hover svg { transform: translateX(-3px); }

.bank { display: grid; gap: 10px; margin-bottom: 22px; }
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 16px; background: var(--foam); border: 1px solid var(--line); }
.bank-row small { display: block; font-size: 13.5px; color: var(--ink-soft); line-height: 1.3; }
.bank-row .val { font-weight: 650; font-size: 17px; word-break: break-all; line-height: 1.35; }
.bank-row--amount { background: linear-gradient(110deg, var(--foam), rgba(127, 197, 187, .3)); }
.bank-row--amount .val { font-size: 22px; }
.copy { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid rgba(31, 79, 73, .2); background: var(--white); font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color 200ms var(--ease), background-color 200ms var(--ease); }
.copy:hover { border-color: var(--ink); }
.copy svg { width: 16px; height: 16px; }
.copy.is-done { background: var(--mist); border-color: var(--teal); }

.file-drop {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border-radius: 14px;
  border: 1.5px dashed rgba(31, 79, 73, .3); background: var(--foam); cursor: pointer; transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.file-drop:hover, .file-drop:focus-within { border-color: var(--lilac-ink); background: var(--white); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop svg { flex: none; width: 24px; height: 24px; color: var(--lilac-ink); }
.file-drop span { font-size: 15.5px; line-height: 1.4; }
.file-drop .fname { font-weight: 600; word-break: break-all; }
.or { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); margin: 4px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notice-box { padding: 14px 16px; border-radius: 14px; background: var(--foam); border: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin: 18px 0 0; }
.notice-box strong { color: var(--ink); }
.alt-wa { display: flex; justify-content: center; margin-top: 14px; }

/* ---------- Páginas simples ---------- */
.page-simple { padding-block: clamp(56px, 8vw, 100px); }
.page-simple .container { max-width: 820px; }
.page-simple h1 { font-size: clamp(38px, 2rem + 1.6vw, 56px); margin-bottom: 20px; }
.page-simple .box { margin-top: 32px; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px dashed rgba(142, 79, 163, .45); color: var(--ink-soft); }

/* ---------- Páginas legales ---------- */
.legal .updated { color: var(--ink-soft); font-size: 15px; margin-top: -8px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.legal strong { color: var(--ink); }

/* ---------- Aparición al hacer scroll ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    @keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
