/* 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-base { position: fixed; left: 0; top: 0; z-index: -2; pointer-events: none; will-change: transform; view-transition-name: bg-base; }
#bg { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; 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 ---------- */
/* Registradas para poder deslizar el reflejo a su sitio al terminar de desplazar (html.settling, ui.js) */
@property --sx { syntax: "<percentage>"; inherits: true; initial-value: 30%; }
@property --sy { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
html.settling .glass:not(.btn) { transition: --sx 500ms var(--ease-out), --sy 500ms var(--ease-out); }
.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%);
}

/* ---------- 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: 132px; height: 48px; filter: drop-shadow(0 0 10px rgba(201, 165, 92, 0.3)); }
/* Franja invisible en toda la parte de arriba: solo desenfoca lo que pasa por detrás del logo y las pestañas,
   para que no se mezclen con el texto al desplazarse. Sin color ni borde: el desenfoque se desvanece hacia abajo */
.top-veil {
  position: fixed; z-index: 39; top: 0; left: 0; right: 0; pointer-events: none;
  height: calc(var(--nav-h) + 60px);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
}

.tabs {
  pointer-events: auto; overflow: hidden;
  transition: box-shadow 500ms var(--ease-out);
  display: flex; align-items: center; gap: 2px;
  padding: 6px; border-radius: 999px;
}
.tabs.rim-hot { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(201, 165, 92, 0.35), 0 0 34px -8px rgba(201, 165, 92, 0.55), 0 24px 60px -24px rgba(0, 0, 0, 0.7); }
.tabs.rim-hot::before { background: radial-gradient(180px 120px at var(--sx) var(--sy), rgba(255, 240, 205, 1), rgba(201, 165, 92, 0.55) 40%, transparent 75%), linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.12)); padding: 1.5px; }
.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 {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: clamp(64px, 11vh, 120px) 0;
  max-width: 1120px; margin: 0 auto;
}
.scene.hero { min-height: 100svh; padding-top: calc(var(--nav-h) + 40px); }
.scene.hero-sub { min-height: 74svh; }
/* Solo opacidad: sin desplazar el texto, las líneas llegan siempre alineadas */
html.js .fx { opacity: 0; transition: opacity 900ms var(--ease-out); }
html.js .fx.in { opacity: 1; }
html.js .fx.instant { transition: none; }

