:root {
  interpolate-size: allow-keywords;
  --bg: #FDF6F0;
  --surface: #FFF;
  --surface-2: #FFF7F2;
  --ink: #2D1810;
  --ink-soft: #5C3D2E;
  --accent: #E85D75;
  --accent-2: #5BA68A;
  --line: rgba(45,24,16,0.12);
  --line-strong: rgba(45,24,16,0.22);
  --header-h: 72px;
  --container: 1240px;
  --space: clamp(1rem,5vw,3.5rem);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p { max-width: 65ch; }

a { color: var(--ink); text-decoration: none; transition: color 240ms cubic-bezier(.4,0,.2,1); }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--ink); color: var(--surface);
  padding: 8px 16px; border-radius: 4px;
  z-index: 9999; font-size: 14px;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1080;
  background: rgba(253,246,240,0.88);
  transition: background 240ms ease, box-shadow 240ms ease, padding 240ms ease;
  padding: 14px 0;
}
.site-header.scrolled {
  background: rgba(253,246,240,0.98);
  box-shadow: 0 8px 24px -16px rgba(45,24,16,0.18);
  padding: 10px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.logo {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600; font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.logo svg { width: 32px; height: 32px; }
.logo:hover { color: var(--accent); }

.nav-desktop { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 32px); }
.nav-desktop a {
  font-size: 15px; font-weight: 500; color: var(--ink);
  position: relative; padding: 4px 0;
  transition: color 240ms cubic-bezier(.4,0,.2,1);
}
.nav-desktop a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}
.nav-desktop a:hover { color: var(--accent); }
.nav-desktop a:hover::after, .nav-desktop a.is-active::after { transform: scaleX(1); }
.nav-desktop a.is-active { color: var(--accent); }
.nav-desktop .nav-cta {
  background: var(--ink); color: var(--surface);
  padding: 10px 22px; border-radius: 6px; font-weight: 600;
}
.nav-desktop .nav-cta::after { display: none; }
.nav-desktop .nav-cta:hover { background: var(--accent); color: var(--surface); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  z-index: 1100; width: 44px; height: 44px;
  position: relative; align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  position: absolute; left: 10px;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), opacity 200ms;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== MOBILE DRAWER ===== */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 1040; opacity: 0; pointer-events: none;
  transition: opacity 240ms ease;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  background: var(--surface);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
  padding: calc(var(--header-h) + 24px) 28px 32px;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer a {
  display: block; padding: 14px 0;
  font-size: 18px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color 240ms, transform 240ms;
}
.mobile-drawer a:hover { color: var(--accent); transform: translateX(4px); }
.mobile-drawer a.is-active { color: var(--accent); }
.mobile-drawer .drawer-cta {
  display: inline-block; margin-top: 16px;
  background: var(--accent); color: var(--surface);
  padding: 14px 28px; border-radius: 6px; font-weight: 600;
  text-align: center; border: none;
}
.mobile-drawer .drawer-cta:hover { background: var(--ink); color: var(--surface); }

/* ===== DRAWER CLOSE ===== */
.drawer-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  font-size: 24px; color: var(--ink); line-height: 1;
  border-radius: 8px;
  transition: background 240ms cubic-bezier(.4,0,.2,1), color 240ms;
}
.drawer-close:hover { background: var(--surface-2); color: var(--accent); }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: absolute; bottom: 0; left: 0;
  height: 2px; background: var(--accent);
  width: 0%; transition: none;
  will-change: width;
}

/* ===== MAIN ===== */
main { padding-top: var(--header-h); }

