/* Tarot Cortés v.02 - landing de captación, estilo cinematográfico.
   Tema fijo oscuro (decisión de marca: grabado sobre negro). Un solo acento: bermellón.
   Radios: interactivos en pastilla, superficies 18px, cartas 10px. */
:root {
  --bg: #08080a;
  --ink: #ebe8e4;
  --muted: #a39f99;
  --line: rgba(235, 232, 228, .14);
  --accent: #ff4b2b;
  --accent-ink: #14090a;
  --r-s: 18px;
  --r-card: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Geist", system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -.02em; line-height: .98; }
p { margin: 0; }
i, em { font-style: italic; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1280px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 999px; }

/* Capas fijas */
#embers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; mix-blend-mode: screen; opacity: .8; }
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* Vidrio (aproximación web con backdrop-filter) */
.glass { background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 20px 50px -20px rgba(0,0,0,.7); }
@media (prefers-reduced-transparency: reduce) { .glass { background: #17171a; backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Botón */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; border: 0; cursor: pointer; padding: 16px 28px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 .98rem/1 var(--sans); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .2s; box-shadow: 0 10px 30px -10px rgba(255,75,43,.6); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(255,75,43,.75); background: #ff6246; }
.btn:active { transform: translateY(1px) scale(.97); }
.btn--sm { padding: 12px 20px; font-size: .9rem; }

/* Nav */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding-inline: 16px; pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: clamp(16px, 4vw, 48px); padding: 8px 8px 8px 24px; border-radius: 999px; max-width: 100%; }
.logo { font: 400 1.5rem/1 var(--serif); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.logo i { color: var(--accent); }
.nav__links { display: flex; gap: 28px; font-size: .92rem; color: var(--muted); }
.nav__links a { text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav__links { display: none; } .nav { gap: 16px; } }

/* Hero */
.hero { position: relative; min-height: 100dvh; display: grid; align-items: center; padding-block: 104px 56px; overflow: clip; isolation: isolate; }
.hero__bg { position: absolute; inset: -4%; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04) translate3d(-1.5%, 0, 0); } to { transform: scale(1.14) translate3d(2%, -2%, 0); } }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,8,10,.92) 0%, rgba(8,8,10,.55) 45%, rgba(8,8,10,.15) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 28%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.eyebrow { font: 500 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 26px; }
h1 { font-size: clamp(3.4rem, 8.4vw, 8rem); font-weight: 300; line-height: .92; }
h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
h1 .line > span { display: inline-block; }
h1 i { color: var(--accent); font-weight: 300; padding-right: .06em; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 34ch; margin-top: 30px; }