.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;
}
.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; } }
/* animan propiedades que obligan a repintar en cada fotograma: en pausa mientras se desplaza la página (ui.js) */
html.scrolling .view-title em, html.scrolling .statement em, html.scrolling .cta-sun { animation-play-state: paused; }
.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 { position: relative; overflow: hidden; isolation: isolate; }
.pulse-wrap { position: fixed; z-index: 60; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.pulse { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 240, 205, 0.6), rgba(201, 165, 92, 0.28) 35%, transparent 70%); animation: pulse 700ms var(--ease-out) forwards; }
.on-gold .pulse { background: radial-gradient(circle, rgba(255, 255, 255, 0.75), rgba(255, 240, 205, 0.3) 35%, transparent 70%); }
@keyframes pulse { 0% { transform: scale(0.08); opacity: 1; } 50% { opacity: 0.85; } 100% { transform: scale(1); opacity: 0; } }
.btn svg { width: 19px; height: 19px; flex: none; position: relative; z-index: 1; }
.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: 25px; top: var(--line-top, 26px); height: var(--line-h, 0); width: 1px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 25px; top: var(--line-top, 26px); height: var(--line-h, 0); width: 2px; margin-left: -0.5px; 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: 4px 0 48px 80px; counter-increment: step; }
.step:last-child { padding-bottom: 0; }
.step-dot { position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--ink-1); box-shadow: inset 0 0 0 1.5px rgba(201, 165, 92, 0.45); display: grid; place-items: center; z-index: 1; transition: background-color 450ms var(--ease-out), box-shadow 450ms var(--ease-out); }
.step-dot::before { content: counter(step); font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; color: var(--gold); transition: color 450ms var(--ease-out); }
.step-dot.lit { background: radial-gradient(circle at 35% 30%, #f6e2b0, var(--gold) 55%, #8d6c2c); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 0 26px rgba(201, 165, 92, 0.6); }
.step-dot.lit::before { color: #1b1405; }
.step-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(241, 215, 156, 0.8); opacity: 0; pointer-events: none; }
.step-dot.flash::after { animation: dot-flash 900ms var(--ease-out); }
@keyframes dot-flash { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }
.step h3 { font-family: var(--serif); font-size: 2rem; line-height: 1.1; padding-top: 6px; }
.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; }
/* En escritorio la foto acompaña al texto mientras se lee */
@media (min-width: 821px) { .about { align-items: flex-start; } .portrait { position: sticky; top: 120px; } }
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 26px; background-color: var(--ink-0); }
html.js .portrait.fx { opacity: 1; }
html.js .portrait.fx img { filter: brightness(0); transition: filter 1100ms var(--ease-out); }
html.js .portrait.fx.in img, html.js .portrait.fx.instant img { filter: none; }
html.js .portrait.fx.instant img { transition: none; }
.about-text { flex: 1; max-width: 36em; }
.about-text .view-title { max-width: none; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.08; margin-bottom: 26px; }
.about-text .eyebrow { margin-bottom: 16px; }
.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 strong { color: var(--text); font-weight: 600; }
.about-text .quote:last-child { margin: 22px 0 0; font-size: clamp(1.4rem, 2vw, 1.75rem); }
.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 ---------- */
/* El ☉ se enciende en la oscuridad, late, y su luz revela el logo desde el centro hacia fuera.
   Solo se animan opacidad, escala y una máscara: fluido también en móviles modestos. */
