/* ===================================================
   ÁLVARO RGZ — Placas NFC (alvarorgz.com/placas-nfc)
   Misma familia visual que el hub, webs y tarjetas:
   crema, oro y piedra. El color lo pone cada placa.
   =================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

::selection { background: var(--gold); color: var(--bg); }

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

:root {
  --bg: #FAF8F4;
  --bg-2: #F5F1EA;
  --panel: #FFFFFF;
  --line: rgba(28, 18, 8, .07);
  --line-2: rgba(28, 18, 8, .13);
  --fg: #1C1814;
  --fg-2: #3D3830;
  --fg-3: #7A7068;
  --fg-4: #B5ADA4;
  --gold: #8C6020;
  --gold-2: #B07830;

  --stone-2: #E7DFD0;
  --stone-3: #D9CFBB;
  --stone-ln: rgba(28, 18, 8, .17);

  --brand: #8C6020;

  --pad: clamp(20px, 5vw, 72px);
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.32, .72, 0, 1);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.dot {
  color: var(--gold);
  font-style: normal;
  display: inline-block;
  text-shadow: 0 0 24px rgba(140, 96, 32, .35);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.6'/></svg>");
}

/* Moldura de dentículos — el separador del ecosistema */
.dentils {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--stone-3) 0 8px, transparent 8px 16px);
  border-top: 1px solid var(--stone-ln);
  border-bottom: 1px solid var(--stone-ln);
  opacity: .7;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================
   NAV
=========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav__inner {
  pointer-events: auto;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 8px 12px 8px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.brand img { width: 80px; height: 40px; }

.nav__links {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.nav__links a { position: relative; padding: 6px 0; transition: color .25s var(--ease); }
.nav__links a:hover { color: var(--fg); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 980px) { .nav__links { display: none; } }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 20px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 10px 30px -12px rgba(28,18,8,.55);
  transition: transform .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav__cta svg { width: 12px; height: 12px; transition: transform .4s var(--ease); }
.nav__cta:hover { background: var(--fg-2); transform: translateY(-1px); }
.nav__cta:hover svg { transform: translate(2px, -2px); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__hamburger span {
  width: 22px; height: 2px;
  background: var(--fg);
  border-radius: 1px;
  transition: all .3s var(--ease);
  display: block;
}
.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(11px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-11px); }

@media (max-width: 980px) {
  .nav__hamburger { display: flex; grid-column: 3; }
  .nav__cta { display: none !important; }
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  top: 57px; left: 0; right: 0;
  z-index: 95;
  background: var(--bg);
  width: 100%;
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s var(--ease);
  display: none;
}
.mobile-menu.active { max-height: 520px; border-bottom: 1px solid var(--line); }

body.menu-open::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(28, 18, 8, .35);
  z-index: 90;
  pointer-events: none;
  animation: menu-overlay-in .3s ease forwards;
}
@keyframes menu-overlay-in { from { opacity: 0; } to { opacity: 1; } }

.mobile-menu__inner { display: flex; flex-direction: column; padding: 20px; width: 100%; }

.mobile-menu__link {
  display: block;
  padding: 15px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-2);
  transition: color .25s var(--ease), background .25s var(--ease), opacity .4s var(--ease), transform .4s var(--ease);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-12px);
}
.mobile-menu.active .mobile-menu__link { opacity: 1; transform: translateY(0); }
.mobile-menu__link:nth-child(1) { transition-delay: .05s; }
.mobile-menu__link:nth-child(2) { transition-delay: .09s; }
.mobile-menu__link:nth-child(3) { transition-delay: .13s; }
.mobile-menu__link:nth-child(4) { transition-delay: .17s; }
.mobile-menu__link:nth-child(5) { transition-delay: .21s; }
.mobile-menu__link:hover { color: var(--fg); background: rgba(28, 18, 8, .05); }

.mobile-menu__cta {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  transition-delay: .25s, .25s, 0s, 0s, 0s;
  background: var(--fg);
  color: var(--bg);
}
.mobile-menu.active .mobile-menu__cta { opacity: 1; transform: translateY(0); }
.mobile-menu.active .mobile-menu__cta:hover { background: var(--fg-2); transform: translateY(-2px); }

@media (max-width: 980px) { .mobile-menu { display: block; } }

/* ===========================
   BOTONES
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.btn svg { width: 14px; height: 14px; transition: transform .4s var(--ease); flex-shrink: 0; }

.btn--dark {
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 14px 38px -16px rgba(28,18,8,.6);
}
.btn--dark:hover { background: var(--fg-2); transform: translateY(-2px); }
.btn--dark:hover svg { transform: translate(3px, -3px); }

.btn--ghost {
  color: var(--fg-2);
  border: 1px solid var(--line-2);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--fg-3); color: var(--fg); transform: translateY(-2px); }

.btn--lg { padding: 18px 32px; }

/* ===========================
   TIPOGRAFÍA DE SECCIÓN
=========================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow__bar {
  width: 30px; height: 1px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(140, 96, 32, .45);
}

.section__title {
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.07;
  letter-spacing: -0.032em;
  font-weight: 400;
  margin: 0;
}

.section__lead {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.66;
  color: var(--fg-2);
  max-width: 58ch;
  margin: 18px 0 0;
}

.sec-head {
  width: min(100%, var(--max));
  margin: 0 auto clamp(40px, 5vw, 68px);
  padding: 0 var(--pad);
}
.sec-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.sec-head--center .section__lead { margin-left: auto; margin-right: auto; }

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 94svh;
  padding: clamp(104px, 13vw, 168px) var(--pad) clamp(64px, 8vw, 100px);
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg { position: absolute; inset: 0; z-index: -2; }

.hero__glow {
  position: absolute;
  left: 50%; top: 42%;
  width: min(1000px, 132vw);
  height: min(1000px, 132vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(140, 96, 32, .17) 0%, rgba(140, 96, 32, .05) 34%, transparent 64%);
  filter: blur(90px);
  animation: heroGlowFloat 22s ease-in-out infinite alternate;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(28, 18, 8, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 18, 8, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
}

@keyframes heroGlowFloat {
  0%   { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-52%, -46%) scale(1.08); }
}

/* Ondas NFC de fondo — el campo del chip, dibujado */
.hero__waves {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  width: min(880px, 120vw);
  height: min(880px, 120vw);
  z-index: -1;
  pointer-events: none;
}
.hero__waves span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(140, 96, 32, .22);
  opacity: 0;
  animation: nfcWave 5.6s var(--ease-soft) infinite;
}
.hero__waves span:nth-child(2) { animation-delay: 1.4s; }
.hero__waves span:nth-child(3) { animation-delay: 2.8s; }
.hero__waves span:nth-child(4) { animation-delay: 4.2s; }

@keyframes nfcWave {
  0%   { transform: scale(.4); opacity: 0; }
  12%  { opacity: .6; }
  100% { transform: scale(4.6); opacity: 0; }
}

@media (max-width: 700px) {
  .hero__waves span { border-color: rgba(140, 96, 32, .13); }
}

