/* SmartLink Noche · Vino y Champán | candidata HUAAAAHH 29/10/2026
   Tema nocturno con UN cambio deliberado a Marfil: la mesa de trabajo del oficio CNI (Taste 4.11, excepción única).
   Paleta aprobada por Dirección:
   Vino #5A1428 identidad y superficies estratégicas · Champán #E6CFA2 acción, foco y jerarquía
   Marfil #F8F4EB lectura y descanso · Carbón #191715 base nocturna.
   Forma: superficies 16px, evidencias 14px, controles pill, el "móvil" 34px (es un dispositivo).
   Capas z: nav 50, CTA flotante 60, skip 100. Sin fuentes ni recursos externos. */

:root {
  color-scheme: dark;

  /* Paleta oficial */
  --vino: #5A1428;
  --champan: #E6CFA2;
  --marfil: #F8F4EB;
  --carbon: #191715;

  /* Derivados (mezclas de la propia paleta) */
  --carbon-deep: #12100f;
  --carbon-2: #211e1c;
  --carbon-3: #2b2725;
  --carbon-4: #3b3431;
  --vino-deep: #260c13;
  --vino-mid: #3d0f1c;
  --vino-glow: #6a1930;
  --champan-hi: #f2e3c4;
  --champan-wash: rgb(230 207 162 / .08);
  --ink-on-vino: #f1ddd8;
  --paper: #fffcf6;
  --ink-paper: #4a403a;

  /* Semánticos */
  --bg: var(--carbon);
  --ink: var(--marfil);
  --ink-soft: #d3cabd;
  --ink-mute: #aca192;
  --accent: var(--champan);
  --accent-hi: var(--champan-hi);
  --on-accent: var(--carbon);
  --line: rgb(248 244 235 / .13);
  --line-accent: rgb(230 207 162 / .42);
  --shadow: 0 24px 60px -18px rgb(10 4 6 / .78);

  /* Tipografía: pila de sistema (no hay fuentes externas autorizadas) */
  --display: "Bahnschrift", "Segoe UI Variable Display", "Avenir Next", "Helvetica Neue", "Roboto Flex", system-ui, sans-serif;
  --body: system-ui, "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;

  /* Movimiento (Emil) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Forma y ritmo */
  --r-surface: 16px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --nav-h: 68px;
  --z-nav: 50;
  --z-fcta: 60;
  --z-skip: 100;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--carbon-4) var(--carbon-deep);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  caret-color: var(--accent);
  accent-color: var(--accent);
  font-variant-numeric: tabular-nums;
}

::selection { background: var(--accent); color: var(--on-accent); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: var(--z-skip);
  background: var(--accent); color: var(--on-accent); padding: .7rem 1.1rem;
  border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: top 160ms var(--ease-out);
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

/* Flecha de "se abre fuera": una sola definición vectorial, hereda el color del texto */
.go::after {
  content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .45em; flex: none;
  background: currentColor; vertical-align: -0.05em;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5 11.5 4.5M6 4.5h5.5V10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5 11.5 4.5M6 4.5h5.5V10'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px;
  font: 650 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 200ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--lg { min-height: 54px; padding: 0 1.9rem; font-size: 1.0625rem; }
.btn--xl { min-height: 64px; padding: 0 2.6rem; font-size: 1.25rem; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px rgb(0 0 0 / .7), inset 0 1px 0 rgb(255 255 255 / .35); }
.btn--ghost { background: rgb(25 23 21 / .6); color: var(--ink); border-color: rgb(248 244 235 / .5); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-hi); }
  .btn--ghost:hover { border-color: var(--accent); background: rgb(25 23 21 / .82); }
}

.round {
  min-height: 44px; padding: 0 1.2rem; border-radius: 999px; background: transparent;
  color: var(--ink); border: 1.5px solid var(--line); font: 600 .95rem/1 var(--body); cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 160ms ease;
}
.round:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .round:hover { border-color: var(--accent); } }

/* ---------- Navegación con marca SmartLink protagonista y CNI de respaldo ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: linear-gradient(180deg, rgb(25 23 21 / .78), rgb(25 23 21 / .35));
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.nav.is-stuck, .nav.is-open { background: var(--carbon); border-bottom-color: var(--line); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1rem; }
.nav__sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }

.brand { display: inline-flex; flex-direction: column; justify-content: center; gap: .2rem; text-decoration: none; min-height: 44px; }
.brand__word { font: 750 1.55rem/1 var(--display); letter-spacing: -0.02em; color: var(--marfil); }
.brand__by { display: inline-flex; align-items: center; gap: .4rem; font: 600 .72rem/1 var(--body); letter-spacing: .02em; color: var(--ink-soft); }
.brand__by img { width: 18px; height: 18px; border-radius: 4px; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 550; color: var(--ink); padding: .75rem 0; white-space: nowrap; transition: color 160ms ease; text-shadow: 0 1px 10px rgb(25 23 21 / .6); }
@media (hover: hover) and (pointer: fine) { .nav__links a:not(.btn):hover { color: var(--accent); } }
.nav__cta { min-height: 44px; box-shadow: none; }

.nav__toggle {
  display: none; align-items: center; gap: .7rem; min-height: 44px; padding: 0 1rem;
  background: rgb(25 23 21 / .55); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px;
  font: 600 .95rem/1 var(--body); cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 160ms ease;
}
.nav__toggle:active { transform: scale(0.97); }
.nav__toggle-bars, .nav__toggle-bars::before {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform 200ms var(--ease-out);
}
.nav__toggle-bars::before { content: ""; position: absolute; top: 5px; left: 0; }
.nav.is-open .nav__toggle-bars { transform: translateY(2px) rotate(45deg); }
.nav.is-open .nav__toggle-bars::before { top: 0; transform: rotate(-90deg); }

@media (max-width: 959px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem var(--gutter) 1.25rem; background: var(--carbon); border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
  }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__links a:not(.btn) { padding: .95rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); text-shadow: none; }
  .nav__cta { margin-top: 1rem; min-height: 52px; }
}
@media (min-width: 960px) and (max-width: 1099px) { .nav__links { gap: 1rem; } .nav__links a:not(.btn) { font-size: .95rem; } }

/* ---------- 1. Hero ----------
   Coordenadas medidas sobre hero-mesa.webp (1536x1024): vaso izq. x548-662, copa izq. x625-745,
   copa dcha. x1270-1400, vaso dcha. x1398-1535; todos entre y505 y y845. El móvil se apoya en la
   franja central libre (vela, planta y pan), nunca sobre una copa o un vaso, y el texto nunca los pisa.
   Móvil: la foto abre la página a sangre con el móvil dentro. Tableta: texto y foto 3:2 entera.
   Escritorio apaisado (>=1100px y >=3:2): foto a sangre en todo el hero, sin velo sobre las copas. */