@property --reveal { syntax: "<percentage>"; inherits: false; initial-value: -24%; }
#intro { display: none; }
html.intro #intro {
  display: grid; place-items: center; align-content: center; gap: clamp(22px, 4vh, 40px);
  position: fixed; inset: 0; z-index: 90;
  background: radial-gradient(70% 60% at 50% 46%, #100c2b, #030209 80%);
  overflow: hidden; cursor: pointer;
}
html.intro body { overflow: hidden; }
.intro-mark { position: relative; width: min(72vw, 440px); aspect-ratio: 196 / 72; }
.intro-logo {
  position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold);
  -webkit-mask: radial-gradient(circle at 58.2% 50%, #000 var(--reveal), transparent calc(var(--reveal) + 22%));
  mask: radial-gradient(circle at 58.2% 50%, #000 var(--reveal), transparent calc(var(--reveal) + 22%));
  animation: intro-reveal 1600ms cubic-bezier(0.5, 0, 0.2, 1) 900ms both;
}
.intro-glow { position: absolute; left: 50%; top: 50%; width: 170%; height: 260%; translate: -50% -50%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(241, 215, 156, 0.30), rgba(201, 165, 92, 0.12) 45%, rgba(91, 69, 201, 0.06) 70%, transparent); opacity: 0; animation: intro-glow 3400ms ease-in-out both; }
@keyframes intro-glow { 0%, 20% { opacity: 0; transform: scale(0.7); } 55% { opacity: 1; transform: scale(1); } 70% { opacity: 0.75; } 82% { opacity: 1; transform: scale(1.04); } 100% { opacity: 0.7; transform: scale(1); } }
.intro-core, .intro-ring { position: absolute; left: 58.2%; top: 50%; border-radius: 50%; pointer-events: none; }
.intro-core { width: 22%; aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(closest-side, rgba(255, 250, 232, 1), rgba(241, 215, 156, 0.85) 30%, rgba(201, 165, 92, 0.25) 60%, transparent); opacity: 0; animation: intro-core 3400ms ease-in-out both; }
.intro-ring { width: 26%; aspect-ratio: 1; translate: -50% -50%; box-shadow: 0 0 0 2px rgba(241, 215, 156, 0.85), 0 0 24px rgba(241, 215, 156, 0.6); opacity: 0; animation: intro-ring 1500ms cubic-bezier(0.2, 0.7, 0.3, 1) 550ms both; }
.intro-ring.r2 { animation-delay: 2150ms; }
.intro-beam { position: absolute; top: -20%; bottom: -20%; width: 40vmax; left: 0; background: linear-gradient(90deg, transparent, rgba(241, 215, 156, 0.08) 40%, rgba(255, 240, 210, 0.18) 50%, rgba(241, 215, 156, 0.08) 60%, transparent); transform: translate3d(-45vmax, 0, 0) skewX(-14deg); -webkit-mask: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(transparent, #000 25%, #000 75%, transparent); animation: beam 1800ms var(--ease-move) 1100ms both; }
.intro-line {
  margin: 0; font-family: var(--serif); font-style: italic; text-align: center; padding: 0 16px;
  font-size: clamp(1.7rem, 4.2vw, 2.9rem); line-height: 1.15;
  background: linear-gradient(100deg, var(--gold-lo), var(--gold) 30%, var(--gold-hi) 50%, var(--gold) 70%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; animation: line-in 1100ms var(--ease-out) 1850ms both;
}
/* empieza con todo el borde suave fuera del logo: con 0 % ya asomaba la I junto al sol antes del efecto */
@keyframes intro-reveal { from { --reveal: -24%; } to { --reveal: 130%; } }
@keyframes intro-core {
  0% { opacity: 0; transform: scale(0.2); }
  14% { opacity: 1; transform: scale(1.25); }
  24% { opacity: 0.75; transform: scale(0.95); }
  62% { opacity: 0.55; transform: scale(0.9); }
  70% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.45; transform: scale(0.85); }
}
@keyframes intro-ring { 0% { opacity: 0; transform: scale(0.3); } 18% { opacity: 1; } 100% { opacity: 0; transform: scale(4.2); } }
@keyframes beam { to { transform: translate3d(110vw, 0, 0) skewX(-14deg); } }
@keyframes line-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
html.intro-out #intro { animation: intro-out 900ms cubic-bezier(0.65, 0, 0.35, 1) forwards; pointer-events: none; }
@keyframes intro-out { to { opacity: 0; transform: scale(1.03); } }

/* ---------- 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%; }
.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 350ms var(--ease-out), opacity 300ms var(--ease-out), background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
#cursor.hide .cursor-halo { scale: 0.4; opacity: 0; }
#cursor.nav .cursor-halo { scale: 2.4; opacity: 0; box-shadow: inset 0 0 0 1px rgba(241, 215, 156, 0.9); }
#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; } }
@keyframes vt-in { from { opacity: 0; } }
::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(bg-base), ::view-transition-old(nav), ::view-transition-old(cursor) { display: none; }
::view-transition-new(bg), ::view-transition-new(bg-base), ::view-transition-new(nav), ::view-transition-new(cursor) { animation: none; }
html.no-share-pass .pass { view-transition-name: none; }

@media (max-width: 820px) {
  ::view-transition-new(root) { animation-name: vt-in-m; }
  ::view-transition-old(root) { animation-name: vt-out-m; }
}
@keyframes vt-in-m { from { opacity: 0; filter: blur(8px); } }
@keyframes vt-out-m { to { opacity: 0; filter: blur(8px); } }

/* 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: 112px; height: 41px; }
  .top-veil { height: calc(env(safe-area-inset-top, 0px) + var(--nav-h) + 44px); }
  .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.6); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); }
  /* En móvil solo la barra de pestañas desenfoca el fondo; el resto del cristal lleva un tinte. Cada desenfoque
     se recalcula en cada fotograma al desplazarse (medido: era lo que más fotogramas hacía perder) */
  .glass:not(.tabs) { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(30, 22, 70, 0.55); }
  .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: 56px 0; }
  .scene.hero-sub { min-height: 70svh; }
  .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; }
}

