/* RAIA · Luz propia para tu negocio */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-vf-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --ink-0: #07051a;
  --ink-1: #0b0820;
  --ink-2: #120d2e;
  --violet-1: #2a1f5c;
  --violet-2: #5b45c9;
  --gold: #c9a55c;
  --gold-hi: #f1d79c;
  --gold-lo: #8d6c2c;
  --text: #f3eee3;
  --muted: #a9a3c2;
  --line: rgba(243, 238, 227, 0.12);

  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-move: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap: cubic-bezier(0.2, 0, 0, 1);

  --radius-l: 28px;
  --radius-m: 20px;
  --radius-s: 14px;
  --gutter: clamp(16px, 5vw, 48px);
  --nav-h: 64px;
  --tab-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink-1); scrollbar-color: var(--violet-1) var(--ink-0); }
body {
  margin: 0;
  min-height: 100svh;
  /* Transparente: el fondo vivo (z-index negativo) debe verse por debajo del contenido. */
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw + 11px, 18px);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(201, 165, 92, 0.35); color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--gold); color: var(--ink-1); font-weight: 600; transition: transform 200ms var(--ease-out); }
.skip:focus-visible { transform: translateY(76px); }

/* ---------- Atmósfera ---------- */
.atmos {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 8%, rgba(91, 69, 201, 0.32), transparent 70%),
    radial-gradient(55% 45% at 8% 92%, rgba(141, 108, 44, 0.16), transparent 70%),
    radial-gradient(80% 70% at 50% 50%, var(--ink-2), var(--ink-1) 70%, var(--ink-0));
}
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; view-transition-name: bg; }
.veil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(4, 3, 14, 0.65));
}

/* ---------- Cristal líquido ---------- */
.glass {
  --sx: 30%; --sy: 0%;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025) 45%, rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 24px 60px -24px rgba(0, 0, 0, 0.7);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: radial-gradient(140px 140px at var(--sx) var(--sy), rgba(255, 236, 196, 0.85), rgba(201, 165, 92, 0.25) 45%, transparent 75%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.10));
  -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);
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(260px 200px at var(--sx) var(--sy), rgba(241, 215, 156, 0.14), transparent 70%);
}
/* Refracción real (solo Chromium): en lo que flota, no en cada tarjeta, para no castigar el rendimiento. */
html.lg-refract .tabs, html.lg-refract .btn-glass, html.lg-refract .service, html.lg-refract .contact, html.lg-refract .portrait {
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: url(#lg-refract) blur(14px) saturate(170%);
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed; z-index: 40; top: 14px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 0 var(--gutter);
  pointer-events: none;
  view-transition-name: nav;
}
.brand { pointer-events: auto; position: absolute; left: var(--gutter); top: 50%; translate: 0 -50%; color: var(--gold); padding: 8px; border-radius: 12px; }
.brand-logo { width: 104px; height: 38px; filter: drop-shadow(0 0 18px rgba(201, 165, 92, 0.25)); transition: filter 300ms var(--ease-out); }
.brand:hover .brand-logo { filter: drop-shadow(0 0 22px rgba(241, 215, 156, 0.5)); }

.tabs {
  pointer-events: auto;
  display: flex; align-items: center; gap: 2px;
  padding: 6px; border-radius: 999px;
}
.tab-indicator {
  position: absolute; z-index: 0; top: 6px; left: 0; height: calc(100% - 12px); width: 100px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(241, 215, 156, 0.22), rgba(201, 165, 92, 0.10));
  box-shadow: inset 0 1px 0 rgba(255, 240, 210, 0.35), inset 0 0 0 1px rgba(201, 165, 92, 0.28), 0 0 24px rgba(201, 165, 92, 0.18);
  transform: translateX(var(--ix, 6px)) scaleX(1);
  width: var(--iw, 100px);
  transition: transform 560ms var(--ease-out), width 560ms var(--ease-out);
}
.tab {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em; color: var(--muted);
  transition: color 250ms var(--ease-out);
}
.tab svg { width: 18px; height: 18px; display: none; }
.tab i { font-style: normal; }
.tab:hover { color: var(--text); }
.tab[aria-current="page"] { color: var(--gold-hi); }