.hero {
  --mh: clamp(180px, 30vh, 300px);
  position: relative; isolation: isolate; overflow: hidden; background: var(--carbon);
  margin-top: calc(var(--nav-h) * -1); padding-top: var(--nav-h);
  display: flex; flex-direction: column;
}
@supports (height: 1svh) { .hero { --mh: clamp(180px, 30svh, 300px); } }

.hero__grid { position: relative; z-index: 2; padding-block: 1.1rem 2rem; }
.hero__copy { max-width: 40rem; }

.hero h1 {
  font: 680 clamp(2.15rem, 4.35vw, 4.1rem)/1.1 var(--display);
  letter-spacing: -0.02em; text-wrap: balance; max-width: 15ch;
  padding-bottom: .08em; text-shadow: 0 2px 24px rgb(25 23 21 / .55);
}
.hero h1 em { font-style: italic; font-weight: 650; color: var(--accent); display: inline-block; padding-bottom: .1em; }
.hero__sub { margin-top: 1rem; max-width: 40ch; font-size: clamp(1.02rem, 1.5vw, 1.25rem); color: var(--ink); text-wrap: pretty; text-shadow: 0 1px 14px rgb(25 23 21 / .7); }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.hero .btn--ghost { background: rgb(25 23 21 / .74); border-color: rgb(248 244 235 / .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.hero__media { position: relative; z-index: 1; margin: 0; height: var(--mh); flex: none; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(0deg, var(--carbon) 0%, rgb(25 23 21 / 0) 30%); }

.hero__phone { position: absolute; z-index: 3; margin: 0; left: 50%; top: 6%; width: calc(var(--mh) * .39); }
.phone {
  border: 5px solid var(--carbon-3); border-radius: 20px; background: var(--carbon-3);
  box-shadow: 0 18px 40px -14px rgb(10 4 6 / .85), 0 0 0 1px rgb(230 207 162 / .28);
  transform: rotate(2deg); overflow: hidden;
}
.phone img { width: 100%; height: auto; border-radius: 15px; }
.hero__phone figcaption {
  position: absolute; z-index: 3; right: calc(100% + 10px); top: 2px; width: max-content; max-width: 40vw;
  font-size: .6875rem; line-height: 1.35; color: var(--ink-soft); text-align: right; text-shadow: 0 1px 8px rgb(25 23 21 / .95);
}

/* Tableta y escritorios no apaisados: texto arriba, foto 3:2 entera y el móvil sobre el mantel */
@media (min-width: 700px) {
  .hero__grid { order: -1; padding-block: 1.75rem 1.5rem; }
  .hero h1 { max-width: 15ch; }
  .hero__media { height: auto; width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
  .hero__media::after { display: none; }
  .hero__photo { position: static; aspect-ratio: 3 / 2; height: auto; border-radius: var(--r-surface); box-shadow: var(--shadow); object-position: 50% 50%; }
  .hero__phone { position: relative; left: auto; top: auto; width: min(32vw, 240px); margin: calc(min(100vw - 2 * var(--gutter), 760px) * -0.1) auto 0; }
  .phone { border-width: 8px; border-radius: 34px; }
  .phone img { border-radius: 26px; }
  .hero__phone figcaption { position: static; width: auto; max-width: none; margin-top: 1rem; text-align: center; font-size: .8125rem; }
  .hero { padding-bottom: 2.5rem; }
}

@media (min-width: 1100px) and (min-aspect-ratio: 3/2) {
  .hero { min-height: min(100dvh, 980px); padding-bottom: 0; justify-content: center; }
  .hero__grid { order: 0; min-height: min(calc(100dvh - var(--nav-h)), 912px); display: grid; align-items: center; padding-block: 2rem; }
  .hero__grid.wrap { max-width: none; padding-left: clamp(1.5rem, 6vw, 6rem); }
  .hero__copy { max-width: min(26rem, 30vw); }
  .hero h1 { font-size: clamp(2.15rem, 3.4vw, 3.4rem); max-width: none; }
  .hero__sub { max-width: 30ch; }
  .cta-row { display: grid; grid-template-columns: max-content; justify-items: stretch; }
  .hero__media { position: absolute; inset: 0; width: auto; height: auto; margin: 0; }
  .hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; object-position: 50% 58%; }
  /* Escena viva: solo un velo lateral para el texto (termina antes del primer vaso) y fundidos arriba y abajo */
  .hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgb(25 23 21 / .9) 0%, rgb(25 23 21 / .74) 22%, rgb(25 23 21 / .3) 33%, rgb(25 23 21 / 0) 40%); }
  .hero__media::after { display: block; background: linear-gradient(180deg, rgb(25 23 21 / .5) 0%, rgb(25 23 21 / 0) 14%, rgb(25 23 21 / 0) 86%, var(--carbon) 100%); }
  .hero__phone { position: absolute; left: 53.5%; top: 52%; margin: 0; width: clamp(180px, calc((100dvh - var(--nav-h)) * .34), 280px); translate: 0 -50%; }
  .hero__phone figcaption { color: var(--ink); text-shadow: 0 1px 10px rgb(25 23 21 / .95); }
}