/* ---------- Animación «Mira cómo funciona» ----------
   Se reproduce en vivo y sin fondo propio: la cuenta la propia web, sin el rectángulo negro de un vídeo. */
.anim-scene .section-title { margin-bottom: 30px; }
.anim {
  position: relative; aspect-ratio: 9 / 16;
  width: min(100%, 460px, calc((100svh - var(--nav-h) - var(--tab-h) - 48px) * 0.5625));
}
.anim-stage { position: absolute; inset: 0;
  /* bordes fundidos: lo que llega al límite del encuadre (el mostrador) se disuelve en el fondo en vez de dibujar un rectángulo */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 86%, transparent);
  mask-composite: intersect; }
.anim-stage > * { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
/* imagen de espera hasta que se pinta el primer fotograma; sin filtros sobre la animación (borran la luz del 3D) */
.anim-poster { object-fit: contain; transition: opacity 400ms var(--ease-out); }
.anim-canvas { opacity: 0; }
.anim.drawn .anim-poster { opacity: 0; }
.anim.drawn .anim-canvas { opacity: 1; }
.anim-stage > .anim-video { width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.anim .anim-play { position: absolute; z-index: 2; left: 50%; top: 80%; translate: -50% -50%; white-space: nowrap; transition: opacity 400ms var(--ease-out), transform 160ms var(--ease-snap), background-color 300ms var(--ease-out); }
.anim .anim-play svg { width: 16px; height: 16px; }
.anim.playing .anim-play { opacity: 0; pointer-events: none; }
.anim.playing { cursor: pointer; }
/* Volumen «haz de luz»: al pasar el ratón (o con el primer toque en el móvil) la cápsula se abre hacia la
   izquierda y una línea dorada marca el volumen, con un destello en la punta como el punto del logo */
.anim .anim-vol { --v: 1; position: absolute; z-index: 3; right: 10px; bottom: 10px; height: 46px; display: flex; align-items: center; border-radius: 999px; }
.anim .anim-ctl { position: relative; z-index: 2; flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--text); cursor: pointer; }
.anim .anim-ctl svg { width: 20px; height: 20px; position: relative; z-index: 1; }
.anim .anim-vol[hidden], .anim .anim-wa[hidden] { display: none; }
.anim-beam { position: relative; z-index: 2; width: 0; height: 46px; display: flex; align-items: center; overflow: hidden; cursor: pointer; touch-action: none; border-radius: 999px; transition: width 450ms var(--ease-out); }
.anim-vol.open .anim-beam { width: 124px; }
.anim-beam:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: -4px; }
.beam-track { position: relative; flex: none; width: 92px; height: 2px; margin-left: 22px; border-radius: 2px; background: rgba(201, 165, 92, 0.2); }
.beam-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); border-radius: inherit;
  background: linear-gradient(90deg, rgba(201, 165, 92, 0.15), var(--gold) 55%, var(--gold-hi));
  box-shadow: 0 0 8px rgba(201, 165, 92, 0.55); transition: opacity 300ms var(--ease-out); }
/* el destello brilla más cuanto más volumen */
.beam-fill::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; translate: 0 -50%; border-radius: 50%;
  background: radial-gradient(circle, #fff7e2 0 22%, var(--gold-hi) 42%, rgba(201, 165, 92, 0) 72%);
  box-shadow: 0 0 calc(6px + var(--v) * 12px) calc(var(--v) * 4px) rgba(241, 215, 156, 0.5);
  opacity: calc(0.5 + var(--v) * 0.5); transition: opacity 300ms var(--ease-out); }
.anim-vol.muted .beam-fill { opacity: 0.3; }
.anim-vol.muted .beam-fill::after { opacity: 0; }
/* El botón de WhatsApp del cierre de la animación lleva a WhatsApp de verdad */
.anim .anim-wa { position: absolute; z-index: 2; left: 21%; width: 58%; top: 60.4%; height: 6.2%; border-radius: 999px; }
.anim .anim-wa:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }

/* ---------- 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; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 0.01ms !important; }
}