/* Marcas de registro en las esquinas */
.hero__marks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mark {
  position: absolute;
  width: 26px; height: 26px;
  color: var(--fg-4);
  opacity: .55;
}
.mark--tl { top: clamp(70px, 10vw, 116px); left: clamp(16px, 3.5vw, 56px); }
.mark--tr { top: clamp(70px, 10vw, 116px); right: clamp(16px, 3.5vw, 56px); }
.mark--bl { bottom: clamp(40px, 6vw, 72px); left: clamp(16px, 3.5vw, 56px); }
.mark--br { bottom: clamp(40px, 6vw, 72px); right: clamp(16px, 3.5vw, 56px); }
@media (max-width: 700px) { .hero__marks { display: none; } }

/* Placas flotando alrededor del titular */
.hero__float {
  position: absolute;
  width: 170px;
  z-index: 1;
  filter: drop-shadow(0 26px 30px rgba(28, 18, 8, .28));
  animation: heroFloatBob 8s ease-in-out infinite;
}
.hero__float img { width: 100%; height: auto; aspect-ratio: 1; }
.hero__float--a { top: 16%;  left: clamp(1%, 5vw, 8%);  transform: rotate(-9deg); animation-delay: 0s; }
.hero__float--b { width: 132px; bottom: 15%; left: clamp(4%, 9vw, 13%); transform: rotate(7deg); animation-delay: -2.6s; }
.hero__float--c { width: 148px; top: 19%;   right: clamp(1%, 5vw, 8%);  transform: rotate(8deg); animation-delay: -4s; }
.hero__float--d { width: 116px; bottom: 17%; right: clamp(5%, 10vw, 14%); transform: rotate(-6deg); animation-delay: -6.2s; }

@keyframes heroFloatBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

@media (max-width: 1240px) { .hero__float--b, .hero__float--d { display: none; } }
/* En pantallas estrechas las placas se asoman por las esquinas de arriba */
@media (max-width: 1040px) {
  .hero__marks { display: none; }
  .hero__float--a { width: 108px; top: 9%;  left: 2%;  }
  .hero__float--c { width: 92px;  top: 11%; right: 2%; }
}
/* En el móvil se asoman lo justo para no pisar la badge del titular */
@media (max-width: 620px) {
  .hero__float--a { width: 96px; top: 7%; left: -8%;  }
  .hero__float--c { width: 84px; top: 9%; right: -8%; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 800px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin: 0 0 24px;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(140, 96, 32, .5);
  flex-shrink: 0;
  animation: heroDotPulse 1.8s ease-in-out infinite;
}
@keyframes heroDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero__title {
  font-size: clamp(44px, 8.6vw, 98px);
  line-height: .95;
  letter-spacing: -0.042em;
  font-weight: 400;
  margin: 0 0 24px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }

.hero__sub {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.62;
  color: var(--fg-2);
  max-width: 52ch;
  margin: 0 0 34px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 34px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 52px);
}
@media (max-width: 620px) {
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    width: 100%;
    max-width: 340px;
  }
}
.hero__stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hero__stat b {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1;
}
.hero__stat span {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.hero__cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--fg-4);
  z-index: 2;
  animation: heroCueBob 2.6s ease-in-out infinite;
}
@keyframes heroCueBob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
@media (max-width: 900px) { .hero__cue { display: none; } }

/* ===========================
   TICKER DE PLATAFORMAS
=========================== */
.ticker {
  overflow: hidden;
  padding: 20px 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerRun 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  flex-shrink: 0;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-3);
  white-space: nowrap;
}
.ticker__item::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--stone-3);
}
@keyframes tickerRun {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===========================
   COMPARATIVA
=========================== */
.compare { padding: clamp(60px, 8vw, 110px) 0; }

.compare__grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: stretch;
}

.cmp {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: 4px;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cmp:hover { transform: translateY(-3px); }

.cmp--win {
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 0 0 1px rgba(28,18,8,.5), 0 28px 56px -30px rgba(28,18,8,.75);
}
.cmp--win:hover { box-shadow: 0 0 0 1px rgba(28,18,8,.5), 0 36px 66px -30px rgba(28,18,8,.85); }

.cmp__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 20px;
}
.cmp--win .cmp__tag { color: rgba(250,248,244,.62); }
.cmp__tag i {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  background: rgba(28,18,8,.07);
  color: var(--fg-3);
}
.cmp--win .cmp__tag i { background: rgba(250,248,244,.16); color: var(--bg); }

.cmp h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin: 0 0 10px;
}
.cmp p {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--fg-3);
  margin: 0 0 22px;
}
.cmp--win p { color: rgba(250,248,244,.72); }

.cmp__meter {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cmp__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(28,18,8,.08);
  overflow: hidden;
}
.cmp--win .cmp__bar { background: rgba(250,248,244,.16); }
.cmp__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--fg-4);
  width: 0;
  transition: width 1.4s var(--ease-soft);
}
.cmp--win .cmp__bar i { background: var(--gold-2); box-shadow: 0 0 12px rgba(176,120,48,.6); }
.is-in .cmp__bar i, .cmp.is-in .cmp__bar i { width: var(--fill, 20%); }
.cmp__meter span {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-4);
}
.cmp--win .cmp__meter span { color: rgba(250,248,244,.6); }

@media (max-width: 880px) { .compare__grid { grid-template-columns: 1fr; } }