/* QR: botón real con la miniatura del QR verdadero, superficie táctil generosa */
.qr-inline {
  display: inline-flex; align-items: center; gap: .9rem; min-height: 68px; margin-top: .9rem;
  padding: .5rem 1.2rem .5rem .5rem; border-radius: 18px; cursor: pointer; text-align: left;
  background: rgb(25 23 21 / .78); border: 1px solid var(--line-accent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--ink); font: 500 .9375rem/1.35 var(--body);
  box-shadow: inset 0 1px 0 rgb(248 244 235 / .06);
  transition: transform 160ms var(--ease-out), border-color 160ms ease, background-color 160ms ease;
}
.qr-inline__thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--marfil); padding: 4px; flex: none; }
.qr-inline strong { display: block; margin-top: .1rem; color: var(--accent); font-weight: 700; }
.qr-inline:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .qr-inline:hover { border-color: var(--accent); background: rgb(25 23 21 / .92); } }
.qr-inline:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 18px; }

/* ---------- Secciones ---------- */
.sec { padding-block: clamp(4rem, 9vw, 7.5rem); }
.sec__head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
h2 { font: 660 clamp(1.85rem, 3.5vw, 3.05rem)/1.1 var(--display); letter-spacing: -0.02em; text-wrap: balance; max-width: 24ch; }
.sec__head p { margin-top: 1rem; max-width: 58ch; color: var(--ink-soft); text-wrap: pretty; }
h3 { font: 650 1.25rem/1.2 var(--display); letter-spacing: -0.005em; }

/* ---------- 2. Escena editorial: cuatro piezas, un solo sistema (radio 16, pie inferior igual) ---------- */
.scene { background: radial-gradient(90% 70% at 100% 0%, rgb(90 20 40 / .45) 0%, rgb(90 20 40 / 0) 60%), linear-gradient(180deg, var(--carbon) 0%, #1e1517 100%); }
.scene__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.scene__cell { position: relative; margin: 0; border-radius: var(--r-surface); overflow: hidden; isolation: isolate; background: var(--carbon-3); box-shadow: 0 20px 44px -24px rgb(0 0 0 / .8); }
figure.scene__cell > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 700ms var(--ease-out); }
.scene__cell figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 1; display: grid; gap: .3rem; padding: 3.5rem 1.4rem 1.3rem;
  background: linear-gradient(0deg, rgb(18 16 15 / .92) 0%, rgb(18 16 15 / .6) 55%, rgb(18 16 15 / 0) 100%);
}
.scene__cell figcaption b { font: 680 clamp(1.25rem, 2vw, 1.6rem)/1.15 var(--display); letter-spacing: -0.01em; }
.scene__cell figcaption span { font-size: .9375rem; color: var(--ink); max-width: 42ch; }
@media (hover: hover) and (pointer: fine) { figure.scene__cell:hover > img { transform: scale(1.025); } }
/* La copa manda: imagen 4:3 sin recorte en móvil; en escritorio el recorte es solo lateral (la copa queda centrada y entera) */
.scene__cell--bebida > img { object-position: 50% 50%; }
.scene__cell--idiomas {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: center; padding: clamp(1rem, 3vw, 1.6rem);
  background: radial-gradient(120% 100% at 100% 0%, var(--vino-glow) 0%, var(--vino) 45%, var(--vino-mid) 100%);
  box-shadow: inset 0 0 0 1px rgb(230 207 162 / .18), 0 20px 44px -24px rgb(0 0 0 / .8);
}
.scene__cell--idiomas img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 22px -10px rgb(0 0 0 / .7); }
@media (min-width: 900px) {
  .scene__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: clamp(380px, 36vw, 500px) clamp(280px, 24vw, 340px); }
  figure.scene__cell > img { height: 100%; aspect-ratio: auto; }
  .scene__cell--plato { grid-column: 1 / 8; grid-row: 1; }
  .scene__cell--bebida { grid-column: 8 / 13; grid-row: 1; }
  .scene__cell--idiomas { grid-column: 1 / 6; grid-row: 2; gap: 14px; }
  .scene__cell--historia { grid-column: 6 / 13; grid-row: 2; }
}