/* Captura */
.capture { position: relative; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 36px; padding: 8px; border-radius: 999px; max-width: 520px; }
.capture input[type="email"] { flex: 1 1 200px; min-width: 0; background: transparent; border: 0; color: var(--ink); font: inherit; padding: 14px 20px; border-radius: 999px; }
.capture input::placeholder { color: #bdb8b1; opacity: .85; }
.capture input[type="email"]:focus { outline: none; }
.capture:focus-within { border-color: rgba(255,75,43,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 4px rgba(255,75,43,.16), 0 20px 50px -20px rgba(0,0,0,.7); }
.capture.is-bad { animation: shake .4s var(--ease); border-color: #ff7a63; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.capture__msg { flex-basis: 100%; padding: 0 20px 6px; font-size: .9rem; min-height: 0; color: #ffb3a6; }
.capture__msg:empty { display: none; }
.capture.is-ok .capture__msg { color: #f2efe9; }
.capture--lg { max-width: 640px; border-radius: 28px; padding: 10px; }
.capture--lg .consent { flex-basis: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 6px 14px 4px; color: var(--muted); font-size: .88rem; line-height: 1.45; cursor: pointer; }
.consent input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.consent a { color: var(--ink); text-underline-offset: 3px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 520px) { .capture { border-radius: 24px; } .capture .btn { width: 100%; } }

/* Escenario de cartas */
.stage { position: relative; height: clamp(420px, 56vw, 700px); perspective: 1400px; }
.stage__glow { position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(255,75,43,.28), transparent 70%); filter: blur(30px); animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; transform: scale(1.08); } }
.tilt { position: absolute; margin: 0; left: 50%; top: 50%; width: clamp(180px, 22vw, 320px); aspect-ratio: 2 / 3; border-radius: var(--r-card); overflow: hidden; box-shadow: 0 40px 80px -30px #000, 0 0 0 1px rgba(255,255,255,.1); transform-style: preserve-3d; will-change: transform; }
.tilt img { width: 100%; height: 100%; object-fit: cover; }
.tilt--main { z-index: 3; transform: translate(-50%, -50%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }
.tilt--side { opacity: .9; filter: brightness(.7) saturate(.9); }
.tilt--l { transform: translate(-128%, -46%) rotate(-11deg) scale(.88); z-index: 1; }
.tilt--r { transform: translate(28%, -50%) rotate(10deg) scale(.88); z-index: 2; }
.sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.28), transparent 45%); mix-blend-mode: soft-light; opacity: var(--so, 0); transition: opacity .3s; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .stage { order: -1; height: 360px; margin-top: 8px; }
  .tilt { width: 170px; }
  .hero { padding-top: 96px; }
}

/* Cartas: pan horizontal */
.cards { position: relative; background: var(--bg); }
.cards__pin { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 5vh, 56px); padding-block: 90px 40px; overflow: hidden; }
.cards__head h2 { font-size: clamp(2.4rem, 5.4vw, 5rem); }
.cards__track { display: flex; gap: clamp(16px, 2.4vw, 32px); padding-inline: max(20px, calc((100vw - 1280px) / 2)); width: max-content; }
.c { flex: none; width: clamp(200px, 24vw, 340px); }
.c img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-card); box-shadow: 0 30px 60px -28px #000, 0 0 0 1px rgba(255,255,255,.08); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.c:hover img { transform: translateY(-8px); box-shadow: 0 40px 70px -26px rgba(255,75,43,.35), 0 0 0 1px rgba(255,75,43,.4); }
.c__txt { padding-top: 16px; }
.c h3 { font-size: 1.8rem; }
.c p { color: var(--muted); font-size: .98rem; margin-top: 6px; max-width: 26ch; }
.c--end { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; width: clamp(260px, 30vw, 420px); }
.c--end p { font: 300 clamp(1.8rem, 3vw, 2.8rem)/1.05 var(--serif); color: var(--ink); max-width: none; margin: 0; }
.c--end i { color: var(--accent); }
@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .cards__pin { min-height: 0; overflow: visible; }
  .cards__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-width: none; }
  .cards__track::-webkit-scrollbar { display: none; }
  .c { scroll-snap-align: center; width: min(72vw, 300px); }
  .c--end { width: min(72vw, 300px); }
}

/* Manifiesto */
.manifesto { padding-block: clamp(100px, 18vw, 240px); background: radial-gradient(ellipse at 50% 50%, rgba(255,75,43,.07), transparent 60%), var(--bg); }
.manifesto__text { font: 300 clamp(2rem, 5.2vw, 4.8rem)/1.08 var(--serif); letter-spacing: -.02em; max-width: 24ch; margin-inline: auto; text-wrap: balance; }
.manifesto__text .w { opacity: .16; transition: opacity .35s linear, color .35s linear; }
.manifesto__text .w.on { opacity: 1; }
.manifesto__text .w.em.on { color: var(--accent); font-style: italic; }

