/* Appt · sitio público. Paleta de la presentación del curso (navy + turquesa), tipografía Roboto. */

:root {
  --navy: #102C3F;
  --ink: #0B2130;
  --teal: #1D97A0;
  --teal-ink: #11727A;
  --teal-hi: #7FD3D9;
  --teal-soft: #E3F3F4;
  --bg: #FFFFFF;
  --bg-2: #F3F7F8;
  --text: #13232F;
  --muted: #55666F;
  --line: #DCE5E8;
  --bad: #B3261E;
  --good: #1E7B4C;
  --radius: 16px;
  --shadow-lg: 0 30px 60px rgba(4, 18, 28, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1180px;
  --head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Roboto", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--teal-ink); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.005em; overflow-wrap: break-word; }
h1 { font-size: clamp(34px, 4.6vw + 12px, 66px); font-weight: 700; }
h2 { font-size: clamp(28px, 2.6vw + 14px, 44px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-size: 14px; font-weight: 700; color: var(--teal-ink); margin: 0 0 12px; }
.lead { font-size: clamp(17px, .5vw + 15px, 20px); color: var(--muted); max-width: 580px; }
.section { padding: clamp(64px, 8vw, 104px) 0; position: relative; }

/* Datos que Appt debe confirmar (se ocultan solos en appt.com.mx) */
.dato { background: #FFE58A; color: #3D2E00; padding: 0 .3em; border-radius: 4px; font-weight: 500; font-size: .92em; }
.draft-bar { background: #FFE58A; color: #3D2E00; font-size: 14px; text-align: center; padding: 8px 16px; position: relative; z-index: 31; }

/* Botones */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: .02em; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; text-align: center; cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.btn-sm { padding: 8px 18px; font-size: 15px; }
.btn-lg { padding: 15px 30px; font-size: 18px; min-height: 54px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 24px rgba(29,151,160,.35); }
.btn-primary:hover { background: #18868E; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(29,151,160,.45); }
.btn-outline { border-color: var(--teal); color: var(--teal-ink); background: #fff; }
.btn-outline:hover { background: var(--teal-soft); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--teal-hi); outline-offset: 2px; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(11, 33, 48, .72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); transition: background .25s var(--ease), box-shadow .25s var(--ease); }
.site-header.scrolled { background: rgba(11, 33, 48, .92); box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.site-header.solid { background: var(--ink); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.brand img { height: 42px; width: auto; flex: none; }
.brand span { font-family: var(--head); line-height: 1.1; min-width: 0; }
.brand b { display: block; font-size: 18px; letter-spacing: .05em; white-space: nowrap; }
.brand small { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; white-space: nowrap; }
.header-cta { margin-left: auto; flex: none; }

/* ============ Portada ============ */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; margin-top: -72px; padding: calc(72px + clamp(32px, 5vw, 72px)) 0 clamp(40px, 5vw, 64px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 560px; height: 560px; background: #1D97A0; top: -180px; right: -120px; animation: drift1 18s ease-in-out infinite alternate; }
.b2 { width: 460px; height: 460px; background: #1F4E6B; bottom: -160px; left: -140px; animation: drift2 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-120px, 80px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(140px, -60px) scale(1.08); } }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em, .hero h1 .hl { font-style: normal; background: linear-gradient(100deg, var(--teal-hi), #3FC1C9 60%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(255,255,255,.8); }
.split .w { display: inline-block; opacity: 0; transform: translateY(.45em); animation: wordIn .7s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 150ms); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.hero-micro { font-size: 14px; color: rgba(255,255,255,.65); }

/* Tarjeta "en vivo" */
.hero-visual { position: relative; min-width: 0; }
.journey { position: relative; background: rgba(255,255,255,.96); color: var(--text); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; margin-left: auto; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.j-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.j-live { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--bad); text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; }
.j-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.j-timer b { font-variant-numeric: tabular-nums; color: var(--navy); font-size: 15px; margin-left: 4px; transition: color .3s; }
.j-timer b.ok { color: var(--good); }
.j-lead { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg-2); margin-bottom: 12px; }
.j-lead > div { min-width: 0; }
.j-lead b { display: block; font-size: 15px; }
.j-lead small { display: block; color: var(--muted); font-size: 13px; }
.j-av { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.j-score { margin-left: auto; font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 8px; background: #EEF2F4; color: var(--muted); transition: background .4s, color .4s; flex: none; }
.j-score.hi { background: #E1F3EA; color: var(--good); }
.j-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.j-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; opacity: .28; transform: translateX(8px); transition: opacity .5s var(--ease), transform .5s var(--ease), background .5s var(--ease); }
.j-steps li.on { opacity: 1; transform: none; }
.j-steps li.cur { background: var(--teal-soft); }
.j-steps b { display: block; font-size: 15px; }
.j-steps small { display: block; color: var(--muted); font-size: 13px; }
.j-steps time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.j-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #EEF2F4; color: var(--muted); transition: background .4s, color .4s; }
.j-ico svg { width: 18px; height: 18px; }
.j-steps li.on .j-ico { background: var(--teal); color: #fff; }
.j-steps li:last-child.on .j-ico { background: var(--navy); }
.j-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 14px; }
.j-progress span { height: 5px; border-radius: 99px; background: #E3EAEE; position: relative; overflow: hidden; }
.j-progress span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal), var(--teal-hi)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.j-progress span.on::after { transform: scaleX(1); }

/* Lo que obtienes */
.hero-benefits { position: relative; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: clamp(36px, 4vw, 56px) 0 0; }
.hero-benefits li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease); }
.hero-benefits li:hover { border-color: rgba(127,211,217,.45); background: rgba(255,255,255,.07); transform: translateY(-3px); }
.hero-benefits div { min-width: 0; }
.hero-benefits b { display: block; font-family: var(--head); font-size: 19px; color: #fff; line-height: 1.2; margin-bottom: 4px; }
.hero-benefits span:not(.hb-ico) { display: block; font-size: 15px; color: rgba(255,255,255,.68); line-height: 1.45; }
.hb-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--teal), #17707A); color: #fff; box-shadow: 0 8px 18px rgba(29,151,160,.3); }
.hb-ico svg { width: 22px; height: 22px; }

/* ============ Contacto ============ */
.contact-section { background: radial-gradient(800px 420px at 8% 0%, rgba(29,151,160,.12), transparent 60%), radial-gradient(700px 400px at 100% 100%, rgba(31,78,107,.08), transparent 60%), var(--bg-2); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; gap: 12px; align-items: center; margin: 14px 0; color: var(--text); overflow-wrap: anywhere; }
.contact-list svg { width: 22px; height: 22px; color: var(--teal); flex: none; }
.contact-list a { color: var(--navy); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(29,151,160,.45); }
.contact-list a:hover { border-color: var(--teal); }
.form-card { position: relative; background: #fff; color: var(--text); border-radius: 22px; padding: 32px; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(16,44,63,.12); min-width: 0; }
.form-card::before { content: ""; position: absolute; left: 32px; right: 32px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--teal), var(--teal-hi)); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; font-size: 15px; }
input { font: inherit; font-size: 16px; color: var(--text); padding: 12px 14px; border: 1px solid #C5D1D6; border-radius: 12px; background: #fff; width: 100%; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(29,151,160,.15); outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 8px 0; }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: 0 0 20px; accent-color: var(--teal); padding: 0; }
.error { color: var(--bad); font-size: 14px; min-height: 1.2em; margin: 6px 0 10px; }
.form-ok { display: none; text-align: center; padding: 16px 4px; }
.form-card.sent .form-body { display: none; }
.form-card.sent .form-ok { display: block; animation: wordIn .5s var(--ease); }
.ok-ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: #E1F3EA; color: var(--good); }
.ok-ring svg { width: 36px; height: 36px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; }
.form-card.sent .ok-ring svg { animation: draw .6s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.demo-note { text-align: left; background: #FFF6D6; border: 1px solid #F0D98A; border-radius: 14px; padding: 14px 16px; font-size: 15px; color: #4A3B00; margin: 18px 0; }
.demo-note .btn { margin-top: 12px; }

/* Botón flotante de WhatsApp (solo con número configurado) */
.wa-float { position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: ring 2.4s infinite; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; stroke-width: 1.7; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 80%, 100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }

/* Pie */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 32px 0; font-size: 14px; }
.site-footer a { color: #fff; text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-meta, .legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.legal { justify-content: space-between; }

/* Aviso de privacidad */
.doc { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--muted); }
.legal-note { background: #FFF6D6; border: 1px solid #F0D98A; border-radius: 12px; padding: 14px 18px; font-size: 15px; color: #4A3B00; }

/* Entrada al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============ Responsivo ============ */
@media (max-width: 1080px) {
  .hero-grid, .contact { gap: 40px; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .hero-grid, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 640px; }
  .contact > * { width: 100%; max-width: 600px; }
  .journey { margin: 0 auto; }
  .doc { padding: 40px 20px 64px; }
}
@media (max-width: 760px) {
  .hero-benefits { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-benefits li { padding: 16px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .brand small { display: none; }
  .hero-actions .btn { width: 100%; }
  .hero-micro { width: 100%; text-align: center; }
  .form-card { padding: 24px 18px; }
  .form-card::before { left: 18px; right: 18px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .wa-float { right: 16px; width: 54px; height: 54px; }
}
@media (max-width: 400px) {
  .site-header .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .brand img { height: 34px; }
  .brand b { font-size: 15px; letter-spacing: .04em; }
  .header-cta { padding: 8px 14px; font-size: 14px; }
  .journey { padding: 14px; border-radius: 18px; }
  .j-steps li { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 8px; }
  .j-ico { width: 30px; height: 30px; }
  .j-steps b, .j-lead b { font-size: 14px; }
  .j-steps small, .j-lead small { font-size: 12px; }
}
@media (max-width: 340px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .split .w { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .j-steps li { opacity: 1; transform: none; }
}