/* ---------- Vistas y escenas ---------- */
main { position: relative; z-index: 1; outline: none; }
.view { padding: 0 var(--gutter); }
.view[hidden] { display: none; }
.scene {
  min-height: 92svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 96px 0;
  max-width: 1120px; margin: 0 auto;
}
.scene.hero { min-height: 100svh; padding-top: calc(var(--nav-h) + 40px); }
.scene.hero-sub { min-height: 86svh; }
.fx { will-change: opacity, transform; }
html.js .fx { opacity: 0; }

.eyebrow { margin: 0 0 22px; font-size: 13px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3 { margin: 0; font-weight: 500; }
.view-title, .statement {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.75rem, 7.4vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 15ch;
  outline: none;
}
.view-title { view-transition-name: page-title; }
.statement { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 20ch; }
.view-title em, .statement em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-lo), var(--gold) 30%, var(--gold-hi) 50%, var(--gold) 70%, var(--gold-lo));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gold-drift 9s ease-in-out infinite alternate;
  padding-right: 0.06em;
}
@keyframes gold-drift { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.section-title { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; margin-bottom: 44px; }
/* Sombra suave tras el texto para que la luz del circuito nunca compita con la lectura. */
.lead, .about-text p, .tile p, .service p, .step p, .note, .faq p { text-shadow: 0 1px 14px rgba(7, 5, 26, 0.95), 0 0 2px rgba(7, 5, 26, 0.8); }
.lead { margin: 28px auto 0; max-width: 34em; color: var(--muted); font-size: clamp(1.02rem, 0.6vw + 0.9rem, 1.22rem); text-wrap: pretty; }
.note { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 32em; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em; cursor: pointer;
  transition: transform 160ms var(--ease-snap), box-shadow 300ms var(--ease-out), background-color 300ms var(--ease-out);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn-gold {
  color: #1b1405;
  background: linear-gradient(180deg, #f3dca6, var(--gold) 55%, #a8843f);
  box-shadow: inset 0 1px 0 rgba(255, 250, 235, 0.7), inset 0 -2px 6px rgba(90, 60, 10, 0.35), 0 10px 30px -10px rgba(201, 165, 92, 0.6), 0 0 0 1px rgba(120, 90, 30, 0.5);
}
.btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255, 250, 235, 0.8), inset 0 -2px 6px rgba(90, 60, 10, 0.3), 0 14px 44px -10px rgba(241, 215, 156, 0.75), 0 0 0 1px rgba(120, 90, 30, 0.5); }
.btn-glass { color: var(--text); }
.btn-glass:hover { background-color: rgba(255, 255, 255, 0.06); }
.btn-wide { width: 100%; }

.scroll-cue { position: absolute; bottom: calc(28px + var(--tab-h) + var(--safe-b)); left: 50%; translate: -50% 0; width: 22px; height: 36px; border-radius: 12px; border: 1px solid rgba(201, 165, 92, 0.45); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 2.4s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }
.scene.hero { position: relative; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; width: 100%; max-width: 980px; }
.service {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: 34px; border-radius: var(--radius-l); min-height: 380px;
  transition: transform 500ms var(--ease-out);
}
.service:hover { transform: translateY(-4px); }
.service h3 { font-family: var(--serif); font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1.1; margin-top: auto; }
.service p { color: var(--muted); margin: 12px 0 22px; }
.service-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: var(--gold); background: rgba(201, 165, 92, 0.08); box-shadow: inset 0 0 0 1px rgba(201, 165, 92, 0.25); margin-bottom: 28px; }
.service-icon svg { width: 30px; height: 30px; }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: 15px; }
.more svg { width: 18px; height: 18px; transition: transform 300ms var(--ease-out); }
.service:hover .more svg { transform: translateX(5px); }

