/* Aprendiz de bruja — estilos. Paleta sacada de la portada de «Más humanos que nunca». */
:root {
  --ink: #060818;
  --night: #0a1030;
  --indigo: #1b2560;
  --blue: #3d7bff;
  --cyan: #8fd3ff;
  --gold: #f3c66b;
  --gold-2: #ffdf9e;
  --amber: #ff9a4d;
  --rose: #ff6f7d;
  --text: #eef0ff;
  --muted: #b8bedf;
  --glass: rgba(14, 20, 58, .55);
  --line: rgba(255, 223, 158, .22);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --script: 'Allura', 'Snell Roundhand', cursive;
  --night-o: 1; --dusk-o: 0; --sunset-o: 0;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-underline-offset: 3px; }
em { font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Cielo y lienzo ---------- */
.sky { position: fixed; inset: 0; z-index: -3; }
.sky__layer { position: absolute; inset: 0; transition: opacity .2s linear; }
.sky__night  { opacity: var(--night-o);  background: radial-gradient(120% 80% at 50% 0%, #121a4a 0%, #070a22 55%, #04050f 100%); }
.sky__dusk   { opacity: var(--dusk-o);   background: linear-gradient(180deg, #0b1440 0%, #2a2e78 45%, #5b3f8a 80%, #8a4d7c 100%); }
.sky__sunset { opacity: var(--sunset-o); background: linear-gradient(180deg, #1a1b4d 0%, #5a2e6b 30%, #c8505a 62%, #ff9a4d 85%, #ffc773 100%); }
#magia { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background .4s, backdrop-filter .4s;
}
.nav.is-solid { background: rgba(6, 8, 24, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__logo { font: 400 1.9rem/1 var(--script); color: var(--gold-2); text-decoration: none; }
.nav__links { display: flex; gap: clamp(10px, 2.4vw, 28px); align-items: center; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: .9rem; letter-spacing: .02em; }
.nav__links a:hover { color: var(--text); }
.nav__cta { border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px; color: var(--gold-2) !important; }
@media (max-width: 720px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 em { color: var(--gold-2); }
.kicker { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--text); }
p { color: var(--muted); margin: 0 0 1.1em; }
strong { color: var(--text); font-weight: 600; }
.center { text-align: center; }
.narrow { max-width: 42rem; margin-inline: auto; }
.hint { font-size: .9rem; color: var(--muted); opacity: .8; }

/* ---------- Estructura ---------- */
.section { position: relative; padding: clamp(80px, 13vw, 170px) 0; }
.wrap { width: min(1180px, 92vw); margin-inline: auto; position: relative; }
.narrow-wrap { width: min(760px, 92vw); }
.two { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.two--photo { grid-template-columns: .9fr 1.1fr; }
.two--book { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 900px) { .two, .two--photo, .two--book { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.hero__stage { height: clamp(210px, 33svh, 350px); flex: none; }
.hero__body {
  position: relative; z-index: 2; flex: 1; width: min(1180px, 92vw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero__text { text-align: left; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.hero__book { margin-top: 1rem; font-size: .88rem; color: var(--muted); text-shadow: 0 1px 10px #000; }
.hero__book em { color: var(--gold-2); }
.hero .scroll-hint { position: relative; z-index: 2; align-self: center; margin: 2.2rem 0 3svh; }

/* Portal: retrato de Elena dentro de un círculo mágico */
.portal { position: relative; margin: 0; width: min(460px, 100%); aspect-ratio: 1; justify-self: center; }
.portal__aura {
  position: absolute; inset: -14%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243,198,107,.38), rgba(61,123,255,.2) 55%, transparent 74%);
  filter: blur(10px); animation: breathe 6s ease-in-out infinite;
}
.portal__runes {
  position: absolute; inset: -5%; width: 110%; height: 110%; overflow: visible;
  fill: var(--gold-2); opacity: .8; font: 500 7.6px var(--sans); letter-spacing: .1em; text-transform: uppercase;
  animation: spin 70s linear infinite reverse;
}
.portal__ring {
  position: absolute; inset: 9%; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 0deg, var(--gold-2), transparent 22%, var(--cyan) 48%, transparent 72%, var(--amber) 88%, var(--gold-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 10px rgba(243,198,107,.8)); animation: spin 9s linear infinite;
}
.portal__photo {
  position: absolute; inset: 10.5%; width: 79%; height: 79%; border-radius: 50%;
  object-fit: cover; object-position: 50% 30%;
  box-shadow: 0 30px 90px -20px rgba(61,123,255,.65), 0 0 60px -10px rgba(243,198,107,.5);
}
.portal__orbit { position: absolute; inset: 3%; border-radius: 50%; pointer-events: none; animation: spin 8s linear infinite; }
.portal__orbit i {
  position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 3px var(--gold-2), 0 0 28px 10px rgba(243,198,107,.55);
}
.portal__orbit--2 { inset: 16%; animation-duration: 12s; animation-direction: reverse; }
.portal__orbit--2 i { background: #eaf6ff; box-shadow: 0 0 10px 3px var(--cyan), 0 0 26px 9px rgba(143,211,255,.5); }
.portal__book {
  position: absolute; right: -3%; bottom: 0; width: 28%; display: block; z-index: 3;
  border-radius: 2px 6px 6px 2px; overflow: hidden; rotate: 9deg;
  box-shadow: -12px 20px 40px -8px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.15), 0 0 46px -6px rgba(243,198,107,.7);
  animation: bob 5s ease-in-out infinite; transition: rotate .35s, scale .35s;
}
.portal__book img { display: block; width: 100%; height: auto; }
.portal__book:hover, .portal__book:focus-visible { rotate: 0deg; scale: 1.08; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .65; transform: scale(1.05); } }
@keyframes bob { 50% { translate: 0 -12px; } }

@media (max-width: 900px) {
  .hero__stage { height: clamp(190px, 30svh, 270px); }
  .hero__body { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero__text { text-align: center; }
  .hero__ctas { justify-content: center; }
  .portal { width: min(330px, 82vw); }
}
.hero__title { font-size: clamp(1.6rem, 3.6vw, 2.7rem); font-weight: 400; color: var(--text); text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.hero__title em { color: var(--gold-2); font-style: italic; }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--text); text-shadow: 0 1px 14px #000, 0 0 30px rgba(0,0,0,.8); }
.hero__city {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 48svh; object-fit: cover; object-position: center 70%;
  z-index: 0; opacity: .9;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 70%, transparent 100%);
}
.scroll-hint { display: inline-block; margin-top: 1.4rem; color: var(--gold-2); text-decoration: none; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; animation: float 2.6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(8px); } }

/* ---------- Historia ---------- */
.quote {
  margin: 1.6rem 0; padding: 1.4rem 1.6rem; border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(243,198,107,.1), transparent);
  font: italic 500 clamp(1.5rem, 2.6vw, 2rem)/1.3 var(--serif); color: var(--gold-2);
}
.quote cite { display: block; margin-top: .8rem; font: normal 400 .82rem/1.5 var(--sans); color: var(--muted); }
.frame { margin: 0; }
.frame img { border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px var(--line); }
.frame figcaption { font-size: .88rem; color: var(--muted); margin-top: .8rem; text-align: center; font-style: italic; }
.timeline { list-style: none; padding: 0; margin-top: clamp(60px, 9vw, 110px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 9px; left: 4%; right: 4%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.timeline li { padding-top: 34px; position: relative; text-align: center; }
.timeline li::before { content: ''; position: absolute; top: 3px; left: 50%; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 18px var(--gold); }
.timeline__when { display: block; font: 500 1.25rem/1.2 var(--serif); color: var(--gold-2); margin-bottom: .3rem; }
.timeline__what { font-size: .95rem; color: var(--muted); }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--gold), transparent); }
  .timeline li { text-align: left; padding: 0 0 0 34px; }
  .timeline li::before { left: 6px; top: 8px; }
}

/* ---------- Cartas dicen / hace ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; perspective: 1200px; position: relative; z-index: 2; }
@media (max-width: 820px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.card { position: relative; height: 190px; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.8,.2,1); font: inherit; color: inherit; }
.card.is-flipped { transform: rotateY(180deg); }
@media (hover: hover) { .card:hover { transform: rotateY(180deg); } }
.card__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  padding: 18px; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center;
  border: 1px solid var(--line);
}
.card__face small { font: 500 .7rem/1 var(--sans); letter-spacing: .25em; text-transform: uppercase; opacity: .75; }
.card__front { background: var(--glass); backdrop-filter: blur(6px); font: 400 2.4rem/1 var(--script); color: var(--cyan); }
.card__back { transform: rotateY(180deg); background: linear-gradient(145deg, rgba(243,198,107,.22), rgba(255,111,125,.16)); font: 500 1.35rem/1.25 var(--serif); color: var(--gold-2); }
.broom { position: absolute; right: -6vw; top: -140px; width: min(300px, 32vw); opacity: .55; z-index: 1; pointer-events: none; mix-blend-mode: screen; transform: rotate(8deg); -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }
@media (max-width: 820px) { .broom { opacity: .3; } }

/* ---------- Elena ---------- */
.portrait { margin: 0; position: relative; }
.portrait img { border-radius: 50% 50% 24px 24px / 38% 38% 24px 24px; box-shadow: 0 40px 100px -30px rgba(61,123,255,.55), 0 0 0 1px var(--line); filter: saturate(1.05) contrast(1.03); }
.portrait::after { content: ''; position: absolute; inset: -14px; border-radius: inherit; border: 1px dashed rgba(255,223,158,.25); pointer-events: none; border-radius: 50% 50% 30px 30px / 38% 38% 30px 30px; }
.facts { list-style: none; padding: 0; margin: 1.4rem 0; }
.facts li { padding: .55rem 0 .55rem 1.8rem; position: relative; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,.06); }
.facts li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); }
.source { font-size: .82rem; opacity: .75; }

/* ---------- Hechizo ---------- */
.spell { margin-top: 44px; display: grid; gap: 28px; }
.spell__orbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.orb {
  font: 500 1rem/1 var(--serif); font-size: 1.15rem; color: var(--text); cursor: pointer;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 30%, rgba(143,211,255,.25), rgba(14,20,58,.6));
  transition: transform .3s, box-shadow .3s, background .3s;
}
.orb:hover { transform: translateY(-3px); box-shadow: 0 0 26px rgba(143,211,255,.45); }
.orb.is-on { background: radial-gradient(circle at 30% 30%, rgba(255,223,158,.65), rgba(243,154,77,.35)); color: var(--ink); box-shadow: 0 0 34px rgba(243,198,107,.7); }
.spell__out { position: relative; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 100px -40px #000, 0 0 0 1px var(--line); }
.spell__out img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.spell__card {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); width: min(640px, 88%);
  padding: 22px 26px; border-radius: 20px; text-align: center;
  background: rgba(6,8,24,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line);
}
.spell__label { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 .4rem; }
.spell__q { font: italic 500 clamp(1.25rem, 2.4vw, 1.75rem)/1.3 var(--serif); color: var(--text); margin: 0 0 .5rem; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
.spell__q.is-new { animation: appear .9s ease both; }
@keyframes appear { from { opacity: 0; filter: blur(8px); transform: translateY(8px); } }
.spell__note { font-size: .78rem; margin: 0; opacity: .75; }
@media (max-width: 640px) {
  .spell__out img { aspect-ratio: 4/5; }
  .spell__card { bottom: 4%; padding: 16px; }
}

/* ---------- Libro 3D ---------- */
.book-stage { position: relative; display: grid; place-items: center; perspective: 1600px; min-height: 520px; }
.book { --w: min(300px, 62vw); --h: calc(var(--w) * 1.506); --d: 26px; width: var(--w); height: var(--h); position: relative; transform-style: preserve-3d; transform: rotateY(-28deg) rotateX(6deg); transition: transform .15s ease-out; }
.book > div { position: absolute; }
.book__front { inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px 8px 8px 2px; overflow: hidden; box-shadow: inset 6px 0 10px rgba(0,0,0,.35); }
.book__front img { width: 100%; height: 100%; object-fit: cover; }
.book__front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 60%); background-size: 250% 100%; animation: shine 6s ease-in-out infinite; }
@keyframes shine { 0%, 60% { background-position: 120% 0; } 100% { background-position: -40% 0; } }
.book__back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: #0d1640; border-radius: 8px 2px 2px 8px; }
.book__pages { top: 4px; bottom: 4px; left: calc(var(--w) - var(--d) / 2 - 3px); width: var(--d); transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #f4ecd8 0 2px, #d9cfb6 2px 3px); }
.book__spine { top: 0; bottom: 0; left: calc(var(--d) / -2); width: var(--d); transform: rotateY(-90deg); background: linear-gradient(90deg, #0a0f33, #1b2560, #0a0f33); display: flex; align-items: center; justify-content: center; }
.book__spine span { writing-mode: vertical-rl; font: 500 .62rem/1 var(--sans); letter-spacing: .12em; color: var(--gold-2); white-space: nowrap; }
.book-glow { position: absolute; width: 70%; height: 30px; bottom: 20px; left: 15%; background: radial-gradient(closest-side, rgba(243,198,107,.55), transparent); filter: blur(12px); transform: translateZ(-1px); }
.subtitle { font: italic 400 1.35rem/1.35 var(--serif); color: var(--text); }
.byline { font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.byline span { text-transform: none; color: var(--muted); letter-spacing: 0; margin: 0 .3em; }
.blurb { margin: 1.4rem 0; padding: 0 0 0 1.2rem; border-left: 2px solid var(--line); }
.blurb p { color: var(--text); }
.blurb cite { font-size: .8rem; color: var(--muted); font-style: normal; }
.specs { display: flex; gap: 28px; margin: 1.4rem 0 2rem; flex-wrap: wrap; }
.specs div { display: flex; flex-direction: column; }
.specs dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.specs dd { margin: 0; font: 500 1.3rem/1.3 var(--serif); color: var(--text); }

/* ---------- Botones ---------- */
.buy { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.buy--center { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 2.4rem; }
.btn { display: inline-flex; align-items: center; gap: .6em; padding: 16px 30px; border-radius: 999px; text-decoration: none; font: 600 1rem/1 var(--sans); letter-spacing: .02em; transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.btn--gold { color: #1a1206; background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--amber)); box-shadow: 0 10px 40px -8px rgba(243,154,77,.7); }
.btn--gold::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); animation: btnshine 4s ease-in-out infinite; }
@keyframes btnshine { 0%, 65% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn--gold:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 50px -6px rgba(243,154,77,.9); }
.btn--ghost { color: var(--text); border: 1px solid rgba(255,255,255,.4); background: rgba(6,8,24,.25); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }
.buy__alt { font-size: .85rem; margin: 0; }

/* ---------- Atardecer / carta ---------- */
.section--sunset { padding-top: clamp(120px, 18vw, 240px); overflow: hidden; }
.tree { position: absolute; inset: 0; z-index: -1; }
.tree img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform-origin: 50% 100%; transform: scale(var(--tree-s, 1)); opacity: var(--tree-o, .2); transition: transform .1s linear, opacity .1s linear;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%); }
.letter { width: min(720px, 90vw); text-align: center; background: rgba(6,8,24,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 28px; padding: clamp(32px, 6vw, 64px); }
.letter p { color: var(--text); font: 400 1.3rem/1.6 var(--serif); }
.letter__sign { font-style: italic; }
.letter__sign span { font: 400 2.4rem/1.2 var(--script); color: var(--gold-2); }
.punch { margin-top: 2.2rem; font: italic 500 clamp(1.6rem, 3.4vw, 2.4rem)/1.25 var(--serif) !important; color: var(--text) !important; }
.punch strong { color: var(--gold-2); }
.punch__src { font: 400 .82rem/1.4 var(--sans) !important; color: var(--muted) !important; }

/* ---------- FAQ ---------- */
.section--faq { padding-top: 60px; }
details { border-bottom: 1px solid rgba(255,255,255,.12); padding: 1rem 0; }
summary { cursor: pointer; font: 500 1.3rem/1.35 var(--serif); color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold); font-family: var(--sans); transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: .8rem 0 0; }

/* ---------- Pie ---------- */
.footer { text-align: center; padding: 60px 20px 50px; background: rgba(6,8,24,.7); border-top: 1px solid var(--line); }
.footer__logo { font: 400 2.4rem/1 var(--script); color: var(--gold-2); margin-bottom: .6rem; }
.footer p { font-size: .9rem; }
.footer__legal a { color: var(--muted); font-size: .8rem; }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1), filter 1.1s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.cards .reveal:nth-child(2) { transition-delay: .08s; } .cards .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4) { transition-delay: .24s; } .cards .reveal:nth-child(5) { transition-delay: .32s; } .cards .reveal:nth-child(6) { transition-delay: .4s; }
.cards .reveal.in.is-flipped { transform: rotateY(180deg); }
@media (hover: hover) { .cards .reveal.in:hover { transform: rotateY(180deg); } }

/* ---------- Sin movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