/* ---------- 3 y 4. Bandas expansivas (APROBADAS, sin cambios de diseño) ---------- */
.showcase { background: linear-gradient(180deg, #1e1517 0%, var(--vino-deep) 22%, var(--vino-deep) 78%, var(--carbon) 100%); padding-bottom: clamp(3rem, 6vw, 5rem); }
.showcase--delivery { background: linear-gradient(180deg, var(--carbon) 0%, var(--carbon-2) 50%, var(--carbon) 100%); padding-top: clamp(2.5rem, 5vw, 4rem); }
.showcase .sec__head { margin-bottom: 1.75rem; }

.band {
  --card-w: min(72vw, 330px);
  position: relative; display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: .75rem calc((100vw - var(--card-w)) / 2) 1rem;
  scroll-padding-inline: calc((100vw - var(--card-w)) / 2);
}
.band::-webkit-scrollbar { display: none; }
.band__item {
  position: relative; flex: 0 0 var(--card-w); height: 420px; scroll-snap-align: center;
  border-radius: 14px; overflow: hidden; isolation: isolate; background: var(--carbon-3);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -18px rgb(0 0 0 / .8);
  transition: transform 320ms var(--ease-out), box-shadow 240ms ease;
}
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 560ms var(--ease-out), filter 320ms ease; }
.band__item::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(18 16 15 / .1) 8%, rgb(18 16 15 / .55) 46%, rgb(18 16 15 / .96) 100%); }

.band__trigger {
  position: absolute; inset: 0; z-index: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  text-align: left; background: transparent; border: 0; color: var(--ink); padding: 1.25rem 1.25rem 9rem; cursor: pointer; font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.band__trigger:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; border-radius: 12px; }
.band__tag {
  font: 700 .6875rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--carbon);
  background: var(--accent); padding: .35rem .55rem; border-radius: 999px; margin-bottom: .7rem;
}
.band__title { font: 720 clamp(1.6rem, 7vw, 2.1rem)/1.08 var(--display); letter-spacing: -0.02em; overflow-wrap: break-word; max-width: 100%; text-shadow: 0 2px 16px rgb(0 0 0 / .5); }
.band__type { margin-top: .35rem; font-size: .9375rem; line-height: 1.35; color: var(--ink-soft); }
.band__plus { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgb(248 244 235 / .6); background: rgb(18 16 15 / .35); transition: transform 200ms var(--ease-out), opacity 200ms ease; }
.band__plus::before, .band__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; border-radius: 2px; }
.band__plus::after { transform: rotate(90deg); }
.band__item.is-active .band__plus { opacity: 0; transform: scale(.8); }

.band__panel { position: absolute; z-index: 2; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; max-width: 30rem; }
.band__panel p { font-size: .9375rem; line-height: 1.45; color: var(--ink); margin-bottom: .85rem; }
.band__link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.2rem; border-radius: 999px; text-decoration: none;
  background: var(--accent); color: var(--on-accent); font: 700 .9375rem/1 var(--body);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.band__link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .band__link:hover { background: var(--accent-hi); } }

.band__item.is-active { box-shadow: inset 0 0 0 1.5px var(--line-accent), 0 22px 48px -18px rgb(0 0 0 / .85); }
.band__panel:not([hidden]) { animation: panel-in 280ms var(--ease-out) 120ms both; }

.js .band__item:not(.is-active) { transform: scale(.92); }
.js .band__item:not(.is-active) .band__img { filter: brightness(.62) saturate(.85); }

.band__dots { display: flex; justify-content: center; gap: 0; margin-top: .25rem; }
.band__dots button { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; padding: 0; }
.band__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgb(248 244 235 / .35); transition: transform 240ms var(--ease-out), background-color 200ms ease; }
.band__dots button[aria-current="true"]::before { transform: scaleX(2.6); background: var(--accent); }
.band__hint { text-align: center; font-size: .875rem; color: var(--ink-mute); margin-top: .1rem; }
.band__note { margin-top: 1.25rem; font-size: .875rem; color: var(--ink-mute); max-width: 1280px; }

@media (min-width: 721px) {
  .band { --card-w: 320px; }
  .js .band {
    overflow: visible; scroll-snap-type: none; padding: 0; gap: 10px;
    width: calc(100% - 2 * var(--gutter)); max-width: 1400px; margin-inline: auto; height: 460px;
  }
  .js .band--delivery { height: 400px; }
  .js .band__item { flex: 1 1 0%; height: auto; min-width: 0; transition: flex-grow 560ms var(--ease-drawer), box-shadow 240ms ease; }
  .js .band__item, .js .band__item:not(.is-active) { transform: none; }
  .js .band__item.is-active { flex-grow: 3.6; }
  .js .band--delivery .band__item.is-active { flex-grow: 2.6; }
  .js .band__item:not(.is-active) .band__trigger { padding: 1.1rem .9rem 1.2rem; }
  .js .band__item:not(.is-active) .band__tag { display: none; }
  .js .band__item:not(.is-active) .band__title { font-size: clamp(.95rem, 1.2vw, 1.15rem); line-height: 1.2; overflow-wrap: normal; }
  .js .band__item:not(.is-active) .band__type { font-size: .78rem; }
  .js .band__item.is-active .band__trigger { padding: 1.6rem 1.75rem 9rem; }
  .js .band__item.is-active .band__title { font-size: clamp(1.9rem, 2.9vw, 2.7rem); }
  .js .band__item.is-active .band__img { transform: scale(1.015); }
  .js .band__panel { left: 1.75rem; right: 1.5rem; bottom: 1.6rem; }
  .band__dots, .band__hint { display: none; }
}
@media (min-width: 721px) and (max-width: 1080px) {
  .js .band { height: 430px; gap: 8px; }
  .js .band__item.is-active { flex-grow: 3.2; }
  .js .band__item:not(.is-active) .band__type { display: none; }
}