section { padding: clamp(48px, 8vw, 100px) 0; }
section[id] { scroll-margin-top: var(--header-h); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--surface);
  padding: 14px 32px; border-radius: 8px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; font-size: 16px;
  border: none; cursor: pointer;
  transition: background 240ms cubic-bezier(.4,0,.2,1), transform 180ms, box-shadow 240ms;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent); color: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(232,93,117,0.35);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  padding: 14px 32px; border-radius: 8px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; font-size: 16px;
  border: 2px solid var(--line-strong); cursor: pointer;
  transition: background 240ms, color 240ms, border-color 240ms, transform 180ms;
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--surface); color: var(--ink);
  border-color: var(--accent); transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
  overflow: hidden;
  padding: clamp(48px, 10vw, 120px) 0;
}
.hero-content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.hero .eyebrow {
  display: inline-block;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(232,93,117,0.08);
}
.hero h1 { margin-bottom: 20px; color: var(--ink); }
.hero h1 .char {
  display: inline-block; opacity: 0; transform: translateY(18px);
  animation: charReveal 500ms cubic-bezier(.16,.85,.45,1) forwards;
}
html.reveal-ready .hero h1 .char,
html.no-js .hero h1 .char {
  opacity: 1; transform: none; animation: none;
}
@keyframes charReveal {
  to { opacity: 1; transform: translateY(0); }
}
.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-soft); max-width: 560px; margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-trust {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px;
}
.hero-trust .badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-soft);
  padding: 6px 14px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
}
.hero-trust .badge svg { width: 16px; height: 16px; color: var(--accent-2); }

.hero-decor {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.confetti-dot {
  position: absolute; border-radius: 50%;
  animation: confettiFloat 8s ease-in-out infinite alternate;
}
@keyframes confettiFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(12deg); }
}

/* Piping bag SVG path animation */
.piping-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2s cubic-bezier(.2,.7,.2,1);
}
.piping-path.is-drawn { stroke-dashoffset: 0; }

/* ===== WAVE DIVIDER ===== */
.wave-divider {
  width: 100%; height: auto; display: block;
  margin: -1px 0;
}
.wave-divider path { fill: var(--surface); }

/* ===== SECTION: CURSOS (catalog grid) ===== */
.cursos { background: var(--surface); }
.section-header {
  text-align: center; margin-bottom: clamp(32px, 5vw, 56px);
}
.section-header .eyebrow {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--ink-soft); max-width: 50ch; margin: 0 auto; }

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}
.curso-card {
  background: var(--bg);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms;
  position: relative; overflow: hidden;
}
.curso-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 360ms cubic-bezier(.2,.7,.2,1);
}
.curso-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px -12px rgba(232,93,117,0.18); }
.curso-card:hover::before { transform: scaleX(1); }

.curso-card .card-icon {
  width: 48px; height: 48px; margin-bottom: 16px;
  color: var(--accent);
}
.curso-card h3 { margin-bottom: 8px; }
.curso-card .card-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin: 12px 0 16px; font-size: 13px; color: var(--ink-soft);
}
.curso-card .card-meta span {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 12px;
  background: rgba(91,166,138,0.08); color: var(--accent-2); font-weight: 500;
}
.curso-card .card-price {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 600;
  color: var(--ink);
}
.curso-card .card-price small { font-size: 13px; color: var(--ink-soft); font-weight: 400; }

@media (max-width: 768px) { .cursos-grid { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1024px) { .cursos-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== SECTION: METODO ===== */
.metodo { background: var(--bg); }
.metodo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 32px);
}
.metodo-step {
  text-align: center;
  padding: clamp(20px, 3vw, 32px) 16px;
}
.metodo-step .step-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(232,93,117,0.08);
  color: var(--accent);
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), background 280ms;
}
.metodo-step:hover .step-icon {
  transform: scale(1.08);
  background: rgba(232,93,117,0.14);
}
.metodo-step .step-num {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--accent-2); letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.metodo-step h4 { margin-bottom: 6px; }
.metodo-step p { font-size: 14px; color: var(--ink-soft); }

@media (max-width: 768px) { .metodo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .metodo-grid { grid-template-columns: 1fr; } }