/* Acceso: bento */
.perks { padding-block: clamp(72px, 11vw, 150px); }
.perks h2 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); max-width: 16ch; }
.bento { display: grid; grid-template-columns: 1fr 1fr 1.2fr; grid-template-rows: 300px 260px; gap: 16px; margin-top: clamp(36px, 5vw, 64px); }
.p { position: relative; border-radius: var(--r-s); overflow: hidden; padding: clamp(22px, 2.4vw, 34px); display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); }
.p h3 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); margin-bottom: 8px; position: relative; }
.p p { color: var(--muted); max-width: 30ch; position: relative; }
.p--img { grid-column: 1; grid-row: 1 / 3; }
.p--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.p--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,8,10,.92), rgba(8,8,10,.1) 65%); }
.p--img:hover img { transform: scale(1.05); }
.p--img .p__txt { position: relative; z-index: 1; }
.p--red { background: radial-gradient(circle at 0% 100%, #ff4b2b 0%, #8a1d0e 55%, #2a0a07 100%); border-color: transparent; }
.p--red p { color: #ffd9d1; }
.p--red { grid-column: 2; grid-row: 1; }
.p--glass { grid-column: 2; grid-row: 2; background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); }
.p--wide { grid-column: 3; grid-row: 1 / 3; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; grid-template-rows: none; } .p, .p--img, .p--wide, .p--red, .p--glass { grid-column: auto; grid-row: auto; min-height: 260px; } }

/* Final */
.final { position: relative; min-height: 100dvh; display: grid; align-items: center; isolation: isolate; overflow: clip; padding-block: 100px; }
.final__bg { position: absolute; inset: 0; z-index: -2; }
.final__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(8,8,10,.05) 38%, var(--bg) 100%); }
.final h2 { font-size: clamp(3rem, 8vw, 7.4rem); }
.final .lead { max-width: 40ch; }

/* Pie */
.foot { padding-block: 36px 44px; border-top: 1px solid var(--line); position: relative; z-index: 3; background: var(--bg); }
.foot__in { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.foot nav { display: flex; gap: 24px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* Movimiento de entrada (jerarquía de lectura) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .line > span { transform: translateY(110%); animation: up 1.1s var(--ease) forwards; }
  .js .hero h1 .line:nth-child(2) > span { animation-delay: .1s; } .js .hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
  .js .hero .eyebrow, .js .hero .lead, .js .hero .capture, .js .stage { opacity: 0; animation: fade 1.1s var(--ease) forwards; }
  .js .hero .eyebrow { animation-delay: .05s; } .js .hero .lead { animation-delay: .4s; } .js .hero .capture { animation-delay: .55s; } .js .stage { animation-delay: .3s; }
  @keyframes up { to { transform: none; } }
  @keyframes fade { to { opacity: 1; } }
  .js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } .hero__bg img, .stage__glow, .tilt--main { animation: none; } #embers { display: none; }
  .manifesto__text .w { opacity: 1; }
}

/* Film: vídeo de marca. El negro del vídeo se funde con la página mediante máscara de bordes. */
.film { position: relative; z-index: 3; padding-block: 0; background: var(--bg); }
.film__frame { position: relative; width: min(1600px, 100%); margin-inline: auto; aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(0deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(0deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-composite: intersect; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--bg); }
.film__sound { position: absolute; right: clamp(16px, 4vw, 56px); bottom: clamp(30px, 8%, 70px); z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; color: var(--ink); font: 500 .88rem/1 var(--sans); cursor: pointer; transition: transform .4s var(--ease), border-color .2s; }
.film__sound:hover { transform: translateY(-2px); border-color: rgba(255,75,43,.6); }
.film__sound:active { transform: scale(.97); }
.film__sound .on { display: none; } .film__sound[aria-pressed="true"] .on { display: inline; } .film__sound[aria-pressed="true"] .off { display: none; }
@media (max-width: 720px) {
  .film__frame { aspect-ratio: 9 / 14; max-height: 92dvh; -webkit-mask-image: linear-gradient(0deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(0deg, transparent, #000 14%, #000 86%, transparent); }
}

/* Sello de marca */
.seal { position: relative; z-index: 3; padding-block: clamp(24px, 6vw, 80px); background: var(--bg); }
.seal__img { width: min(1500px, 100%); margin-inline: auto; aspect-ratio: 1344 / 752; object-fit: cover; -webkit-mask-image: radial-gradient(ellipse 62% 66% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 62% 66% at 50% 50%, #000 55%, transparent 100%); }
.foot__seal img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; }
.p--wide img { object-position: 50% 30%; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