/* ---------- 5. Herramientas del propietario: cada tarjeta enseña su pantalla real ---------- */
.tools { background: linear-gradient(180deg, var(--carbon) 0%, var(--carbon-2) 100%); }
.tools__cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.tools__card {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem; border-radius: var(--r-surface); padding: clamp(1.1rem, 2.6vw, 1.75rem);
  overflow: hidden; isolation: isolate;
}
.tools__card--sala { background: radial-gradient(130% 100% at 100% 0%, var(--vino-glow) 0%, var(--vino) 40%, var(--vino-mid) 100%); box-shadow: inset 0 0 0 1px rgb(230 207 162 / .18); }
.tools__card--costes { background: linear-gradient(160deg, var(--carbon-3) 0%, var(--carbon-2) 100%); box-shadow: inset 0 0 0 1px var(--line-accent); }
.tools__shot { height: 260px; border-radius: 14px; overflow: hidden; background: var(--carbon-deep); box-shadow: 0 16px 34px -16px rgb(0 0 0 / .85), 0 0 0 1px rgb(248 244 235 / .12); }
.tools__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tools__body { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.tools__card h3 { font: 720 clamp(1.6rem, 2.6vw, 2.2rem)/1.05 var(--display); letter-spacing: -0.025em; }
.tools__card p { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; max-width: 46ch; }
.tools__card--sala p { color: var(--ink-on-vino); }
.tools__card ul { display: grid; gap: .45rem; color: var(--ink); font-size: .9375rem; }
.tools__card li { display: flex; align-items: center; gap: .7rem; }
.tools__card li::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--accent); flex: none; }
.tools__fine { font-size: .875rem !important; color: var(--accent) !important; }
.tools__open { width: 100%; margin-top: auto; min-height: 52px; white-space: normal; text-align: center; line-height: 1.2; }
.tools__disclaimer { margin-top: 1.25rem; font-size: .875rem; color: var(--ink-mute); max-width: 70ch; }
.tools__disclaimer a { color: var(--accent); }
.tools__viewer { margin-top: 2rem; padding: clamp(.75rem, 2vw, 1.25rem); background: var(--carbon-deep); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-accent); scroll-margin-top: calc(var(--nav-h) + 12px); }
.tools__viewer[hidden] { display: none; }
.tools__viewer:not([hidden]) { animation: panel-in 260ms var(--ease-out) both; }
.tools__viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tools__viewer-top h3 { font: 720 clamp(1.3rem, 2.4vw, 1.75rem)/1.1 var(--display); }
.tools__viewer-top h3:focus { outline: none; }
.tools__viewer-note { font-size: .875rem; color: var(--ink-mute); margin: .5rem 0 1rem; }
.tools__viewer iframe { display: block; width: 100%; height: min(78vh, 820px); min-height: 480px; border: 0; border-radius: 12px; background: var(--marfil); }
.tools__full { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: .9375rem; font-weight: 700; margin-top: .5rem; }
@media (min-width: 560px) {
  .tools__card { grid-template-columns: minmax(150px, 36%) 1fr; align-items: stretch; }
  .tools__shot { height: auto; aspect-ratio: 9 / 16; max-height: 440px; align-self: start; }
}
@media (min-width: 1000px) { .tools__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 6. Orientación: la pregunta, dentro de una cocina preparando el servicio ---------- */
.orient { background: linear-gradient(120deg, var(--vino-deep) 0%, var(--vino-mid) 60%, #2a1016 100%); }
.orient__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: stretch; }
.orient__photo { position: relative; border-radius: var(--r-surface); overflow: hidden; box-shadow: var(--shadow); }
.orient__photo img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 40% 50%; }
.orient__box { align-self: center; }
.orient h2 { max-width: 22ch; }
.orient__explain { margin-top: 1rem; max-width: 56ch; color: var(--ink-on-vino); }
.choices { border: 0; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .7rem; grid-template-columns: 1fr; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.choice span {
  display: flex; align-items: center; min-height: 64px; padding: .9rem 1.2rem; border-radius: 14px;
  border: 1.5px solid rgb(248 244 235 / .26); background: rgb(18 16 15 / .38); font: 600 1.08rem/1.3 var(--display);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.choice:active span { transform: scale(0.98); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) { .choice input:not(:checked):hover + span { border-color: var(--accent); } }
.result { margin-top: 1.25rem; }
.result__body { padding: 1.3rem 1.4rem; border-radius: 14px; background: rgb(18 16 15 / .5); box-shadow: inset 0 0 0 1px var(--line-accent); }
.result__body:not([hidden]) { animation: panel-in 300ms var(--ease-out) both; }
.result__text { font: 560 clamp(1.1rem, 1.8vw, 1.4rem)/1.4 var(--display); max-width: 44ch; text-wrap: pretty; }
.result__demos { margin-top: .9rem; color: var(--ink-soft); }
.result__demos a { color: var(--accent); font-weight: 650; }
.result .btn { margin-top: 1.2rem; }
@media (min-width: 960px) {
  .orient__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .orient__photo img { aspect-ratio: auto; min-height: 560px; }
}

/* ---------- 7. El oficio CNI: la mesa de trabajo (Marfil) ---------- */
.craft { background: var(--marfil); color: var(--carbon); }
.craft h2 { max-width: 20ch; font-size: clamp(2rem, 4.2vw, 3.6rem); }
.craft__lead { margin-top: 1.1rem; max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-paper); }
.craft__top { display: grid; gap: clamp(1.5rem, 3vw, 3rem); grid-template-columns: 1fr; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.craft__room { position: relative; }
.craft__room img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 62%; border-radius: var(--r-surface); box-shadow: 0 24px 50px -24px rgb(61 15 28 / .55); }
.craft__room figcaption { margin-top: .8rem; font-size: .9375rem; line-height: 1.5; color: var(--ink-paper); max-width: 40ch; }
.craft__steps { display: grid; gap: clamp(1.75rem, 3vw, 2.25rem) clamp(1.25rem, 2.4vw, 2rem); grid-template-columns: 1fr; counter-reset: paso; }
.craft__step { display: flex; flex-direction: column; gap: .45rem; }
.craft__evidence {
  height: 220px; border-radius: 14px; overflow: hidden; margin-bottom: .55rem;
  background: var(--paper); box-shadow: 0 14px 30px -18px rgb(61 15 28 / .5), 0 0 0 1px rgb(90 20 40 / .12);
}
.craft__evidence img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.craft__evidence--phone { background: var(--carbon-2); display: grid; place-items: center; padding-top: 14px; }
.craft__evidence--phone img { width: auto; height: 100%; object-fit: contain; border-radius: 12px 12px 0 0; }
.craft__step:last-child .craft__evidence { background: var(--carbon-2); }
.craft__step:last-child .craft__evidence img { object-fit: contain; object-position: center bottom; padding: 12px 12px 0; }
.craft__evidence--sheet { padding: 1rem 1rem .5rem; display: flex; align-items: flex-start; }
.craft__evidence table { width: 100%; border-collapse: collapse; font-size: .8125rem; line-height: 1.35; color: var(--carbon); }
.craft__evidence th { text-align: left; font-weight: 700; color: var(--vino); padding: 0 .5rem .5rem 0; border-bottom: 1.5px solid rgb(90 20 40 / .35); }
.craft__evidence td { padding: .5rem .5rem .5rem 0; vertical-align: top; }
.craft__evidence tr + tr td { border-top: 1px solid rgb(25 23 21 / .1); }
.craft__evidence td:first-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-paper); }
.craft__evidence td:last-child { color: var(--vino); font-weight: 650; }
.craft__step h3 { font: 700 clamp(1.2rem, 1.8vw, 1.45rem)/1.2 var(--display); color: var(--carbon); counter-increment: paso; }
.craft__step h3::before { content: counter(paso) ". "; color: var(--vino); }
.craft__step p { color: var(--ink-paper); font-size: 1rem; line-height: 1.55; }
.craft__step .craft__proof { font-size: .8125rem; color: var(--vino); font-weight: 600; }
@media (min-width: 720px) { .craft__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .craft__top { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
@media (min-width: 1180px) { .craft__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 8. Límites y preguntas ---------- */
.faq-sec { background: var(--carbon-2); }
.faq { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.limits { display: grid; gap: 1.1rem; margin-top: 2rem; max-width: 44ch; }
.limits dt { font: 650 1.1rem/1.3 var(--display); color: var(--accent); }
.limits dd { margin-top: .25rem; color: var(--ink-soft); font-size: 1rem; }
.faq__list details + details { border-top: 1px solid var(--line); }
summary {
  position: relative; list-style: none; cursor: pointer; padding: 1.2rem 2.75rem 1.2rem 0;
  font: 620 1.15rem/1.35 var(--display); min-height: 56px; transition: color 160ms ease;
}
summary::-webkit-details-marker { display: none; }
summary::before, summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%; width: 14px; height: 2px; margin-top: -1px;
  background: var(--accent); border-radius: 2px; transition: transform 200ms var(--ease-out);
}
summary::before { transform: rotate(90deg); }
details[open] summary::before { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) { summary:hover { color: var(--accent); } }
details p { padding: 0 2.5rem 1.3rem 0; max-width: 58ch; color: var(--ink-soft); }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }

/* ---------- 9. Pre-footer cinematográfico ---------- */
.prefooter { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: clamp(620px, 92vh, 860px); background: var(--vino-deep); }
.prefooter__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 76% 50%; }
.prefooter::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgb(38 12 19 / .97) 0%, rgb(38 12 19 / .86) 38%, rgb(38 12 19 / .3) 70%, rgb(38 12 19 / .12) 100%); }
.prefooter__inner { padding-block: clamp(4rem, 9vw, 7rem); }
.prefooter h2 { font-size: clamp(2.3rem, 5.6vw, 4.8rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 15ch; text-shadow: 0 2px 30px rgb(25 23 21 / .5); }
.prefooter__lead { margin-top: 1.2rem; max-width: 30ch; font: 560 clamp(1.25rem, 2.4vw, 1.9rem)/1.3 var(--display); color: var(--accent); text-wrap: balance; }
.prefooter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2.2rem; }
.prefooter__mail { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 600; text-underline-offset: .3em; }
@media (hover: hover) and (pointer: fine) { .prefooter__mail:hover { color: var(--accent); } }
.prefooter__zone { margin-top: 1.6rem; font-size: .9375rem; color: var(--ink-on-vino); }
@media (min-width: 900px) {
  .prefooter { align-items: center; }
  .prefooter::before { background: linear-gradient(90deg, rgb(38 12 19 / .95) 0%, rgb(38 12 19 / .82) 34%, rgb(38 12 19 / .25) 62%, rgb(38 12 19 / .05) 100%), linear-gradient(0deg, rgb(25 23 21 / .6) 0%, rgb(25 23 21 / 0) 30%); }
  .prefooter__photo { object-position: 50% 50%; }
}