/* ===== SECTION: EQUIPO ===== */
.equipo { background: var(--surface); }
.equipo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.equipo-card {
  text-align: center; padding: clamp(24px, 3vw, 36px);
  border-radius: 14px; background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms;
}
.equipo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(45,24,16,0.12);
}
.equipo-card .avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 16px; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--line);
  overflow: hidden;
}
.equipo-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.equipo-card h4 { margin-bottom: 4px; }
.equipo-card .role { font-size: 13px; color: var(--accent); font-weight: 500; margin-bottom: 12px; }
.equipo-card p { font-size: 14px; color: var(--ink-soft); }

@media (max-width: 768px) { .equipo-grid { grid-template-columns: 1fr; } }

/* ===== SECTION: VOCES (testimonials) ===== */
.voces { background: var(--bg); }
.voces-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}
.voz-card {
  background: var(--surface); border-radius: 14px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms;
  position: relative;
}
.voz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -8px rgba(45,24,16,0.1);
}
.voz-card .quote-icon {
  color: var(--accent); opacity: 0.3; margin-bottom: 12px;
}
.voz-card blockquote {
  font-size: 15px; color: var(--ink); line-height: 1.7;
  margin-bottom: 16px; font-style: italic;
}
.voz-card .voz-author {
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.voz-card .voz-detail { font-size: 12px; color: var(--ink-soft); }

/* ===== SECTION: INSCRIPCION ===== */
.inscripcion { background: var(--surface); }
.form-wrapper {
  max-width: 640px; margin: 0 auto;
  background: var(--bg); border-radius: 16px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 14px; font-weight: 500;
  margin-bottom: 6px; color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 15px;
  transition: border-color 240ms, box-shadow 240ms;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,93,117,0.12);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input[type="checkbox"] {
  appearance: auto; -webkit-appearance: auto;
  width: 18px; height: 18px;
  min-width: 18px; min-height: 18px;
  padding: 0; border: 0; margin: 2px 0 0;
  accent-color: var(--accent);
}
.field-checkbox {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
}
.field-checkbox label { margin-bottom: 0; font-size: 13px; line-height: 1.5; }
.field .error-msg { font-size: 12px; color: var(--accent); margin-top: 4px; display: none; }
.field.has-error .error-msg { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--accent); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-success {
  text-align: center; padding: 32px; display: none;
}
.form-success.is-visible { display: block; }
.form-success h3 { color: var(--accent-2); margin-bottom: 8px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.85);
  padding: clamp(48px, 6vw, 80px) 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 40px;
}
.footer-brand .logo { color: var(--surface); margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.65); max-width: 280px; }
.site-footer h5 {
  font-size: 14px; font-weight: 600; color: var(--surface);
  margin-bottom: 14px; letter-spacing: 0.04em;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a {
  font-size: 14px; color: rgba(255,255,255,0.65);
  transition: color 240ms;
}
.site-footer ul a:hover { color: var(--accent); }
.footer-contact-item {
  display: flex; align-items: start; gap: 8px;
  font-size: 14px; margin-bottom: 10px;
  color: rgba(255,255,255,0.65);
  word-break: break-word; overflow-wrap: anywhere;
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px; font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 520px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 12px 40px -8px rgba(45,24,16,0.18);
  transform: translateY(140%); opacity: 0;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), opacity 240ms;
  z-index: 9999;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner h4 { font-size: 15px; margin-bottom: 8px; }
.cookie-banner p { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.6; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btns button {
  flex: 1; min-height: 44px; min-width: 100px;
  padding: 10px 16px; border-radius: 8px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--line);
  transition: background 240ms, color 240ms, transform 180ms;
}
.cookie-btns .cookie-accept { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.cookie-btns .cookie-accept:hover { background: var(--ink); color: var(--surface); transform: translateY(-1px); }
.cookie-btns .cookie-reject { background: transparent; color: var(--ink); }
.cookie-btns .cookie-reject:hover { background: var(--surface-2); color: var(--ink); transform: translateY(-1px); }
.cookie-btns .cookie-settings { background: transparent; color: var(--ink-soft); }
.cookie-btns .cookie-settings:hover { background: var(--surface-2); color: var(--ink); transform: translateY(-1px); }

@media (min-width: 768px) {
  .cookie-banner { left: 24px; right: auto; max-width: 420px; }
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 650ms cubic-bezier(.16,.85,.45,1), transform 650ms cubic-bezier(.16,.85,.45,1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[style*="--i"] {
  transition-delay: calc(var(--i, 0) * 100ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
html.no-js .reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal { opacity: 1; transform: none; }

/* ===== COUNTER ANIMATION ===== */
.counter { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; }

/* ===== THEME ANIMATIONS (pastry) ===== */
@keyframes steamRise {
  0% { opacity: 0.6; transform: translateY(0) scaleX(1); }
  50% { opacity: 0.3; transform: translateY(-12px) scaleX(1.3); }
  100% { opacity: 0; transform: translateY(-28px) scaleX(0.8); }
}
.steam-particle {
  position: absolute; width: 6px; height: 6px;
  border-radius: 50%; background: rgba(232,93,117,0.2);
  animation: steamRise 3s ease-in-out infinite;
}

@keyframes whiskSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.whisk-anim { animation: whiskSpin 12s linear infinite; }

@keyframes sprinkleFall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(30px) rotate(180deg); opacity: 0; }
}
.sprinkle {
  position: absolute; width: 4px; height: 12px;
  border-radius: 2px;
  animation: sprinkleFall 4s ease-in-out infinite;
}

@keyframes icingWave {
  0%, 100% { d: path("M0,20 Q60,5 120,20 T240,20 T360,20"); }
  50% { d: path("M0,20 Q60,35 120,20 T240,20 T360,20"); }
}

@media (prefers-reduced-motion: reduce) {
  .steam-particle, .whisk-anim, .sprinkle, .confetti-dot { animation: none !important; }
  .piping-path { transition: none !important; stroke-dashoffset: 0 !important; }
}

/* ===== STATS ROW ===== */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px; text-align: center;
  padding: clamp(32px, 5vw, 56px) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: clamp(32px, 5vw, 48px) 0;
}
.stat-item .stat-num {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 600;
  color: var(--accent);
}
.stat-item .stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ===== PROCESS / TIMELINE ===== */
.process-timeline {
  position: relative; padding-left: 40px;
}
.process-timeline::before {
  content: ''; position: absolute; left: 14px; top: 0; bottom: 0;
  width: 2px; background: var(--line);
}
.process-step {
  position: relative; margin-bottom: 36px; padding-left: 24px;
}
.process-step::before {
  content: ''; position: absolute; left: -33px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
}
.process-step .step-time {
  font-size: 12px; font-weight: 600; color: var(--accent-2);
  letter-spacing: 0.06em; margin-bottom: 4px;
}
.process-step h4 { margin-bottom: 4px; }
.process-step p { font-size: 14px; color: var(--ink-soft); }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}
.pricing-card {
  background: var(--bg); border-radius: 14px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px -8px rgba(45,24,16,0.1); }
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232,93,117,0.12);
}
.pricing-card h3 { margin-bottom: 8px; }
.pricing-card .price {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 600;
  color: var(--accent); margin: 12px 0;
}
.pricing-card .price small { font-size: 14px; color: var(--ink-soft); font-weight: 400; }
.pricing-card ul { list-style: none; text-align: left; margin: 16px 0; }
.pricing-card ul li {
  padding: 6px 0; font-size: 14px;
  display: flex; align-items: start; gap: 8px;
}
.pricing-card ul li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2); margin-top: 7px; flex-shrink: 0;
}
.pricing-card .not-included { color: var(--ink-soft); font-style: italic; }
.pricing-card .not-included li::before { background: var(--line-strong); }
.pricing-disclaimer {
  text-align: center; font-size: 13px; color: var(--ink-soft);
  margin-top: 20px; font-style: italic;
}

