/* =============================================================
   ERNESTO · Tarot iberoamericano — styles.css
   Single file, sectioned. No preprocessor. No build step.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 40%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

:root {
  --bg: #150b13;
  --bg-2: #1c0f19;
  --bg-3: #241521;
  --cream: #f3e9e6;
  --cream-2: #ddccd2;
  --cream-3: #93818c;
  --accent: #9a3d61;
  --accent-2: #601f3a;
  --gold: #c9a961;
  --gold-soft: rgba(201, 169, 97, 0.5);
  --line: rgba(243, 233, 230, 0.14);

  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
}
em { font-style: italic; color: var(--gold); }
::selection { background: var(--accent); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

/* =============================================================
   4. Typography scale
   ============================================================= */
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 1.3rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: .5rem; }
.section p { max-width: 56ch; color: var(--cream-2); font-weight: 300; }
.section > .container > p,
.concept-text > p { font-size: 1.05rem; margin-bottom: 1.1rem; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s, border-color .3s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--cream);
  box-shadow: 0 12px 30px -8px rgba(154, 61, 97, 0.55);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -10px rgba(154, 61, 97, 0.65);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--cream);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--gold-soft);
  background: rgba(201, 169, 97, 0.08);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

/* Cursor */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px; background: var(--cream); border-radius: 50%; }
.cursor-ring {
  width: 30px; height: 30px; margin: -15px;
  border: 1px solid var(--cream); border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
}
.cursor.is-interactive .cursor-ring { width: 46px; height: 46px; margin: -23px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  pointer-events: auto;
  transition: opacity .8s, clip-path 1s;
  animation: splashSafety .01s 3.4s forwards;
}
.splash-glyph {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  animation: splashPulse 1.6s ease-in-out infinite;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
@keyframes splashPulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

/* =============================================================
   6. Navigation
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(21, 11, 19, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-link {
  position: relative; font-size: 0.92rem; color: var(--cream-2); padding: 0.25rem 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.nav-burger {
  display: flex; flex-direction: column; gap: 5px; padding: 0.5rem;
}
.nav-burger span { width: 22px; height: 1px; background: var(--cream); transition: transform .3s, opacity .3s; }
.nav-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg);
  display: grid; place-items: center; gap: 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-open .nav-mobile { clip-path: inset(0); }
.nav-mobile a { font-family: var(--serif); font-size: 1.7rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
}

/* =============================================================
   7. Sections
   ============================================================= */
.section { padding-block: clamp(4.5rem, 10vw, 7.5rem); position: relative; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding-block: 6rem 4rem;
}
.hero-mesh {
  position: absolute; inset: -15%; z-index: -3;
  background:
    radial-gradient(50% 42% at var(--mesh-x) var(--mesh-y), rgba(154, 61, 97, .55), transparent 65%),
    conic-gradient(from var(--mesh-angle), rgba(201, 169, 97, .16), rgba(96, 31, 58, .22), rgba(201, 169, 97, .16));
  filter: blur(90px) saturate(120%);
  opacity: .85;
  animation: meshShift 26s linear infinite;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 32%; --mesh-y: 34%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 68%; --mesh-y: 58%; }
  100% { --mesh-angle: 360deg; --mesh-x: 32%; --mesh-y: 34%; }
}
.hero-stars {
  position: absolute; inset: 0; z-index: -2; opacity: .55;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, var(--cream), transparent 60%),
    radial-gradient(1.2px 1.2px at 82% 16%, var(--cream), transparent 60%),
    radial-gradient(1.6px 1.6px at 68% 74%, var(--gold), transparent 60%),
    radial-gradient(1.2px 1.2px at 24% 78%, var(--cream), transparent 60%),
    radial-gradient(1.4px 1.4px at 92% 58%, var(--cream), transparent 60%),
    radial-gradient(1.1px 1.1px at 44% 12%, var(--cream), transparent 60%),
    radial-gradient(1.3px 1.3px at 6% 60%, var(--gold), transparent 60%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  opacity: .1; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.hero-inner { max-width: 40rem; }
.hero-glyph {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.hero-title {
  font-size: clamp(2.6rem, 11vw, 6rem);
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
  margin-block: 0.3rem 1.2rem;
}
.split-char {
  display: inline-block;
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft);
}
.is-split-ready .split-char { opacity: 1; transform: none; }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--cream-2);
  max-width: 34ch; margin-inline: auto;
}
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  margin-top: 2.2rem;
}