/* ---------- Tarjeta (pase de Wallet) ---------- */
.pass {
  --rx: 0deg; --ry: 0deg;
  position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 1.58;
  border-radius: 22px; padding: 18px 20px;
  color: var(--text);
  background:
    radial-gradient(120% 90% at 90% 0%, rgba(91, 69, 201, 0.55), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(201, 165, 92, 0.22), transparent 60%),
    linear-gradient(150deg, #241a52, #120d2e 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 0 0 1px rgba(201, 165, 92, 0.25), 0 30px 60px -25px rgba(0, 0, 0, 0.8);
  display: flex; flex-direction: column;
  view-transition-name: pass;
}
.pass-head { display: flex; align-items: center; gap: 10px; }
.pass-head svg { width: 22px; height: 22px; color: var(--gold); }
.pass-head b { font-family: var(--serif); font-size: 1.35em; font-weight: 600; letter-spacing: 0.01em; }
.pass-head small { margin-left: auto; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); padding: 3px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(201, 165, 92, 0.45); }
.pass-label { margin: auto 0 6px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.pass-stamps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; margin-top: auto; }
.pass-label + .pass-stamps { margin-top: 0; }
.pass-stamps i { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(201, 165, 92, 0.35); background: rgba(255, 255, 255, 0.03); position: relative; }
.pass-stamps i.on { background: radial-gradient(circle at 35% 30%, #f6e2b0, var(--gold) 55%, #8d6c2c); box-shadow: 0 0 14px rgba(201, 165, 92, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.6); }
.pass-stamps i.on::after { content: ""; position: absolute; inset: 32%; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(40, 28, 6, 0.65); }
.pass-stamps i.pop { animation: stamp 620ms var(--ease-out); }
@keyframes stamp { 0% { transform: scale(1.7); opacity: 0; filter: blur(3px); } 60% { transform: scale(0.94); opacity: 1; filter: none; } 100% { transform: scale(1); } }
.pass-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--muted); }
.pass-foot svg { width: 34px; height: 34px; color: var(--text); opacity: 0.85; }
.pass-reward { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); transition: color 400ms var(--ease-out); }
.pass-reward svg { width: 18px; height: 18px; color: var(--gold); }
.pass-reward b { color: var(--gold); font-weight: 600; }
.pass.complete .pass-reward { color: var(--text); }
.pass.complete { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(241, 215, 156, 0.6), 0 0 60px -10px rgba(201, 165, 92, 0.55), 0 30px 60px -25px rgba(0, 0, 0, 0.8); }
.pass-sheen { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(240px 180px at var(--px, 30%) var(--py, 0%), rgba(255, 240, 210, 0.22), transparent 70%); mix-blend-mode: screen; }

.pass-mini { max-width: 300px; font-size: 13px; padding: 14px 16px; margin-bottom: 26px; }
.pass-mini .pass-stamps { gap: 5px; }
.pass-mini .pass-foot svg { width: 26px; height: 26px; }

.demo { gap: 0; }
.demo-stage { width: min(100%, 460px); perspective: 1000px; }
.pass-big { font-size: 15px; padding: 22px 24px; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out); cursor: pointer; }
.pass-big.tracking { transition: box-shadow 600ms var(--ease-out); }
.demo-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.pass.burst::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(241, 215, 156, 0.35), transparent 30%); animation: burst 1.4s var(--ease-out) forwards; pointer-events: none; }
@keyframes burst { from { transform: rotate(0deg); opacity: 1; } to { transform: rotate(200deg); opacity: 0; } }

/* ---------- Tiles y pasos ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; }
.tile { text-align: left; padding: 28px 26px; border-radius: var(--radius-m); }
.tile svg { width: 28px; height: 28px; color: var(--gold); margin-bottom: 18px; }
.tile h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: 0.005em; }
.tile p { margin: 6px 0 0; color: var(--muted); font-size: 0.96rem; line-height: 1.6; }

.steps { list-style: none; margin: 0; padding: 0 0 0 4px; width: 100%; max-width: 640px; position: relative; text-align: left; }
.steps::before { content: ""; position: absolute; left: 13px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 13px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(var(--gold-hi), var(--gold)); transform-origin: top; transform: scaleY(var(--steps-p, 0)); box-shadow: 0 0 12px rgba(201, 165, 92, 0.6); }
.step { position: relative; padding: 0 0 44px 58px; counter-increment: step; }
.step:last-child { padding-bottom: 0; }
.step-dot { position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink-1); box-shadow: inset 0 0 0 1.5px rgba(201, 165, 92, 0.55); display: grid; place-items: center; z-index: 1; }
.step-dot::before { content: counter(step); font-size: 12px; font-weight: 700; color: var(--gold); }
.step h3 { font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.step p { margin: 6px 0 0; color: var(--muted); }

/* ---------- Sobre mí ---------- */
.about { flex-direction: row; align-items: center; gap: clamp(32px, 6vw, 88px); text-align: left; padding-top: calc(var(--nav-h) + 60px); }
.portrait { flex: 0 0 min(40%, 420px); margin: 0; padding: 10px; border-radius: 34px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 26px; }
.about-text { flex: 1; max-width: 36em; }
.about-text .view-title { max-width: none; font-size: clamp(2.6rem, 5.2vw, 4.6rem); margin-bottom: 26px; }
.about-text p { color: var(--muted); margin: 0 0 18px; }
.about-text .quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.6vw, 1.5rem); color: var(--gold); margin-bottom: 14px; }
.about-text .sign { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.3; color: var(--text); margin-top: 26px; }
.about-text .actions { justify-content: flex-start; margin-top: 26px; }