@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; cursor: pointer; font-weight: 500;
  list-style: none; font-size: 16px;
  transition: color 240ms;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 20px; font-weight: 300;
  color: var(--accent); transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item > .answer {
  height: 0;
  padding: 0 clamp(18px, 3vw, 28px);
  overflow: hidden;
  transition: height 360ms cubic-bezier(.4,0,.2,1),
              padding-block-end 360ms cubic-bezier(.4,0,.2,1);
}
.faq-item[open] > .answer {
  height: auto;
  padding-block-end: 26px;
}
.faq-item .answer p { font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
@media (prefers-reduced-motion: reduce) {
  .faq-item > .answer { transition: none; }
}

/* ===== CONTACT PAGE ===== */
.contact-channels {
  display: grid; gap: 0;
}
.contact-row {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  transition: transform 240ms cubic-bezier(.4,0,.2,1), background 240ms;
  border-radius: 6px; padding-left: 8px;
}
.contact-row:hover { transform: translateX(4px); background: var(--surface-2); }
.contact-row svg {
  width: 20px; height: 20px; color: var(--ink-soft);
  transition: color 240ms;
}
.contact-row:hover svg { color: var(--accent); }
.contact-row .ch-label { font-size: 12px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.contact-row .ch-value { font-size: 15px; color: var(--ink); word-break: break-word; overflow-wrap: anywhere; }
.contact-row .ch-value a { color: var(--ink); }
.contact-row .ch-value a:hover { color: var(--accent); }

/* ===== INNER PAGE ===== */
.page-hero {
  padding: clamp(48px, 8vw, 100px) 0 clamp(32px, 5vw, 56px);
  text-align: center;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--ink-soft); max-width: 50ch; margin: 0 auto; }

.content-section { padding: clamp(24px, 4vw, 48px) 0; }
.content-section h2 { margin-bottom: 16px; margin-top: 32px; }
.content-section h3 { margin-bottom: 12px; margin-top: 24px; }
.content-section p { margin-bottom: 14px; line-height: 1.7; }
.content-section ul, .content-section ol { margin: 12px 0 16px 24px; }
.content-section li { margin-bottom: 6px; line-height: 1.7; }

/* ===== TABLE SCROLL ===== */
.table-scroll {
  display: block; width: 100%; max-width: 100%; min-width: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.table-scroll > table { margin: 0 !important; min-width: 480px; width: 100%; }
:where(*:has(> .table-scroll), *:has(> * > .table-scroll), *:has(> * > * > .table-scroll)) { min-width: 0; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
th { font-weight: 600; background: var(--surface-2); }

/* ===== 404 ===== */
.page-404 {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 48px 0;
}
.page-404 h1 { font-size: clamp(4rem, 10vw, 8rem); color: var(--accent); opacity: 0.3; }
.page-404 h2 { margin: 12px 0; }
.page-404 p { color: var(--ink-soft); margin-bottom: 24px; }

/* ===== PARALLAX HERO BG ===== */
.hero-bg-layer {
  position: absolute; inset: 0; z-index: 0;
  will-change: transform;
}

/* ===== PASTRY WARM GLOW EFFECTS ===== */
.curso-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -12px rgba(232,93,117,0.18), 0 0 24px -4px rgba(232,93,117,0.08);
}
.equipo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(45,24,16,0.12), 0 0 20px -4px rgba(232,93,117,0.06);
}
.voz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -8px rgba(45,24,16,0.1), 0 0 18px -4px rgba(232,93,117,0.06);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(45,24,16,0.1), 0 0 20px -4px rgba(232,93,117,0.06);
}

