/* =============================================================
   IA al Día · Arquetipo 04 Glassmorphism Modern, adaptado a la marca
   Turquesa #0FC3B6 (dominante) · Magenta #D91C82 (acción) · Amarillo #FFC93C (destacar) · Tinta #14142B
   ============================================================= */

/* 1. Tokens */
:root {
  --bg: #f6fbfb;
  --paper: #ffffff;
  --ink: #14142b;
  --ink-soft: #3d3e57;
  --ink-mute: #63647c;
  --turq: #0fc3b6;
  --turq-deep: #05706a;
  --mag: #d91c82;
  --mag-deep: #b3146a;
  --sun: #ffc93c;
  --glass: rgba(255, 255, 255, 0.55);
  --line: rgba(20, 20, 43, 0.1);
  --radius: 22px;
  --shadow: 0 20px 50px -24px rgba(20, 20, 43, 0.35);
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
ul, ol { padding: 0; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--mag); outline-offset: 3px; border-radius: 6px; }

/* 3. Utilities */
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: #fff; z-index: 9999; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.tint { background: linear-gradient(180deg, #e9f9f7 0%, #f6fbfb 100%); }
.kicker { font-weight: 600; color: var(--turq-deep); font-size: .95rem; margin-bottom: .7rem; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; margin-top: 1rem; }
.hl { background: linear-gradient(transparent 62%, var(--sun) 62%); padding: 0 .1em; }

/* 4. Components */
.glass { background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: var(--radius); box-shadow: var(--shadow); }
@supports (backdrop-filter: blur(20px)) {
  .glass { background: var(--glass); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); }
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; font-weight: 600; font-family: var(--display); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s; }
.btn-primary { background: var(--mag); color: #fff; box-shadow: 0 12px 28px -10px rgba(217, 28, 130, .7); }
.btn-primary:hover { background: var(--mag-deep); transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(217, 28, 130, .8); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: .92rem; }
.btn-block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.is-scrolled { background: rgba(246, 251, 251, 0.9); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(12px)) { .nav.is-scrolled { background: rgba(246, 251, 251, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.nav-inner { width: min(1180px, 100% - 32px); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.logo svg { width: 36px; height: 36px; }
.nav-links { display: flex; order: 3; width: 100%; overflow-x: auto; white-space: nowrap; gap: 1.2rem; padding-bottom: 10px; font-weight: 500; font-size: .9rem; }
.nav-links a { position: relative; padding: .3rem 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mag); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); }

/* 5. Hero */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); isolation: isolate; }
.hero-mesh { position: absolute; inset: -10% -5% 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 45% at 18% 25%, rgba(15, 195, 182, .55), transparent 70%),
    radial-gradient(35% 40% at 85% 20%, rgba(255, 201, 60, .5), transparent 70%),
    radial-gradient(40% 45% at 70% 85%, rgba(217, 28, 130, .28), transparent 70%);
  filter: blur(40px) saturate(140%);
  animation: meshDrift 30s ease-in-out infinite; }