/* ---------- Contacto ---------- */
.contact { width: min(100%, 460px); margin-top: 40px; padding: 22px; border-radius: var(--radius-l); display: grid; gap: 12px; }
.contact-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.contact-meta span { display: inline-flex; align-items: center; gap: 7px; }
.contact-meta svg { width: 16px; height: 16px; color: var(--gold); }
.faq { width: 100%; max-width: 760px; display: grid; gap: 12px; text-align: left; }
.faq details { border-radius: var(--radius-s); padding: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; position: relative; border-radius: inherit; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); transition: transform 350ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.faq details[open] p { animation: faq-in 420ms var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); filter: blur(4px); } }

/* ---------- CTA y pie ---------- */
.cta-sun { width: 84px; height: 84px; color: var(--gold); margin-bottom: 34px; filter: drop-shadow(0 0 22px rgba(201, 165, 92, 0.65)); animation: sun-breathe 6s ease-in-out infinite; }
@keyframes sun-breathe { 50% { filter: drop-shadow(0 0 40px rgba(241, 215, 156, 0.85)); transform: scale(1.04); } }
.foot { position: relative; z-index: 1; text-align: center; padding: 60px var(--gutter) calc(48px + var(--tab-h) + var(--safe-b)); color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); max-width: 1120px; margin: 0 auto; }
.foot-logo { width: 96px; height: 36px; color: var(--gold); margin: 0 auto 12px; }
.foot p { margin: 4px 0; }
.foot-links { display: flex; justify-content: center; gap: 10px; }
.foot-links a { text-decoration: underline; text-decoration-color: rgba(201, 165, 92, 0.4); text-underline-offset: 4px; }
.foot-links a:hover { color: var(--text); }
.foot-copy { opacity: 0.7; }