/* ---------- 10. Pie corporativo ---------- */
.foot { background: linear-gradient(180deg, var(--vino-deep) 0%, var(--carbon-deep) 70%); border-top: 1px solid rgb(230 207 162 / .25); padding-block: clamp(3rem, 6vw, 4.5rem) calc(3rem + env(safe-area-inset-bottom)); }
.foot__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.foot__word { font: 750 clamp(2rem, 4vw, 2.6rem)/1 var(--display); letter-spacing: -0.02em; }
.foot__by { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; color: var(--ink-soft); font-size: .9375rem; line-height: 1.4; }
.foot__by img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.foot__by strong { color: var(--ink); font-weight: 650; }
.foot__title { font: 700 .9375rem/1.2 var(--display); color: var(--accent); max-width: none; margin-bottom: .5rem; letter-spacing: 0; }
.foot__title--gap { margin-top: 1.4rem; }
.foot__col p { color: var(--ink-soft); font-size: .9375rem; }
.foot__col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration-color: rgb(248 244 235 / .35); }
@media (hover: hover) and (pointer: fine) { .foot__col a:hover { color: var(--accent); } }
.foot__legal { font-size: .8125rem; color: var(--ink-mute); max-width: none; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } .foot__legal { grid-column: 1 / -1; } }