/* ===========================
   LA SECUENCIA
   Toda la escena cuelga de un único reloj de 11 s: cada elemento lleva su
   propia animación con la MISMA duración, así que basta con arrancarlas en el
   mismo frame (.is-playing en .scene) para que jamás se desincronicen.
=========================== */
.demo {
  --brand: #E1306C;
  --seq: 11s;
  padding: clamp(60px, 8vw, 110px) 0 clamp(48px, 6vw, 84px);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
/* El destino manda en el color de toda la escena */
.demo[data-dest="google"] { --brand: #4285F4; }
.demo[data-dest="social"] { --brand: #E1306C; }

/* Lo que no toca, fuera del árbol: así nunca hay dos animaciones compitiendo */
.demo[data-dest="google"] .ig,
.demo[data-dest="google"] .nfc-note__ico--ig,
.demo[data-dest="google"] .nfc-note__txt--ig,
.demo[data-dest="social"] .gr,
.demo[data-dest="social"] .nfc-note__ico--g,
.demo[data-dest="social"] .nfc-note__txt--g { display: none; }

/* ---------- Selector de destino ---------- */
.pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 auto clamp(30px, 4vw, 46px);
  padding: 0 var(--pad);
}
.pick__lab {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.pick__seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.pick__thumb {
  position: absolute;
  z-index: 0;
  top: 4px; left: 4px; bottom: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--fg);
  box-shadow: 0 6px 18px -10px rgba(28, 18, 8, .8);
  transition: transform .45s var(--ease-soft);
}
.demo[data-dest="social"] .pick__thumb { transform: translateX(100%); }
.pick__b {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 132px;
  padding: 11px 20px;
  border: none;
  background: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: .01em;
  color: var(--fg-3);
  cursor: pointer;
  transition: color .35s var(--ease);
}
.pick__b i {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: box-shadow .35s var(--ease);
}
.pick__b[data-dest="google"] i { background: #4285F4; }
.pick__b[data-dest="social"] i { background: #E1306C; }
.pick__b:hover { color: var(--fg); }
.pick__b.is-on { color: var(--bg); }
.pick__b.is-on:hover { color: var(--bg); }
.pick__b.is-on i { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.demo::before {
  content: "";
  position: absolute;
  left: 50%; top: 42%;
  width: min(880px, 130vw); height: min(880px, 130vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 13%, transparent) 0%, transparent 62%);
  filter: blur(90px);
  pointer-events: none;
}

.demo__stage {
  position: relative;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 314px;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.demo__foot {
  width: min(100%, 720px);
  margin: clamp(30px, 4vw, 48px) auto 0;
  padding: 0 var(--pad);
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-3);
}

/* ---------- Escena ---------- */
.scene {
  --pw: 268;                        /* ancho del iPhone en px de pantalla */
  --reach: clamp(128px, 16.5vw, 214px);
  /* La antena NFC del iPhone está arriba del todo, así que la placa se coloca
     a la altura de su tercio superior, no a media altura. */
  --dip: calc(var(--pw) * .564 * 1px);
  --dip: calc(var(--pw) * .19 * 1px);
  position: relative;
  height: calc(var(--pw) * 852 / 393 * 1px + 44px);
  perspective: 1600px;
  perspective-origin: 46% 42%;
  /* Sin `preserve-3d` a propósito: metería placa y móvil en el mismo contexto
     3D, donde el orden de pintado lo decide la profundidad y se ignora el
     z-index. En reposo los dos están a z=0 y la placa se colaba por delante.
     La perspectiva se sigue aplicando al vuelo del móvil, que es lo que
     interesa; el z-index vuelve a mandar. */
}
.scene__glow {
  position: absolute;
  left: 12%; top: calc(50% - var(--dip));
  width: 46%; aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 26%, transparent), transparent 66%);
  filter: blur(46px);
  opacity: 0;
  animation: sceneGlow var(--seq) linear infinite paused;
}
@keyframes sceneGlow {
  0%, 16.6% { opacity: 0; }
  19%       { opacity: .85; }
  34%       { opacity: .3; }
  50%, 100% { opacity: 0; }
}

/* ---------- La placa ---------- */
.plate {
  position: absolute;
  z-index: 1;
  left: 5%; top: 42%;
  width: calc(var(--pw) * 1.11 * 1px);   /* en desktop, la mitad más grande */
  aspect-ratio: 1;
  transform: translateY(-50%);
}
.plate img {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(28, 18, 8, .26));
}
.plate__shadow {
  position: absolute;
  left: 8%; right: 8%;
  bottom: -4%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(28, 18, 8, .3), transparent 70%);
  filter: blur(7px);
}
/* El campo NFC: tres anillos con el mismo bucle, desfasados por el delay */
.plate__field {
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--brand) 62%, transparent);
  opacity: 0;
  animation: plateField var(--seq) var(--ease-soft) infinite paused;
}
.plate__field:nth-of-type(2) { animation-delay: .17s; }
.plate__field:nth-of-type(3) { animation-delay: .34s; }
@keyframes plateField {
  0%, 16.4%  { opacity: 0; transform: scale(.88); }
  18.2%      { opacity: .95; transform: scale(.96); }
  27%, 100%  { opacity: 0; transform: scale(1.9); }
}
/* Ha reconocido el móvil */
.plate__lit {
  position: absolute;
  inset: -2%;
  z-index: 3;
  border-radius: 50%;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 70%, transparent),
              0 0 34px color-mix(in srgb, var(--brand) 55%, transparent);
  opacity: 0;
  animation: plateLit var(--seq) linear infinite paused;
}
@keyframes plateLit {
  0%, 17%   { opacity: 0; }
  19%       { opacity: 1; }
  32%       { opacity: .5; }
  46%, 100% { opacity: 0; }
}

/* ---------- Vuelo del móvil ---------- */
.fly {
  position: absolute;
  z-index: 5;                        /* el móvil siempre por delante de la placa */
  right: 2%; top: 50%;
  width: calc(var(--pw) * 1px);
  height: calc(var(--pw) * 852 / 393 * 1px);
  margin-top: calc(var(--pw) * -426 / 393 * 1px);
  transform-style: preserve-3d;
  opacity: 0;
  animation: fly var(--seq) linear infinite paused;
}
@keyframes fly {
  0% {
    opacity: 0;
    transform: translate3d(52px, 104px, 30px) rotateX(7deg) rotateY(-15deg) rotateZ(-21deg) scale(.9);
    animation-timing-function: cubic-bezier(.2, .7, .2, 1);
  }
  4% {
    opacity: 1;
    transform: translate3d(42px, 88px, 34px) rotateX(6deg) rotateY(-12deg) rotateZ(-18deg) scale(.9);
    animation-timing-function: cubic-bezier(.45, .05, .25, 1);
  }
  18.2% {
    opacity: 1;
    transform: translate3d(calc(var(--reach) * -1), var(--dip), 96px) rotateX(2deg) rotateY(17deg) rotateZ(-13deg) scale(.865);
    animation-timing-function: ease-in-out;
  }
  21.4% {
    opacity: 1;
    transform: translate3d(calc(var(--reach) * -1), calc(var(--dip) + 3px), 98px) rotateX(2deg) rotateY(17deg) rotateZ(-13deg) scale(.87);
    animation-timing-function: cubic-bezier(.32, .72, 0, 1);
  }
  30%, 87% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    animation-timing-function: cubic-bezier(.4, 0, .6, 1);
  }
  95% {
    opacity: 0;
    transform: translate3d(8px, 34px, -40px) rotateZ(-2deg) scale(.96);
  }
  100% {
    opacity: 0;
    transform: translate3d(52px, 104px, 30px) rotateX(7deg) rotateY(-15deg) rotateZ(-21deg) scale(.9);
  }
}

/* El háptico del momento de la lectura */
.shake {
  width: 100%; height: 100%;
  animation: buzz var(--seq) linear infinite paused;
}
@keyframes buzz {
  0%, 18.1% { transform: none; }
  18.4%  { transform: translate(-1.6px, 1px) rotate(-.4deg); }
  18.9%  { transform: translate(1.6px, -1px) rotate(.4deg); }
  19.4%  { transform: translate(-1.2px, .8px) rotate(-.3deg); }
  19.9%  { transform: translate(1px, -.6px) rotate(.24deg); }
  20.6%  { transform: translate(-.5px, .3px) rotate(-.12deg); }
  21.4%, 100% { transform: none; }
}