.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 280ms cubic-bezier(.16,.85,.45,1);
  pointer-events: none;
}
.btn-primary:hover::after { opacity: 1; }

.btn-ghost:hover {
  box-shadow: 0 4px 14px -4px rgba(232,93,117,0.15);
}

.nav-desktop a:hover::after,
.nav-desktop a.is-active::after {
  transform: scaleX(1);
}
.nav-desktop a::after {
  transition: transform 320ms cubic-bezier(.16,.85,.45,1);
}

.curso-card::before {
  transition: transform 400ms cubic-bezier(.16,.85,.45,1);
}

.metodo-step {
  border-radius: 12px;
  transition: background 280ms cubic-bezier(.16,.85,.45,1);
}
.metodo-step:hover {
  background: var(--surface);
}
.metodo-step:hover .step-icon {
  transform: scale(1.1) rotate(-3deg);
  background: rgba(232,93,117,0.16);
  box-shadow: 0 4px 16px -4px rgba(232,93,117,0.2);
}
.metodo-step .step-icon {
  transition: transform 320ms cubic-bezier(.16,.85,.45,1), background 280ms, box-shadow 280ms;
}

.faq-item summary {
  transition: color 240ms, padding-left 280ms cubic-bezier(.16,.85,.45,1);
}
.faq-item summary:hover {
  padding-left: 6px;
}