/* ---------- Diálogo QR ---------- */
.qr-dialog {
  border: 1px solid var(--line-accent); border-radius: 22px; max-width: min(94vw, 460px); width: 100%; padding: 0;
  max-height: calc(100dvh - 2rem); overflow: auto;
  background: var(--carbon-2); color: var(--ink); box-shadow: 0 20px 40px -16px rgb(0 0 0 / .8);
}
.qr-dialog::backdrop { background: rgb(18 16 15 / .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.qr-dialog[open] { animation: dialog-in 220ms var(--ease-out) both; }
.qr-dialog__inner { display: flex; align-items: center; flex-direction: column; gap: .8rem; padding: 3.75rem 1.75rem 1.75rem; text-align: center; }
.qr-dialog h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); letter-spacing: -0.02em; }
.qr-dialog__inner p { font-size: .9375rem; color: var(--ink-soft); max-width: 34ch; }
.qr-dialog__inner img { width: min(100%, 300px); border: 14px solid var(--marfil); background: var(--marfil); border-radius: 14px; margin-top: .4rem; }
.qr-dialog__inner a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; color: var(--accent); font-weight: 700; }
.qr-dialog__close {
  position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--carbon-3); color: var(--ink); cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 160ms ease;
}
.qr-dialog__close::before, .qr-dialog__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: currentColor; border-radius: 2px; transform: rotate(45deg); }
.qr-dialog__close::after { transform: rotate(-45deg); }
.qr-dialog__close:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .qr-dialog__close:hover { border-color: var(--accent); } }

/* ---------- CTA persistente «Pedir estudio» (de Claude, en Vino + Champán) ----------
   Compañero comercial en móvil y tableta: acompaña también dentro de las galerías.
   Entrada ease-out 220 ms, salida 160 ms; :active scale(.97); solo transform/opacity.
   Dos pulsos la primera vez que aparece. Sin audio. Desde 960 px lo asume la cabecera fija. */