@keyframes meshDrift { 0%, 100% { transform: scale(1) translate(0, 0); } 50% { transform: scale(1.12) translate(2%, -2%); } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--paper); border: 1px solid var(--line); padding: .45rem .9rem; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mag); box-shadow: 0 0 0 0 rgba(217, 28, 130, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(217, 28, 130, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 28, 130, 0); } }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); margin-top: 1.1rem; max-width: 16ch; }
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); margin-top: 1.2rem; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2rem; color: var(--ink-soft); font-size: .95rem; }
.hero-facts b { font-family: var(--display); color: var(--ink); font-size: 1.15rem; margin-right: .25rem; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone { width: min(360px, 100%); padding: 18px; border-radius: 30px; transition: transform .4s var(--ease-out); transform-style: preserve-3d; }
.phone-top { display: flex; align-items: center; gap: .7rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.phone-top b { display: block; font-family: var(--display); }
.phone-top small { color: var(--turq-deep); font-weight: 500; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--turq); font-family: var(--display); font-weight: 800; }
.chat { display: grid; gap: 10px; padding: 14px 0 6px; font-size: .92rem; }
.msg { padding: .7rem .9rem; border-radius: 16px; max-width: 88%; line-height: 1.45; }
.msg.me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.esc { border-left: 4px solid var(--sun); }
.phone-note { font-size: .78rem; color: var(--ink-mute); text-align: center; margin-top: 6px; }
.float-card { position: absolute; padding: .7rem 1rem; border-radius: 16px; font-size: .88rem; display: none; animation: bob 6s ease-in-out infinite; }
.float-card b { display: block; font-family: var(--display); }
.float-card span { color: var(--ink-soft); }
.float-card.c1 { left: -8px; top: 12%; border-left: 4px solid var(--turq); }
.float-card.c2 { right: -8px; bottom: 14%; border-left: 4px solid var(--mag); animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Marquee */
.marquee { overflow: hidden; background: var(--ink); color: #fff; padding: 14px 0; }
.marquee-track { display: flex; width: max-content; gap: 3rem; animation: marquee 32s linear infinite; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.marquee-track span::before { content: "●"; color: var(--sun); margin-right: 1rem; font-size: .7em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Compare */
.compare { display: grid; gap: 20px; margin-top: 40px; }
.compare-col { padding: 28px; }
.compare-col h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.compare-col ul { list-style: none; display: grid; gap: .7rem; }
.compare-col li { padding-left: 1.8rem; position: relative; }
.compare-col.free li { color: var(--ink-mute); }
.compare-col.free li::before { content: "–"; position: absolute; left: .3rem; color: var(--ink-mute); }
.compare-col.us { border: 2px solid var(--turq); }
.compare-col.us li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--turq) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10l3 3 7-7' fill='none' stroke='%2314142B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Steps */
.steps { display: grid; gap: 18px; margin-top: 40px; }
.step { padding: 26px; transition: transform .35s var(--ease-out); }
.step:hover { transform: translateY(-4px); }
.step-n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--sun); font-family: var(--display); font-weight: 800; margin-bottom: 1rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { color: var(--ink-soft); font-size: .97rem; }

/* Profe */
.profe { background: var(--ink); color: #fff; }
.profe .kicker { color: var(--turq); }
.profe .lead { color: rgba(255, 255, 255, .78); }
.profe-grid { display: grid; gap: 40px; align-items: center; }
.levels { list-style: none; display: grid; gap: 14px; counter-reset: lv; }
.levels li { counter-increment: lv; padding: 22px 22px 22px 78px; position: relative; color: var(--ink); }
.levels li::before { content: counter(lv); position: absolute; left: 22px; top: 22px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--turq); font-family: var(--display); font-weight: 800; }
.levels li:nth-child(2)::before { background: var(--sun); }
.levels li:nth-child(3)::before { background: var(--mag); color: #fff; }
.levels b { display: block; font-family: var(--display); font-size: 1.1rem; }
.levels span { color: var(--ink-soft); font-size: .96rem; }
.profe .glass { background: rgba(255, 255, 255, .94); }

/* Courses */
.courses { display: grid; gap: 20px; margin-top: 40px; }
.course { padding: 28px; display: flex; flex-direction: column; gap: .7rem; }
.course.featured { border: 2px solid var(--mag); }
.course-tag { font-size: .85rem; font-weight: 600; color: var(--mag); }
.course h3 { font-size: 1.4rem; }
.course > p { color: var(--ink-soft); }
.course details { border-top: 1px solid var(--line); padding-top: .7rem; }
.course summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.course details ol { padding-left: 1.2rem; margin-top: .5rem; display: grid; gap: .35rem; color: var(--ink-soft); }
.course-kit { margin-top: auto; font-size: .92rem; background: rgba(255, 201, 60, .25); padding: .6rem .8rem; border-radius: 12px; }
.soon-list { list-style: none; display: grid; gap: .45rem; color: var(--ink-soft); }
.soon-list li::before { content: "→ "; color: var(--turq-deep); font-weight: 700; }

/* Prices */
.prices { display: grid; gap: 20px; margin-top: 40px; align-items: stretch; }
.price { padding: 30px; display: flex; flex-direction: column; gap: .8rem; transition: transform .4s var(--ease-out); }
.price.hot { border: 3px solid var(--mag); background: #fff; position: relative; }
.price-tag { font-size: .85rem; font-weight: 600; color: var(--turq-deep); }
.price.hot .price-tag { color: var(--mag); }
.price h3 { font-size: 1.3rem; }
.amount { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 2.8rem); line-height: 1; white-space: nowrap; }
.amount small { font-size: .95rem; font-weight: 500; color: var(--ink-mute); margin-left: .3rem; white-space: normal; }
.price ul { list-style: none; display: grid; gap: .5rem; margin-bottom: 1rem; color: var(--ink-soft); }
.price li::before { content: "✓ "; color: var(--turq-deep); font-weight: 700; }
.price .btn { margin-top: auto; }
.guarantee { display: flex; align-items: center; gap: 1rem; padding: 18px 22px; margin-top: 24px; }
.guarantee svg { width: 44px; height: 44px; flex: none; }

/* FAQ */
.faq-wrap { display: grid; gap: 32px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--mag); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); }

/* CTA final */
.cta-final { position: relative; isolation: isolate; padding: clamp(72px, 10vw, 130px) 0; text-align: center; }
.cta-inner { display: grid; justify-items: center; gap: 1rem; }
.cta-inner h2 { margin-inline: auto; }
.cta-inner p { color: var(--ink-soft); max-width: 52ch; }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 48px 0; }
.footer-inner { display: grid; gap: 24px; }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer nav a:hover { color: var(--sun); }
.by { font-size: .9rem; color: rgba(255, 255, 255, .6); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: .9rem 1.2rem; border-radius: 14px; max-width: min(92vw, 420px); font-size: .95rem; z-index: 100; transition: transform .4s var(--ease-out); }
.toast.is-on { transform: translate(-50%, 0); }

/* 7. Reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* 8. Responsive */
@media (min-width: 720px) {
  .compare { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .by { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .nav-links { order: 0; width: auto; padding-bottom: 0; gap: 1.6rem; font-size: .95rem; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .float-card { display: block; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .profe-grid { grid-template-columns: 1fr 1fr; }
  .courses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prices { grid-template-columns: 1.1fr 1fr 1fr; }
  .faq-wrap { grid-template-columns: .8fr 1.2fr; align-items: start; }
}
@media (max-width: 539px) {
  .nav .btn-sm { padding: 0 .8rem; font-size: .85rem; }
  .logo span { display: none; }
}

/* 9. Reduced motion: solo lo intrusivo */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge .dot { animation: none; }
  .marquee-track { animation: none; }
}