/* ---------- Intro cinematográfica ---------- */
#intro { display: none; }
html.intro #intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 90;
  background: radial-gradient(70% 60% at 50% 50%, #0d0a24, #030209 80%);
  overflow: hidden; cursor: pointer;
}
html.intro body { overflow: hidden; }
.intro-beam { position: absolute; top: -20%; bottom: -20%; width: 36vmax; left: -40vmax; background: linear-gradient(90deg, transparent, rgba(241, 215, 156, 0.10) 40%, rgba(255, 240, 210, 0.22) 50%, rgba(241, 215, 156, 0.10) 60%, transparent); transform: skewX(-14deg); animation: beam 1.9s var(--ease-move) forwards; }
.intro-logo { position: relative; width: min(64vw, 380px); height: auto; aspect-ratio: 196 / 72; color: var(--gold); opacity: 0; -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat; mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat; animation: logo-in 1.6s var(--ease-out) 0.25s forwards, logo-shadow 1.9s var(--ease-move) 0.1s forwards; }
.intro-line { position: absolute; top: calc(50% + min(15vw, 90px)); margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--muted); opacity: 0; animation: line-in 900ms var(--ease-out) 1.05s forwards; }
@keyframes beam { to { left: 110vw; } }
@keyframes logo-in { to { opacity: 1; -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes logo-shadow {
  0% { filter: drop-shadow(18px 10px 8px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 0 rgba(201, 165, 92, 0)); }
  60% { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(241, 215, 156, 0.6)); }
  100% { filter: drop-shadow(-12px 10px 12px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 22px rgba(201, 165, 92, 0.35)); }
}
@keyframes line-in { from { opacity: 0; transform: translateY(8px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
html.intro-out #intro { animation: intro-out 700ms var(--ease-in-out, cubic-bezier(0.65, 0, 0.35, 1)) forwards; pointer-events: none; }
@keyframes intro-out { to { opacity: 0; filter: blur(14px); transform: scale(1.04); } }

/* ---------- Cursor de luz ---------- */
#cursor { display: none; }
html.has-cursor #cursor { display: block; position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; view-transition-name: cursor; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor summary { cursor: none; }
.cursor-dot, .cursor-halo { position: absolute; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
.cursor-dot { width: 7px; height: 7px; background: var(--gold-hi); box-shadow: 0 0 12px 2px rgba(241, 215, 156, 0.8); }
.cursor-halo { width: 38px; height: 38px; box-shadow: inset 0 0 0 1px rgba(201, 165, 92, 0.55); transition: scale 300ms var(--ease-out), background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
#cursor.hover .cursor-halo { scale: 1.6; background: rgba(201, 165, 92, 0.08); box-shadow: inset 0 0 0 1px rgba(241, 215, 156, 0.75); }
#cursor.down .cursor-halo { scale: 0.8; }

/* ---------- View Transitions ---------- */
::view-transition-old(root) { animation: vt-out 420ms var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in 680ms var(--ease-out) 110ms both; }
@keyframes vt-out { to { opacity: 0; filter: blur(10px); transform: scale(0.985); } }
@keyframes vt-in { from { opacity: 0; filter: blur(12px); transform: translateY(16px) scale(1.01); } }
::view-transition-group(page-title) { animation-duration: 760ms; animation-timing-function: var(--ease-out); }
::view-transition-old(page-title) { animation: vt-title-out 380ms var(--ease-in) both; }
::view-transition-new(page-title) { animation: vt-title-in 760ms var(--ease-out) both; }
@keyframes vt-title-out { to { opacity: 0; filter: blur(8px); } }
@keyframes vt-title-in { from { opacity: 0; filter: blur(8px); } }
::view-transition-group(pass) { animation-duration: 820ms; animation-timing-function: cubic-bezier(0.2, 0.9, 0.1, 1); }
::view-transition-old(bg), ::view-transition-old(nav), ::view-transition-old(cursor) { display: none; }
::view-transition-new(bg), ::view-transition-new(nav), ::view-transition-new(cursor) { animation: none; }
html.no-share-title .view-title { view-transition-name: none; }
html.no-share-pass .pass { view-transition-name: none; }

/* Sin View Transitions: fundido manual */
main.leaving { animation: vt-out 380ms var(--ease-in) both; }
main.entering { animation: vt-in 620ms var(--ease-out) both; }

/* ---------- Móvil ---------- */
@media (max-width: 820px) {
  :root { --tab-h: 74px; --nav-h: 56px; }
  .nav { top: 10px; }
  .brand { position: static; translate: none; pointer-events: auto; padding: 6px 10px; }
  .brand-logo { width: 90px; height: 33px; }
  .tabs {
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b));
    justify-content: space-between; padding: 6px; border-radius: 26px;
  }
  .tabs.glass { background-color: rgba(14, 10, 36, 0.55); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); }
  html.lg-refract .tabs.glass { backdrop-filter: url(#lg-refract) blur(20px) saturate(180%); }
  .brand { transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
  html.scrolled-down .brand { opacity: 0; transform: translateY(-14px); pointer-events: none; }
  .tab { flex: 1; flex-direction: column; gap: 3px; padding: 8px 2px 7px; font-size: 11px; font-weight: 600; border-radius: 20px; }
  .tab svg { display: block; width: 22px; height: 22px; }
  .tab i { display: none; }
  .tab-indicator { top: 6px; border-radius: 20px; }
  .scene { padding: 72px 0; min-height: 84svh; }
  .scene.hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: calc(var(--tab-h) + 60px); }
  .services, .tiles, .tiles-3 { grid-template-columns: minmax(0, 1fr); }
  .service { min-height: 0; padding: 26px; }
  .service h3 { margin-top: 0; }
  .service-icon { margin-bottom: 20px; }
  .about { flex-direction: column; text-align: left; padding-top: calc(var(--nav-h) + 30px); }
  .portrait { flex: none; width: min(82vw, 360px); }
  .actions .btn { flex: 1 1 100%; }
  .about-text .actions .btn { flex: 1 1 100%; }
}
@media (min-width: 821px) and (max-width: 1040px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { padding: 9px 12px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html.js .fx { opacity: 1; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 0.01ms !important; }
}