.fcta {
  position: fixed; z-index: var(--z-fcta);
  right: max(16px, calc(env(safe-area-inset-right) + 16px));
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 16px));
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 60px; max-width: calc(100vw - 32px); padding: 0 1.6rem 0 4.6rem; border-radius: 999px;
  background: linear-gradient(180deg, var(--champan-hi) 0%, var(--champan) 100%);
  color: var(--on-accent); font: 700 1.125rem/1 var(--body); white-space: nowrap; text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 0 0 6px rgb(90 20 40 / .55), 0 18px 40px -12px rgb(0 0 0 / .85);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px);
  transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out), visibility 0s linear 160ms;
}
.fcta.is-on {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out), visibility 0s;
}
.fcta::before { content: ""; width: 9px; height: 9px; order: 2; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-left: .1rem; }
/* Captura real de la demo de El Rincón: 84 px de alto sobre un botón de 60, asoma 24 px */
.fcta__phone {
  position: absolute; left: 1.05rem; bottom: 0; width: 44px; height: 84px;
  border-radius: 12px 12px 0 0; border: 2.5px solid var(--carbon); border-bottom: 0;
  object-fit: cover; object-position: top; background: var(--carbon-2);
  box-shadow: 0 -6px 18px -6px rgb(0 0 0 / .6); pointer-events: none;
}
.fcta::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; border: 2px solid var(--champan); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .fcta.is-pulse::after { animation: fcta-pulso 1.5s var(--ease-out) 450ms 2; }
}
.fcta.is-on:active { transform: scale(0.97); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine) { .fcta.is-on:hover { filter: brightness(1.05); } }
.fcta:focus-visible { outline: 2px solid var(--marfil); outline-offset: 6px; }
html:not(.js) .fcta { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
/* No ocultar en escritorio: acompana tambien al visitante que recorre la web en PC. */
@media (min-width: 960px) { .fcta { right: max(28px, calc(env(safe-area-inset-right) + 28px)); bottom: max(24px, calc(env(safe-area-inset-bottom) + 24px)); } }

/* ---------- Movimiento ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lights { from { filter: brightness(.7) saturate(.9); } to { filter: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fcta-pulso { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(1.16, 1.5); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  /* Una sola escena firmada: la sala se enciende y el contenido sube en cascada */
  .hero__photo { animation: lights 1200ms var(--ease-out) 60ms both; }
  .hero__copy > * { animation: rise 700ms var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: 80ms; }
  .hero__copy > :nth-child(3) { animation-delay: 140ms; }
  .hero__copy > :nth-child(4) { animation-delay: 180ms; }
  .hero__phone { animation: rise 900ms var(--ease-out) 260ms both; }

  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .craft__steps .reveal:nth-child(2) { transition-delay: 60ms; }
  .js .craft__steps .reveal:nth-child(3) { transition-delay: 120ms; }
  .js .craft__steps .reveal:nth-child(4) { transition-delay: 180ms; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active, .round:active, .choice:active span, .qr-inline:active, .band__link:active, .nav__toggle:active, .qr-dialog__close:active, .fcta, .fcta.is-on, .fcta.is-on:active { transform: none; }
  figure.scene__cell:hover > img { transform: none; }
  .nav__links { transform: none; transition: opacity 120ms ease, visibility 0s linear 120ms; }
  .nav.is-open .nav__links { transition-delay: 0s; }
  .nav__toggle-bars, .nav__toggle-bars::before { transition: none; }
  .js .band__item, .js .band__item:not(.is-active) { transform: none; transition: box-shadow 200ms ease; }
  .js .band__item.is-active .band__img { transform: none; }
  .band__panel:not([hidden]), .result__body:not([hidden]), .tools__viewer:not([hidden]) { animation: fade 160ms ease both; }
  .qr-dialog[open] { animation: fade 160ms ease both; }
}

@media (max-width: 560px) {
  .btn--lg { padding: 0 1.3rem; }
  .cta-row .btn { flex: 1 1 100%; }
  .qr-inline { width: 100%; }
  .prefooter__actions .btn { width: 100%; }
  .result .btn { width: 100%; }
}

/* Imagen ilustrativa de implantación, con encuadre equivalente al resto de la cuadrícula. */
.craft__step:last-child .craft__evidence--scene { background: var(--paper); }
.craft__step:last-child .craft__evidence--scene img { width: 100%; height: 100%; object-fit: cover; object-position: center; padding: 0; }


/* Identidad aprobada SmartLink: imagen original, sin redibujados ni tipografías sustitutivas. */
.brand { flex-direction: row; align-items: center; min-width: 0; flex: none; }
.brand__logo {
  display: block;
  width: clamp(174px, 18vw, 238px);
  height: auto;
  max-height: calc(var(--nav-h) - 8px);
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgb(247 164 49 / .12));
}
@media (max-width: 640px) {
  .brand__logo { width: clamp(156px, 46vw, 208px); }
}
@media (min-width: 960px) and (max-width: 1140px) {
  .brand__logo { width: 183px; }
}
/* Firma visual del final: logotipo SmartLink protagonista, CNI atribuido debajo. */
.foot {
  background:
    radial-gradient(ellipse 58% 38% at 50% 12%, rgb(126 23 39 / .27), transparent 75%),
    linear-gradient(180deg, var(--vino-deep) 0%, var(--carbon-deep) 78%);
}
.foot__grid { row-gap: clamp(2rem, 4vw, 3.25rem); }
.foot__brand {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(.4rem, 2vw, 1.4rem);
}
.foot__logo {
  display: block;
  width: min(100%, 800px);
  height: auto;
  object-fit: contain;
  margin-inline: auto;
  filter: drop-shadow(0 6px 24px rgb(252 184 58 / .1));
}
.foot__by {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.7rem, 1.5vw, 1.1rem);
  text-align: left;
  margin: clamp(.6rem, 2vw, 1.3rem) auto 0;
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
}
.foot__by img {
  width: clamp(48px, 5.5vw, 64px);
  height: clamp(48px, 5.5vw, 64px);
  border-radius: 12px;
  object-fit: contain;
}
.foot__by strong {
  display: inline-block;
  font-size: clamp(1.05rem, 1.85vw, 1.45rem);
  line-height: 1.25;
  font-weight: 750;
}
.foot__col { min-width: 0; }
.foot__legal { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(3rem, 8vw, 9rem); }
  .foot__col { max-width: 520px; }
}
@media (max-width: 520px) {
  .foot__logo { width: 100%; }
  .foot__by { gap: .65rem; font-size: .9rem; }
  .foot__by img { width: 44px; height: 44px; }
  .foot__by strong { font-size: .99rem; }
}

/* Recorte óptico de la línea residual del borde de la imagen, conservando intacto el PNG original. */
.brand__logo, .foot__logo { clip-path: inset(0 1.5px 0 1.5px); }