/* --- Concept / about --- */
.concept-grid {
  display: grid; gap: 3rem;
  align-items: center;
}
.concept-figure {
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  margin-inline: auto;
}
.concept-figure img {
  width: min(300px, 70vw);
  border-radius: 14px;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  transition: transform .8s var(--ease-soft), filter .55s;
}
.concept-figure:hover img {
  transform: scale(1.03);
  filter: saturate(1.08) brightness(1.03);
}
.concept-figure figcaption {
  font-size: 0.8rem; color: var(--cream-3); letter-spacing: 0.02em;
}
.concept-text h2 { max-width: 14ch; }
.concept-stat {
  display: flex; align-items: baseline; gap: 1rem;
  margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.stat-number { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--cream-3); line-height: 1.4; }

/* --- Método (vídeo) --- */
.metodo-grid { display: flex; flex-direction: column; gap: 2.4rem; }
.metodo-text { max-width: 46ch; margin-inline: auto; text-align: center; }
.metodo-text h2 { max-width: none; }
.metodo-video {
  display: flex; justify-content: center;
  margin-inline: auto;
  width: 100%;
}
.metodo-video video {
  width: min(880px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  background: var(--bg-3);
}

/* --- Modalidades --- */
.modalidades h2 { max-width: 16ch; }
.modes-grid {
  display: grid; gap: 1.25rem;
  margin-top: 2.5rem;
}
.mode-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; isolation: isolate;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), border-color .35s;
}
.mode-card:hover { transition-duration: .15s; border-color: var(--gold-soft); }
.mode-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(201, 169, 97, .18), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.mode-card:hover::before { opacity: 1; }
.mode-icon { display: inline-flex; margin-bottom: 1.2rem; }
.mode-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mode-card p { color: var(--cream-2); font-size: 0.95rem; }

/* --- Prensa --- */
.prensa { position: relative; isolation: isolate; text-align: center; overflow: hidden; }
.prensa-mesh {
  position: absolute; inset: -20%; z-index: -1;
  background: radial-gradient(45% 40% at 50% 40%, rgba(201, 169, 97, .16), transparent 70%);
  filter: blur(70px);
}
.prensa-inner { max-width: 34rem; margin-inline: auto; }
.prensa-inner h2 { max-width: 20ch; margin-inline: auto; }
.press-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 1.8rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--gold-soft);
  font-size: 0.95rem; color: var(--gold);
  transition: border-color .3s, gap .3s var(--ease-out);
}
.press-link:hover { border-color: var(--gold); gap: 0.85rem; }
.press-link svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* --- Footer / contacto --- */
.footer {
  padding-block: clamp(4rem, 9vw, 6.5rem) 2.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer-glyph { font-family: var(--serif); color: var(--gold); font-size: 1.6rem; margin-bottom: 0.6rem; }
.footer-inner h2 { max-width: 18ch; margin-inline: auto; }
.footer-inner .btn { margin-top: 1.8rem; }
.footer-contact-hint { margin-top: 1rem; color: var(--cream-3); font-size: 0.88rem; }
.footer-info { margin-top: 2rem; color: var(--cream-3); font-size: 0.85rem; line-height: 1.7; }
.footer-meta { margin-top: 2rem; color: var(--cream-3); font-size: 0.8rem; }

/* =============================================================
   8. Reveal system (universal)
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   9. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .hero-actions { gap: 1.25rem; }
}
@media (min-width: 960px) {
  .concept-grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; }
  .metodo-grid { gap: 3rem; }
  .modes-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .container { padding-inline: var(--gutter); }
}

/* =============================================================
   10. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation-duration: 60s; }
  .splash-glyph { animation: none; opacity: 1; }
  /* Hover, tilt, fades, reveals and smooth scroll are intentionally NOT disabled here. */
}