.contact-row {
  transition: transform 280ms cubic-bezier(.16,.85,.45,1), background 240ms, box-shadow 280ms;
}
.contact-row:hover {
  box-shadow: 0 4px 16px -6px rgba(45,24,16,0.08);
}

.hero-trust .badge {
  transition: transform 240ms cubic-bezier(.16,.85,.45,1), box-shadow 240ms;
}
.hero-trust .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -4px rgba(45,24,16,0.1);
}

.footer-contact-item {
  transition: transform 240ms cubic-bezier(.16,.85,.45,1);
  border-radius: 4px; padding: 4px 0;
}
.footer-contact-item:hover {
  transform: translateX(4px);
}

.mobile-drawer a {
  transition: color 240ms, transform 280ms cubic-bezier(.16,.85,.45,1), background 240ms;
  border-radius: 6px; padding-left: 8px; padding-right: 8px;
}
.mobile-drawer a:hover {
  color: var(--accent);
  transform: translateX(6px);
  background: rgba(232,93,117,0.04);
}

@media (prefers-reduced-motion: reduce) {
  .curso-card, .equipo-card, .voz-card, .pricing-card,
  .metodo-step, .metodo-step .step-icon,
  .hero-trust .badge, .contact-row, .footer-contact-item,
  .btn-primary, .btn-ghost, .mobile-drawer a,
  .faq-item summary, .nav-desktop a::after, .curso-card::before {
    transition: none !important;
  }
  .curso-card:hover, .equipo-card:hover, .voz-card:hover, .pricing-card:hover {
    transform: none;
  }
  .metodo-step:hover .step-icon { transform: none; }
  .hero-trust .badge:hover { transform: none; }
  .faq-item summary:hover { padding-left: 0; }
  .contact-row:hover { transform: none; }
  .footer-contact-item:hover { transform: none; }
  .mobile-drawer a:hover { transform: none; }
}

/* ===== COOKIE BANNER MOBILE FIX ===== */
@media (max-width: 480px) {
  .cookie-banner {
    bottom: 0; left: 0; right: 0;
    border-radius: 14px 14px 0 0;
    max-width: 100%;
    padding: 18px 18px calc(env(safe-area-inset-bottom, 8px) + 12px);
  }
  .cookie-btns { flex-direction: row; flex-wrap: wrap; }
  .cookie-btns button {
    min-height: 48px; font-size: 15px;
  }
}

/* ===== PRINT ===== */
@media print {
  .site-header, .site-footer, .cookie-banner, .nav-toggle, .mobile-drawer, .drawer-backdrop { display: none !important; }
  main { padding-top: 0 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
}