/* ===========================
   EL IPHONE
   Cuerpo en puntos reales (393 × 852) y escalado con transform: así los
   tamaños de la interfaz son los mismos que en un iPhone de verdad.
=========================== */
.iph {
  --k: calc(var(--pw) / 393);
  position: absolute;
  top: 0; left: 0;
  width: 393px; height: 852px;
  transform: scale(var(--k));
  transform-origin: top left;
  border-radius: 58px;
  padding: 11px;                     /* el marco de titanio */
  background: linear-gradient(148deg, #2b2b2e 0%, #0e0e10 32%, #17171a 62%, #08080a 100%);
  box-shadow:
    0 2px 3px rgba(255, 255, 255, .1) inset,
    0 -2px 4px rgba(0, 0, 0, .6) inset,
    0 44px 70px -34px rgba(28, 18, 8, .62),
    0 12px 24px -16px rgba(28, 18, 8, .45);
}
/* Canto metálico */
.iph::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 58px;
  padding: 1.6px;
  background: conic-gradient(from 200deg,
    #55555b 0%, #cfcfd6 9%, #7e7e86 19%, #e9e9f0 29%,
    #5b5b62 42%, #b9b9c2 54%, #6a6a72 66%, #dedee6 78%,
    #62626a 89%, #55555b 100%);
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 40;
}
/* Botones laterales */
.iph__btn {
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #3a3a3f, #7d7d86 45%, #2c2c31);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .5);
}
.iph__btn--silent { left: -3px; top: 168px; height: 32px; }
.iph__btn--up     { left: -3px; top: 222px; height: 64px; }
.iph__btn--down   { left: -3px; top: 300px; height: 64px; }
.iph__btn--power  { right: -3px; top: 250px; height: 104px;
  background: linear-gradient(270deg, #3a3a3f, #7d7d86 45%, #2c2c31); }

.scr {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 47px;
  overflow: hidden;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

/* Reflejo del cristal + viñeta del borde */
.scr__glare {
  position: absolute;
  inset: -20% -40%;
  z-index: 32;
  pointer-events: none;
  background: linear-gradient(104deg,
    transparent 30%,
    rgba(255, 255, 255, .16) 42%,
    rgba(255, 255, 255, .05) 49%,
    transparent 58%);
  opacity: 0;
  animation: glare var(--seq) linear infinite paused;
}
@keyframes glare {
  0%   { opacity: 0;   transform: translateX(-64%); }
  5%   { opacity: .55; }
  20%  { opacity: .38; transform: translateX(36%); }
  30%, 100% { opacity: .1; transform: translateX(62%); }
}
.scr__vig {
  position: absolute;
  inset: 0;
  z-index: 33;
  pointer-events: none;
  border-radius: 47px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset,
              0 0 22px rgba(0, 0, 0, .5) inset;
}

/* Isla dinámica */
.island {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 126px; height: 37px;
  border-radius: 20px;
  background: #000;
  z-index: 31;
}
.island__cam {
  position: absolute;
  right: 13px; top: 50%;
  transform: translateY(-50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #2c3d52 0%, #10171f 52%, #05070a 100%);
  box-shadow: 0 0 0 .5px rgba(120, 150, 190, .25);
}

/* Barra de estado */
.sbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 54px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px 0 34px;
  color: #fff;
  animation: sbarInk var(--seq) linear infinite paused;
}
@keyframes sbarInk {
  0%, 43%    { color: #fff; }
  47.3%, 88% { color: #0B0B0C; }
  92%, 100%  { color: #fff; }
}
.sbar__time {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  opacity: 0;
  animation: sbarTime var(--seq) linear infinite paused;
}
@keyframes sbarTime {
  0%, 44.5%  { opacity: 0; }
  47.3%, 88% { opacity: 1; }
  90%, 100%  { opacity: 0; }
}
.sbar__right { display: flex; align-items: center; gap: 5px; }
.sbar__ic { height: 12px; width: auto; }
.sbar__ic--bat { height: 13px; }

/* ---------- Pantalla de bloqueo ---------- */
.lock {
  position: absolute;
  inset: 0;
  z-index: 10;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lockOut var(--seq) var(--ease) infinite paused;
}
@keyframes lockOut {
  0%, 42%    { opacity: 1; transform: scale(1); filter: blur(0); }
  47.3%, 89% { opacity: 0; transform: scale(1.05); filter: blur(4px); }
  93%, 100%  { opacity: 1; transform: scale(1); filter: blur(0); }
}
.lock__wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(225, 48, 108, .5) 0%, transparent 58%),
    radial-gradient(110% 70% at 12% 92%, rgba(88, 60, 170, .55) 0%, transparent 62%),
    radial-gradient(90% 60% at 50% 46%, rgba(250, 190, 120, .16) 0%, transparent 70%),
    linear-gradient(168deg, #241a2c 0%, #14101a 46%, #0a0910 100%);
  transition: background .6s var(--ease);
}
/* Cada destino trae su propio fondo de pantalla */
.demo[data-dest="google"] .lock__wall {
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(66, 133, 244, .5) 0%, transparent 58%),
    radial-gradient(110% 70% at 12% 92%, rgba(52, 168, 83, .38) 0%, transparent 62%),
    radial-gradient(90% 60% at 50% 46%, rgba(251, 188, 5, .16) 0%, transparent 70%),
    linear-gradient(168deg, #16233a 0%, #101724 48%, #080b12 100%);
}
.lock__pad { position: relative; width: 15px; margin-top: 62px; color: rgba(255,255,255,.92); }
.lock__date {
  position: relative;
  margin-top: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: rgba(255, 255, 255, .92);
}
.lock__time {
  position: relative;
  margin-top: -2px;
  font-size: 86px;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.1;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .3);
}
.lock__widgets {
  position: relative;
  display: flex;
  gap: 9px;
  margin-top: 14px;
}
.lock__w {
  width: 74px; height: 74px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 .5px rgba(255, 255, 255, .12) inset;
  padding: 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.lock__w i { display: block; width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,.34); }
.lock__w b { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.26); }
.lock__w:nth-child(2) b { width: 74%; }
.lock__w:nth-child(3) b { width: 54%; }
.lock__quick {
  position: absolute;
  left: 34px; right: 34px;
  bottom: 44px;
  display: flex;
  justify-content: space-between;
}
.lock__q {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .95);
}
.lock__q svg { width: 22px; height: 22px; }

.home-ind {
  position: absolute;
  left: 50%; bottom: 9px;
  transform: translateX(-50%);
  width: 140px; height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  z-index: 29;
  animation: homeInk var(--seq) linear infinite paused;
}
@keyframes homeInk {
  0%, 44%    { background: rgba(255, 255, 255, .85); }
  47.3%, 88% { background: rgba(11, 11, 12, .78); }
  92%, 100%  { background: rgba(255, 255, 255, .85); }
}

/* ---------- El aviso NFC de iOS ---------- */
.nfc-note {
  position: absolute;
  top: 62px; left: 11px; right: 11px;
  z-index: 28;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 24px;
  background: rgba(64, 60, 68, .58);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 0 0 .5px rgba(255, 255, 255, .13) inset,
              0 16px 34px -14px rgba(0, 0, 0, .65);
  color: #fff;
  opacity: 0;
  animation: nfcNote var(--seq) var(--ease-soft) infinite paused;
}
@keyframes nfcNote {
  0%, 25.5%{ opacity: 0; transform: translateY(-30px) scale(.93); }
  29%      { opacity: 1; transform: translateY(0) scale(1); }
  38.5%    { opacity: 1; transform: scale(1); }
  40.2%    { opacity: 1; transform: scale(.955); }   /* el toque */
  41.8%    { opacity: 1; transform: scale(1); }
  44.5%    { opacity: 0; transform: scale(1.05); }
  100%     { opacity: 0; transform: translateY(-30px) scale(.93); }
}
.nfc-note__ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 28% 106%, #FFD776 0%, #F58529 24%, #DD2A7B 58%, #8134AF 82%, #515BD4 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.nfc-note__ico svg { width: 24px; height: 24px; }
/* El icono de la app de Google es la G a color sobre blanco */
.nfc-note__ico--g { background: #fff; }
.nfc-note__ico--g svg { width: 22px; height: 22px; }
.nfc-note__txt { min-width: 0; }
.nfc-note__txt b {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.nfc-note__txt b i {
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, .62);
}
.nfc-note__txt > span {
  display: block;
  margin-top: 1px;
  font-size: 14px;
  color: rgba(255, 255, 255, .9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===========================
   LA APP QUE SE ABRE (perfil de Instagram)
=========================== */
.ig {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 54px 0 0;                 /* hueco de la barra de estado */
  transform-origin: 50% 7%;
  opacity: 0;
  animation: appIn var(--seq) var(--ease-soft) infinite paused;
}
@keyframes appIn {
  0%, 42%    { opacity: 0; transform: translateY(-152px) scale(.34); border-radius: 26px; }
  44.5%      { opacity: 1; }
  47.3%, 87% { opacity: 1; transform: translateY(0) scale(1); border-radius: 0; }
  91%, 100%  { opacity: 0; transform: translateY(0) scale(1); border-radius: 0; }
}
.ig__scroll {
  flex: 1;
  min-height: 0;                     /* si no, el contenido empuja la barra fuera */
  animation: igScroll var(--seq) var(--ease) infinite paused;
}
@keyframes igScroll {
  0%, 58%   { transform: translateY(0); }
  78%, 100% { transform: translateY(-52px); }
}

.ig__top {
  position: relative;
  z-index: 3;                        /* va fijo arriba, como en la app */
  flex-shrink: 0;
  height: 44px;
  padding: 0 14px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ig__top b { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.ig__chev { width: 15px; height: 15px; color: #000; }
.ig__grow { flex: 1; }
.ig__ic { width: 24px; height: 24px; margin-left: 15px; color: #000; }

.ig__head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 6px 16px 0;
}
.ig__ava {
  width: 88px; height: 88px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 2.5px;
  background: conic-gradient(from 200deg, #FFD776, #F58529, #DD2A7B, #8134AF, #515BD4, #FFD776);
}
.ig__ava span {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background:
    radial-gradient(circle at 38% 28%, #f3d9b8 0%, #d9a978 44%, #a8703c 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18) inset;
}
.ig__stats {
  flex: 1;
  display: flex;
  justify-content: space-around;
  text-align: center;
}
.ig__stats span { font-size: 13px; color: #000; line-height: 1.35; }
.ig__stats b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }

.ig__bio { padding: 13px 16px 0; }
.ig__bio > b { font-size: 14px; font-weight: 600; }
.ig__cat { display: block; font-size: 14px; color: #737373; margin-top: 1px; }
.ig__bio p { margin: 2px 0 0; font-size: 14px; line-height: 1.32; }
.ig__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #00376B;
}
.ig__link svg { width: 14px; height: 14px; }

.ig__acts {
  display: flex;
  gap: 7px;
  padding: 14px 16px 0;
}
.ig__btn {
  height: 32px;
  flex: 1;
  border-radius: 9px;
  background: #EFEFEF;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.ig__btn--main { background: #0095F6; color: #fff; }
.ig__btn--sq { flex: 0 0 40px; }
.ig__btn--sq svg { width: 15px; height: 15px; }

.ig__hl {
  display: flex;
  gap: 17px;
  padding: 17px 16px 14px;
}
.ig__h {
  width: 64px;
  font-size: 12px;
  text-align: center;
  color: #000;
}
.ig__h i {
  display: block;
  width: 64px; height: 64px;
  margin-bottom: 5px;
  border-radius: 50%;
  border: 1px solid #DBDBDB;
  padding: 3px;
  background: #fff;
}
.ig__h:nth-child(1) i { background: linear-gradient(160deg, #f6e2c3, #c08b4a) content-box, #fff; }
.ig__h:nth-child(2) i { background: linear-gradient(160deg, #cfe0ea, #6f8ea1) content-box, #fff; }
.ig__h:nth-child(3) i { background: linear-gradient(160deg, #f4d3d8, #b8737f) content-box, #fff; }
.ig__h:nth-child(4) i { background: linear-gradient(160deg, #ddd8cd, #8c8272) content-box, #fff; }

.ig__tabs {
  display: flex;
  border-top: .5px solid #DBDBDB;
}
.ig__tab {
  flex: 1;
  height: 44px;
  display: grid;
  place-items: center;
  color: #C7C7C7;
  border-bottom: 1.5px solid transparent;
}
.ig__tab svg { width: 24px; height: 24px; }
.ig__tab.is-on { color: #000; border-bottom-color: #000; }

.ig__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  margin-top: 1.5px;
}
.ig__ph {
  position: relative;
  aspect-ratio: 1;
  display: block;
  background: #eee;
}
.ig__ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(196deg, rgba(255,255,255,.14), transparent 44%),
              radial-gradient(120% 90% at 50% 120%, rgba(0,0,0,.22), transparent 62%);
}
.ig__ph--1 { background: radial-gradient(circle at 30% 24%, #f7dfb6, #cf9a52 62%, #8d5f28); }
.ig__ph--2 { background: linear-gradient(150deg, #2b3a47, #6a8291 70%, #b7c6cf); }
.ig__ph--3 { background: radial-gradient(circle at 70% 30%, #f6c9b0, #c9614a 70%, #7e2f26); }
.ig__ph--4 { background: linear-gradient(200deg, #e9e2d4, #b7a98f 68%, #7d715a); }
.ig__ph--5 { background: radial-gradient(circle at 40% 70%, #ffe8a8, #e2a33c 60%, #96591b); }
.ig__ph--6 { background: linear-gradient(160deg, #3f4f3a, #7d9370 68%, #c3d2b4); }
.ig__ph--7 { background: radial-gradient(circle at 60% 40%, #f2d8de, #c07689 66%, #7c3a4c); }
.ig__ph--8 { background: linear-gradient(140deg, #1f2732, #4a5b6e 72%, #96a7b6); }
.ig__ph--9 { background: radial-gradient(circle at 34% 30%, #fbe6c4, #d0a663 58%, #8a6432); }

.ig__nav {
  position: relative;
  z-index: 2;                        /* por encima de las fotos, que van posicionadas */
  height: 62px;
  padding: 0 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: .5px solid #DBDBDB;
  background: #fff;
  color: #000;
}
.ig__nav svg { width: 26px; height: 26px; }
.ig__me {
  width: 25px; height: 25px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #f3d9b8, #a8703c);
  box-shadow: 0 0 0 1px #000;
}

/* ===========================
   LA APP QUE SE ABRE (reseña de Google)
   Calcada de la pantalla real de Maps en tema oscuro: barra con la flecha y el
   nombre del sitio, la cuenta con la que se publica, las cinco estrellas
   contorneadas, el campo, «Añadir fotos» y «Publicar» abajo del todo.
=========================== */
.gr {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #1F1F1F;
  color: #E8EAED;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 54px 0 0;                 /* hueco de la barra de estado */
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  transform-origin: 50% 7%;
  opacity: 0;
  animation: appIn var(--seq) var(--ease-soft) infinite paused;
}

/* Barra superior */
.gr__bar {
  position: relative;
  flex-shrink: 0;
  height: 58px;
  display: flex;
  align-items: center;
}
.gr__back {
  position: relative;
  z-index: 1;
  width: 24px; height: 24px;
  margin-left: 16px;
  color: #E8EAED;
}
.gr__title {
  position: absolute;
  left: 56px; right: 56px;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  color: #E8EAED;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Con qué cuenta se publica */
.gr__user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px 0;
}
.gr__ava {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    linear-gradient(150deg, rgba(255,255,255,.2), transparent 46%),
    radial-gradient(circle at 34% 30%, #cfd8e3, #5b6b80 58%, #2c3644);
}
.gr__who { min-width: 0; }
.gr__who b {
  display: block;
  font-size: 17px;
  font-weight: 400;
  color: #E8EAED;
}
.gr__who > span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
  font-size: 13.5px;
  color: #9AA0A6;
}
.gr__who > span svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Las cinco estrellas */
.gr__stars {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 42px;
}
.gr__star {
  position: relative;
  width: 31px; height: 31px;
}
.gr__star svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gr__fill {
  opacity: 0;
  transform: scale(.55);
  animation: grStar var(--seq) var(--ease-soft) infinite paused;
}
/* El retardo desfasa la fase para siempre: se encienden en cadena */
.gr__star:nth-child(2) .gr__fill { animation-delay: .13s; }
.gr__star:nth-child(3) .gr__fill { animation-delay: .26s; }
.gr__star:nth-child(4) .gr__fill { animation-delay: .39s; }
.gr__star:nth-child(5) .gr__fill { animation-delay: .52s; }
@keyframes grStar {
  0%, 50%    { opacity: 0; transform: scale(.55); }
  52.5%      { opacity: 1; transform: scale(1.22); }
  54.5%, 88% { opacity: 1; transform: scale(1); }
  90.5%,100% { opacity: 0; transform: scale(1); }
}

/* Campo de texto */
.gr__field {
  margin: 46px 16px 0;
  padding: 15px 15px;
  height: 112px;
  border: 1px solid #5F6368;
  border-radius: 5px;
  font-size: 14.5px;
  line-height: 1.35;
  color: #C4C7C5;
}

/* Añadir fotos */
.gr__photos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 16px 0;
  height: 46px;
  border-radius: 999px;
  background: #2B3446;
  font-size: 15px;
  font-weight: 500;
  color: #E8EAED;
}
.gr__photos svg { width: 22px; height: 22px; color: #8AB4F8; }

/* Publicar: gris hasta que hay valoración */
.gr__post {
  margin: auto 16px 30px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #303030;
  color: #7C7F7C;
  font-size: 16px;
  font-weight: 500;
  animation: grPost var(--seq) var(--ease) infinite paused;
}
@keyframes grPost {
  0%, 57%   { background: #303030; color: #7C7F7C; }
  60%, 88%  { background: #8AB4F8; color: #202124; }
  91%, 100% { background: #303030; color: #7C7F7C; }
}

/* La pantalla de Google va en oscuro: la barra de estado y la barra de inicio
   se quedan en blanco en vez de virar a negro como con Instagram. */
.demo[data-dest="google"] .sbar { animation: none; color: #fff; }
.demo[data-dest="google"] .home-ind { animation: none; background: rgba(255, 255, 255, .85); }

/* ===========================
   LOS PASOS (van al compás de la escena)
=========================== */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flow__i {
  position: relative;
  display: flex;
  gap: 13px;
  padding: 14px 15px;
  border-radius: 15px;
  overflow: hidden;
  color: var(--fg-3);
  background: transparent;
  box-shadow: 0 0 0 1px var(--line) inset;
  animation-duration: var(--seq);
  animation-timing-function: var(--ease);
  animation-iteration-count: infinite;
  animation-play-state: paused;
}
.flow__n {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  padding-top: 2px;
  opacity: .55;
}
.flow__tx { min-width: 0; }
.flow__tx b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: inherit;
}
.flow__tx span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.45;
  color: inherit;
  opacity: .74;
}
.flow__bar {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  animation-duration: var(--seq);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

/* Ventanas: 01 → 4-18,2 % · 02 → 18,2-24 % · 03 → 24-42 % · 04 → 42-88 % */
.flow__i--1 { animation-name: stepOn1; }
.flow__i--2 { animation-name: stepOn2; }
.flow__i--3 { animation-name: stepOn3; }
.flow__i--4 { animation-name: stepOn4; }
.flow__i--1 .flow__bar { animation-name: stepBar1; }
.flow__i--2 .flow__bar { animation-name: stepBar2; }
.flow__i--3 .flow__bar { animation-name: stepBar3; }
.flow__i--4 .flow__bar { animation-name: stepBar4; }

@keyframes stepOn1 {
  0%, 3.4%   { color: var(--fg-3); background: transparent; box-shadow: 0 0 0 1px var(--line) inset; transform: none; }
  4%, 18.2%  { color: var(--fg); background: var(--panel); box-shadow: 0 0 0 1px var(--line-2) inset, 0 12px 26px -18px rgba(28,18,8,.5); transform: translateX(4px); }
  20%, 100%  { color: var(--fg-3); background: transparent; box-shadow: 0 0 0 1px var(--line) inset; transform: none; }
}
@keyframes stepOn2 {
  0%, 17.6%    { color: var(--fg-3); background: transparent; box-shadow: 0 0 0 1px var(--line) inset; transform: none; }
  18.2%, 25.5% { color: var(--fg); background: var(--panel); box-shadow: 0 0 0 1px var(--line-2) inset, 0 12px 26px -18px rgba(28,18,8,.5); transform: translateX(4px); }
  27.3%, 100%  { color: var(--fg-3); background: transparent; box-shadow: 0 0 0 1px var(--line) inset; transform: none; }
}
@keyframes stepOn3 {
  0%, 24.9%  { color: var(--fg-3); background: transparent; box-shadow: 0 0 0 1px var(--line) inset; transform: none; }
  25.5%, 42% { color: var(--fg); background: var(--panel); box-shadow: 0 0 0 1px var(--line-2) inset, 0 12px 26px -18px rgba(28,18,8,.5); transform: translateX(4px); }
  43.8%, 100% { color: var(--fg-3); background: transparent; box-shadow: 0 0 0 1px var(--line) inset; transform: none; }
}
@keyframes stepOn4 {
  0%, 41.4%  { color: var(--fg-3); background: transparent; box-shadow: 0 0 0 1px var(--line) inset; transform: none; }
  42%, 88%   { color: var(--fg); background: var(--panel); box-shadow: 0 0 0 1px var(--line-2) inset, 0 12px 26px -18px rgba(28,18,8,.5); transform: translateX(4px); }
  90%, 100%  { color: var(--fg-3); background: transparent; box-shadow: 0 0 0 1px var(--line) inset; transform: none; }
}
@keyframes stepBar1 {
  0%, 4%       { transform: scaleX(0); opacity: 1; }
  18.2%, 92%   { transform: scaleX(1); opacity: 1; }
  96%          { transform: scaleX(1); opacity: 0; }
  96.1%, 100%  { transform: scaleX(0); opacity: 0; }
}
@keyframes stepBar2 {
  0%, 18.2%    { transform: scaleX(0); opacity: 1; }
  25.5%, 92%   { transform: scaleX(1); opacity: 1; }
  96%          { transform: scaleX(1); opacity: 0; }
  96.1%, 100%  { transform: scaleX(0); opacity: 0; }
}
@keyframes stepBar3 {
  0%, 25.5%    { transform: scaleX(0); opacity: 1; }
  42%, 92%     { transform: scaleX(1); opacity: 1; }
  96%          { transform: scaleX(1); opacity: 0; }
  96.1%, 100%  { transform: scaleX(0); opacity: 0; }
}
@keyframes stepBar4 {
  0%, 42%      { transform: scaleX(0); opacity: 1; }
  88%, 92%     { transform: scaleX(1); opacity: 1; }
  96%          { transform: scaleX(1); opacity: 0; }
  96.1%, 100%  { transform: scaleX(0); opacity: 0; }
}

/* Solo corre cuando la sección está a la vista */
.scene.is-playing .scene__glow,
.scene.is-playing .plate__field,
.scene.is-playing .plate__lit,
.scene.is-playing .fly,
.scene.is-playing .shake,
.scene.is-playing .scr__glare,
.scene.is-playing .sbar,
.scene.is-playing .sbar__time,
.scene.is-playing .lock,
.scene.is-playing .home-ind,
.scene.is-playing .nfc-note,
.scene.is-playing .ig,
.scene.is-playing .ig__scroll,
.scene.is-playing .gr,
.scene.is-playing .gr__post,
.scene.is-playing .gr__fill,
.demo.is-playing .flow__i,
.demo.is-playing .flow__bar { animation-play-state: running; }

/* Un frame sin animación: es lo único que las devuelve a todas al fotograma 0
   a la vez. Pausar no rebobina, y la app que entra al cambiar de destino venía
   de `display: none`, así que empezaba su cuenta por su cuenta. */
.demo.is-rewind .scene *,
.demo.is-rewind .flow__i,
.demo.is-rewind .flow__bar { animation: none !important; }

@media (max-width: 1080px) {
  .demo__stage { grid-template-columns: 1fr 280px; }
  .scene { --pw: 240; }
  /* La escena se estrecha antes que el móvil: la placa cede un poco para no
     quedar pegada a él en reposo. */
  .plate { width: calc(var(--pw) * .95 * 1px); }
}
@media (max-width: 980px) {
  .demo__stage { grid-template-columns: 1fr; gap: 34px; }
  .scene {
    --pw: 250;
    --reach: clamp(140px, 30vw, 240px);
    --dip: 0px;
    /* Ojo: aquí la escena es el grid-item y todo su contenido va absoluto, así
       que con `margin: 0 auto` se quedaría en 0 px de ancho. */
    width: 100%;
    max-width: 620px;
    justify-self: center;
  }
  /* En la maqueta apilada la placa vuelve a su tamaño anterior: si no, se
     come el ancho de la escena. */
  .plate { left: 2%; width: calc(var(--pw) * .888 * 1px); }
  .flow { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) {
  .scene {
    --pw: 196;
    --reach: 31vw;
  }
  .plate { left: 0; }
  .fly { right: 0; }
  .flow__i { padding: 12px 13px; gap: 11px; }
  .flow__tx b { font-size: 13.5px; }
  .flow__tx span { font-size: 12px; }
}
@media (max-width: 380px) {
  .scene { --pw: 172; }
}

/* ===========================
   CATÁLOGO
=========================== */
.catalog { padding: clamp(60px, 8vw, 110px) 0; }

.catalog__grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
}

.plate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 24px;
  border-radius: 4px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -32px rgba(28,18,8,.45);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.plate-card::before {
  content: "";
  position: absolute;
  left: 50%; top: -34%;
  width: 116%; height: 76%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent) 0%, transparent 66%);
  opacity: 0;
  filter: blur(38px);
  pointer-events: none;
  transition: opacity .6s var(--ease);
}
.plate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 56px -32px rgba(28,18,8,.55);
}
.plate-card:hover::before { opacity: 1; }

.plate-card__media {
  position: relative;
  margin: 8px auto 20px;
  width: 80%;
  aspect-ratio: 1;
}
.plate-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(28,18,8,.26));
  transition: transform 1s var(--ease-soft);
}
.plate-card:hover .plate-card__media img { transform: scale(1.045) rotate(2deg); }

.plate-card__state {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  z-index: 2;
}
.plate-card__state::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-4);
}
.plate-card__state--live { color: var(--fg); }
.plate-card__state--live::before { background: var(--gold); box-shadow: 0 0 8px rgba(140,96,32,.6); }

.plate-card h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin: 0 0 7px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.plate-card h3::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
}
.plate-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-3);
  margin: 0 0 16px;
}
.plate-card p a {
  color: var(--gold);
  border-bottom: 1px solid rgba(140, 96, 32, .3);
  transition: border-color .25s var(--ease);
}
.plate-card p a:hover { border-bottom-color: var(--gold); }
.plate-card__use {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-4);
}

/* Tarjeta de personalizados */
.plate-card--custom {
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 0 0 1px rgba(28,18,8,.5), 0 28px 56px -32px rgba(28,18,8,.7);
  justify-content: center;
  text-align: center;
  align-items: center;
  padding: 34px 26px;
}
.plate-card--custom p { color: rgba(250,248,244,.72); }
.plate-card--custom h3 { justify-content: center; font-size: 21px; }
.plate-card--custom h3::before { display: none; }
.plate-card--custom .plate-card__use {
  border-top-color: rgba(250,248,244,.16);
  color: rgba(250,248,244,.55);
  width: 100%;
  margin-top: 24px;
}

.custom__disc {
  position: relative;
  width: 108px; height: 108px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  background:
    conic-gradient(from 0deg,
      #4285F4, #EA4335, #FBBC05, #34A853,
      #E1306C, #25D366, #0A66C2, #FF5A5F, #00AF87, #4285F4);
  animation: discSpin 14s linear infinite;
}
.custom__disc::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--fg);
}
.custom__disc svg {
  position: relative;
  z-index: 1;
  width: 38px; height: 38px;
  color: var(--bg);
  animation: discSpinBack 14s linear infinite;
}
@keyframes discSpin { to { transform: rotate(360deg); } }
@keyframes discSpinBack { to { transform: rotate(-360deg); } }

@media (max-width: 980px) { .catalog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .catalog__grid { grid-template-columns: 1fr; } }

/* ===========================
   RESEÑAS / GOHIGHRATED
=========================== */
.reviews {
  padding: clamp(60px, 8vw, 110px) 0;
  background: var(--bg-2);
}

.reviews__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.reviews__gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.reviews__gallery figure {
  margin: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--stone-ln), 0 24px 44px -28px rgba(28,18,8,.5);
}
.reviews__gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.4s var(--ease-soft);
}
.reviews__gallery figure:hover img { transform: scale(1.04); }
.reviews__gallery figure:nth-child(1) { grid-row: span 2; height: 100%; }
.reviews__gallery figure:nth-child(1) img { height: 100%; aspect-ratio: auto; }

.reviews__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line-2);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 22px;
}
.reviews__badge b { color: var(--gold); font-weight: 500; letter-spacing: .16em; }

.reviews__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 26px 0 30px;
}
.reviews__fact { display: flex; flex-direction: column; gap: 2px; }
.reviews__fact b {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1;
}
.reviews__fact span {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

@media (max-width: 900px) {
  .reviews__inner { grid-template-columns: 1fr; }
  .reviews__gallery { order: 2; }
}

/* ===========================
   SECTORES
=========================== */
.sectors { padding: clamp(60px, 8vw, 110px) 0; }

/* Rejilla de seis columnas: cada ficha ocupa dos, así la última
   fila de dos queda centrada en vez de dejar un hueco a la derecha. */
.sectors__grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(28px, 3.4vw, 46px) clamp(18px, 2.6vw, 28px);
}

.sector {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.sector:nth-child(4) { grid-column: 2 / span 2; }

.sector__shot {
  display: block;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--stone-ln), 0 24px 42px -32px rgba(28, 18, 8, .5);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.sector__shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.4s var(--ease-soft);
}
.sector:hover .sector__shot { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--stone-ln), 0 32px 54px -32px rgba(28, 18, 8, .6); }
.sector:hover .sector__shot img { transform: scale(1.045); }

/* El mismo filete dorado que abre cada paso del proceso */
.sector__body {
  position: relative;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
}
.sector__body::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 26px; height: 1px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(140, 96, 32, .45);
}

.sector__where {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.sector b {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin-bottom: 7px;
}
.sector__note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-3);
}

/* Banda de cierre con el resto de negocios */
.sectors__more {
  width: min(calc(100% - var(--pad) * 2), calc(var(--max) - var(--pad) * 2));
  margin: clamp(46px, 5vw, 70px) auto 0;
  padding: clamp(26px, 3vw, 36px) clamp(24px, 3vw, 38px);
  border-radius: 4px;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 46px);
  align-items: center;
}
.sectors__more-copy h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin: 0 0 9px;
}
.sectors__more-copy p {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--fg-3);
  margin: 0;
}
.sectors__tags {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sectors__tags li {
  font-size: 12px;
  color: var(--fg-2);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .3s var(--ease), color .3s var(--ease);
}
.sectors__tags li:hover { color: var(--fg); box-shadow: 0 0 0 1px var(--line-2); }

@media (max-width: 940px) {
  .sectors__grid { grid-template-columns: repeat(4, 1fr); }
  .sector:nth-child(4) { grid-column: span 2; }
  .sector:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 760px) {
  .sectors__more { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sectors__grid { grid-template-columns: 1fr; }
  .sector, .sector:nth-child(4), .sector:nth-child(5) { grid-column: 1 / -1; }
}

/* ===========================
   ESPECIFICACIONES
=========================== */
.specs {
  padding: clamp(60px, 8vw, 110px) 0;
  background: var(--bg-2);
}

.specs__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.specs__shot {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--stone-ln), 0 30px 54px -30px rgba(28,18,8,.55);
}
.specs__shot img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.specs__shot figcaption {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(250,248,244,.92);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.specs__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(24px, 3vw, 46px);
}
.specs__list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.specs__list li svg {
  width: 17px; height: 17px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}
.specs__list b {
  display: block;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 400;
  margin-bottom: 4px;
}
.specs__list span {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg);
}

@media (max-width: 900px) {
  .specs__inner { grid-template-columns: 1fr; }
  .specs__shot { max-width: 380px; }
}
@media (max-width: 620px) { .specs__list { grid-template-columns: 1fr; } }

/* ===========================
   PROCESO
=========================== */
.process { padding: clamp(60px, 8vw, 110px) 0; }

.steps {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.6vw, 38px);
}

.step { position: relative; padding-top: 26px; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line-2);
}
.step::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 26px; height: 1px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(140, 96, 32, .45);
}
.step__no {
  display: block;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 8px; }
.step p { font-size: 14px; line-height: 1.6; color: var(--fg-3); margin: 0; }

@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ===========================
   FAQ
=========================== */
.faq { padding: clamp(60px, 8vw, 110px) 0; background: var(--bg-2); }

.faq__list {
  width: min(100%, 840px);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.faq__list details { border-bottom: 1px solid var(--line-2); }
.faq__list summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 34px 22px 0;
  position: relative;
  font-size: clamp(15.5px, 1.6vw, 18px);
  letter-spacing: -0.012em;
  color: var(--fg);
  transition: color .3s var(--ease);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--gold); }
.faq__list summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 11px; height: 11px;
  margin-top: -5px;
  border-right: 1.5px solid var(--fg-3);
  border-bottom: 1.5px solid var(--fg-3);
  transform: rotate(45deg);
  transition: transform .35s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(-135deg); border-color: var(--gold); }
.faq__list details[open] summary { color: var(--gold); }
.faq__list details p {
  margin: 0 0 24px;
  padding-right: 34px;
  font-size: 15px;
  line-height: 1.68;
  color: var(--fg-3);
}
.faq__list details[open] p { animation: faqReveal .45s var(--ease-soft) both; }
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ===========================
   CIERRE
=========================== */
.closing {
  position: relative;
  isolation: isolate;
  padding: clamp(70px, 9vw, 124px) var(--pad);
  text-align: center;
  overflow: hidden;
}
.closing::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(780px, 122vw); height: min(780px, 122vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(140, 96, 32, .14) 0%, rgba(140, 96, 32, .03) 38%, transparent 66%);
  filter: blur(80px);
}
.closing__inner {
  width: min(100%, 640px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.closing__title {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 400;
  margin: 0 0 14px;
}
.closing__sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 32px;
  max-width: 48ch;
}
.closing__note {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--fg-3);
}
.closing__note a { color: var(--gold); border-bottom: 1px solid rgba(140,96,32,.35); }
.closing__note a:hover { border-bottom-color: var(--gold); }

/* ===========================
   FOOTER
=========================== */
.footer { padding: 56px 0 32px; }

.footer__top { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.footer__big { display: block; width: 100%; }
.footer__big img {
  width: 100%;
  max-width: 620px;
  height: auto;
  margin: 0 auto;
  opacity: .92;
  transition: opacity .3s var(--ease);
}
.footer__big:hover img { opacity: 1; }

.footer__cols {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) { .footer__cols { grid-template-columns: 1fr 1fr; gap: 30px; } }

.footer__eye {
  display: block;
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer__cols p {
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.6;
  max-width: 32ch;
  margin: 0;
}
.footer__cols ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--fg-3);
  font-size: 14px;
}
.footer__cols ul a { color: var(--fg-2); transition: color .25s var(--ease); }
.footer__cols ul a:hover { color: var(--gold); }

.footer__rule { height: 1px; background: var(--line); margin: 48px 0 24px; }

.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--fg-3);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  flex-wrap: wrap;
}
.footer__avail-row { display: inline-flex; align-items: center; gap: 8px; }

/* ===========================
   CTA FIJA EN MÓVIL
=========================== */
.sticky-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 85;
  display: none;
  justify-content: center;
  transform: translateY(140%);
  transition: transform .5s var(--ease-soft);
}
.sticky-cta.is-in { transform: none; }
.sticky-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 700px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 0; }
}

/* ===========================
   REVELADO
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__glow, .hero__float, .hero__waves span, .hero__cue,
  .ticker__track, .custom__disc, .custom__disc svg, .hero__badge-dot { animation: none !important; }
  .sector:hover .sector__shot, .sector:hover .sector__shot img,
  .plate-card:hover .plate-card__media img,
  .reviews__gallery figure:hover img { transform: none; }

  /* La secuencia se queda quieta en su fotograma final: el móvil apoyado,
     la app ya abierta y los cuatro pasos legibles de un vistazo. */
  .scene *, .flow__i, .flow__bar { animation: none !important; }
  .fly { opacity: 1; transform: none; }
  .lock, .nfc-note, .scr__glare, .scene__glow, .plate__field, .plate__lit { opacity: 0; }
  .ig, .gr { opacity: 1; transform: none; border-radius: 0; }
  .gr__fill { opacity: 1; transform: none; }
  .gr__post { background: #8AB4F8; color: #202124; }
  .sbar { color: #0B0B0C; }
  .sbar__time { opacity: 1; }
  .home-ind { background: rgba(11, 11, 12, .78); }
  .flow__i {
    color: var(--fg);
    background: var(--panel);
    box-shadow: 0 0 0 1px var(--line-2) inset;
  }
  .flow__bar { transform: scaleX(1); }
}
