/* bonoregalo.es · estilos de la página de bonos, la herramienta de tarjetas, la imagen de vista previa y la portada.
   Los cuatro temas viven en [data-tema]. La tarjeta de canvas lee de aquí las variables --t-*. */

/* ------------------------------------------------------------------ Base */

:root {
  color-scheme: light;
  --fuente-titulo: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --fuente-texto: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radio: 1.125rem;
  --ancho-max: 66rem;
  --whatsapp: #0F7B5F;
  --whatsapp-hover: #0B6249;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--fondo);
  color: var(--texto);
  font: 400 1.0625rem/1.55 var(--fuente-texto);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.saltar {
  position: absolute;
  left: .75rem; top: -4rem;
  z-index: 100;
  padding: .8rem 1.1rem;
  border-radius: .6rem;
  background: var(--accion);
  color: var(--sobre-accion);
  font-weight: 700;
  text-decoration: none;
}
.saltar:focus { top: .75rem; }

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
  border-radius: .4rem;
}

.icono {
  flex: none;
  width: 1.25rem; height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rompe { overflow-wrap: anywhere; }

/* ----------------------------------------------------------------- Temas */

:root,
[data-tema="rosa"] {
  --fondo: #FBF6F1;
  --fondo-2: #F4E9E2;
  --superficie: #FFFDFB;
  --texto: #3B2A2F;
  --texto-suave: #6A5459;
  --acento: #B76E79;
  --acento-texto: #96505C;
  --accion: #A25664;
  --accion-hover: #8E4655;
  --sobre-accion: #FFFFFF;
  --oro: #C9A45C;
  --oro-texto: #7D5F1F;
  --linea: rgba(59, 42, 47, .15);
  --foco: #7A2E3F;
  --borde-campo: #8A7479;
  --sombra: 0 .9rem 2rem -1.1rem rgba(122, 62, 74, .45);
  --portada-fondo:
    radial-gradient(70% 55% at 78% 46%, #F5D9D5 0%, rgba(245, 217, 213, 0) 72%),
    linear-gradient(180deg, #FBF6F1 0%, #F8ECE6 100%);
  --t-a: #FFF9F5;
  --t-b: #F1D6D2;
  --t-brillo: rgba(255, 255, 255, .75);
  --t-punto: rgba(150, 80, 92, .075);
  --t-texto: #3B2A2F;
  --t-suave: #74595F;
  --t-etq: #8C4A57;
  --t-oro: #C9A45C;
  --t-oro-1: #E6CD90;
  --t-oro-2: #A8843C;
  --t-cinta-1: #E6AEB6;
  --t-cinta-2: #B76E79;
  --t-cinta-3: #92505C;
  --t-cinta-borde: #D9B872;
}

[data-tema="noche"] {
  --fondo: #F8F2E9;
  --fondo-2: #F0E7D9;
  --superficie: #FFFCF7;
  --texto: #2A2522;
  --texto-suave: #62574E;
  --acento: #B8941F;
  --acento-texto: #7A5F0C;
  --accion: #1C1A19;
  --accion-hover: #3A3531;
  --sobre-accion: #F6E7B4;
  --oro: #D4AF37;
  --oro-texto: #7A5F0C;
  --linea: rgba(42, 37, 34, .16);
  --foco: #1C1A19;
  --borde-campo: #857A6E;
  --sombra: 0 .9rem 2rem -1.1rem rgba(28, 26, 25, .5);
  --portada-fondo:
    radial-gradient(58% 48% at 76% 44%, rgba(212, 175, 55, .22) 0%, rgba(212, 175, 55, 0) 72%),
    linear-gradient(180deg, #221F1D 0%, #1C1A19 100%);
  --pie-fondo: #1C1A19;
  --t-a: #272422;
  --t-b: #191716;
  --t-brillo: rgba(212, 175, 55, .13);
  --t-punto: rgba(255, 244, 214, .07);
  --t-texto: #F6EEDD;
  --t-suave: #BDB2A0;
  --t-etq: #D4AF37;
  --t-oro: #D4AF37;
  --t-oro-1: #F0D98A;
  --t-oro-2: #A8861F;
  --t-cinta-1: #F0D98A;
  --t-cinta-2: #D4AF37;
  --t-cinta-3: #A8861F;
  --t-cinta-borde: #F6E4A0;
}

[data-tema="bosque"] {
  --fondo: #F5F3EE;
  --fondo-2: #ECE9E1;
  --superficie: #FDFCF9;
  --texto: #1B2A23;
  --texto-suave: #52625A;
  --acento: #1F4D3A;
  --acento-texto: #1F4D3A;
  --accion: #1F4D3A;
  --accion-hover: #173B2C;
  --sobre-accion: #FFFFFF;
  --oro: #C9A45C;
  --oro-texto: #7A5F1A;
  --rojo: #C8102E;
  --linea: rgba(27, 42, 35, .16);
  --foco: #1F4D3A;
  --borde-campo: #788880;
  --sombra: 0 .9rem 2rem -1.1rem rgba(31, 77, 58, .55);
  --portada-fondo:
    radial-gradient(66% 52% at 76% 44%, #2F6A50 0%, rgba(47, 106, 80, 0) 72%),
    linear-gradient(180deg, #1F4D3A 0%, #1A4332 100%);
  --pie-fondo: #1F4D3A;
  --t-a: #FEFDF9;
  --t-b: #E8E4D6;
  --t-brillo: rgba(255, 255, 255, .8);
  --t-punto: rgba(31, 77, 58, .07);
  --t-texto: #1F4D3A;
  --t-suave: #56685F;
  --t-etq: #B00D27;
  --t-oro: #C9A45C;
  --t-oro-1: #E6CD90;
  --t-oro-2: #A8843C;
  --t-cinta-1: #E5455D;
  --t-cinta-2: #C8102E;
  --t-cinta-3: #9B0B24;
  --t-cinta-borde: #E6CD90;
}

[data-tema="calma"] {
  --fondo: #F4F7F9;
  --fondo-2: #E8EEF2;
  --superficie: #FFFFFF;
  --texto: #16293A;
  --texto-suave: #4C6072;
  --acento: #234E70;
  --acento-texto: #234E70;
  --accion: #234E70;
  --accion-hover: #1A3C57;
  --sobre-accion: #FFFFFF;
  --salvia: #7E9C8A;
  --oro: #C2A46A;
  --oro-texto: #6E5A2A;
  --linea: rgba(22, 41, 58, .15);
  --foco: #234E70;
  --borde-campo: #71859A;
  --sombra: 0 .9rem 2rem -1.1rem rgba(35, 78, 112, .5);
  --portada-fondo:
    radial-gradient(66% 56% at 78% 46%, rgba(126, 156, 138, .34) 0%, rgba(126, 156, 138, 0) 72%),
    linear-gradient(180deg, #F4F7F9 0%, #E9F0F3 100%);
  --t-a: #2D5E84;
  --t-b: #1B3E5B;
  --t-brillo: rgba(255, 255, 255, .14);
  --t-punto: rgba(255, 255, 255, .07);
  --t-texto: #F4F7F9;
  --t-suave: #C9D8E3;
  --t-etq: #CADDD1;
  --t-oro: #D2B67C;
  --t-oro-1: #EBD9AB;
  --t-oro-2: #AD9156;
  --t-cinta-1: #BCD3C4;
  --t-cinta-2: #7E9C8A;
  --t-cinta-3: #5B7A68;
  --t-cinta-borde: #EBD9AB;
}

/* Portadas y pies oscuros: dentro de ellos las variables de la página cambian de signo. */
[data-tema="noche"] .oscuro {
  --texto: #F6EEDD;
  --texto-suave: #D0C5B1;
  --acento-texto: #E2C45A;
  --oro-texto: #E2C45A;
  --accion: #D4AF37;
  --accion-hover: #E3C25A;
  --sobre-accion: #1C1A19;
  --linea: rgba(246, 238, 221, .22);
  --foco: #F0D98A;
}

[data-tema="bosque"] .oscuro {
  --texto: #F5F3EE;
  --texto-suave: #D2DDD6;
  --acento-texto: #E9D9A5;
  --oro-texto: #E9D9A5;
  --accion: #F5F3EE;
  --accion-hover: #FFFFFF;
  --sobre-accion: #1F4D3A;
  --linea: rgba(245, 243, 238, .24);
  --foco: #F5F3EE;
}

/* ---------------------------------------------------------------- Botones */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .6rem 1.35rem;
  border: 2px solid var(--accion);
  border-radius: 999px;
  background: var(--accion);
  color: var(--sobre-accion);
  font: 700 1rem/1.2 var(--fuente-texto);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.boton:hover { background: var(--accion-hover); border-color: var(--accion-hover); }
.boton:active { transform: translateY(1px); }
.boton:focus-visible { border-radius: 999px; }
.boton[disabled] { opacity: .55; cursor: not-allowed; }
.boton--contorno { background: transparent; color: var(--accion); }
.boton--contorno:hover { background: var(--accion); color: var(--sobre-accion); }
.boton--grande { min-height: 3.4rem; padding-inline: 1.9rem; font-size: 1.0625rem; }
.boton--ancho { width: 100%; }
.boton--chico { min-height: 2.75rem; padding: .45rem 1rem; font-size: .9375rem; }
.boton--whatsapp { border-color: var(--whatsapp); background: var(--whatsapp); color: #fff; }
.boton--whatsapp:hover { border-color: var(--whatsapp-hover); background: var(--whatsapp-hover); }

/* ----------------------------------------------------------- Aviso de demo */

.demo {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #211D1F;
  color: #FFF6E5;
  font-size: .8125rem;
  line-height: 1.35;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.demo__barra {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding: .3rem 1rem;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.demo__barra::-webkit-details-marker { display: none; }
.demo__barra:focus-visible { outline-color: #F0D98A; outline-offset: -3px; }
.demo__estrella { flex: none; fill: #E2C45A; }
.demo__texto { flex: 1; min-width: 0; font-weight: 700; text-wrap: balance; }
.demo__nota { white-space: nowrap; }
.demo__mas {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  color: #F0DDA2;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo__flecha { width: 1rem; height: 1rem; transition: transform .2s ease; }
.demo[open] .demo__flecha { transform: rotate(180deg); }
.demo__si-abierto, .demo[open] .demo__si-cerrado { display: none; }
.demo[open] .demo__si-abierto { display: inline; }
.demo__panel {
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding: .1rem 1rem 1rem;
}
.demo__oferta { max-width: 38rem; font-size: .9375rem; }
.demo__enlace {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 2.75rem;
  margin-top: .4rem;
  color: #F0D98A;
  font-weight: 700;
  font-size: .9375rem;
  text-underline-offset: 3px;
}
.demo__enlace:focus-visible { outline-color: #F0D98A; }

/* ---------------------------------------------------------------- Portada */

.portada {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: 2.4rem 1.25rem 3.4rem;
  background: var(--portada-fondo);
  color: var(--texto);
}
.chispas { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: clip; }
.chispa { position: absolute; fill: var(--oro); opacity: .5; transform: translate(-50%, -50%); }
.chispa--copo { fill: none; stroke: var(--oro); stroke-width: .7; stroke-linecap: round; opacity: .42; }

.portada__interior {
  display: grid;
  justify-items: center;
  gap: 2.6rem;
  max-width: var(--ancho-max);
  margin: 0 auto;
  text-align: center;
}
.portada__texto { max-width: 34rem; width: 100%; }
.portada__lugar {
  margin: 0 0 .9rem;
  color: var(--acento-texto);
  font: 700 .78rem/1.2 var(--fuente-texto);
  letter-spacing: .26em;
  text-transform: uppercase;
}
.portada__titulo {
  font-family: var(--fuente-titulo);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.portada__verbo {
  display: block;
  margin-bottom: .12em;
  color: var(--acento-texto);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.portada__nombre {
  display: block;
  width: 100%;
  font-size: 2.9rem;
  overflow-wrap: normal;
}
.portada__sub {
  margin-top: 1.1rem;
  color: var(--texto-suave);
  font-size: 1.1875rem;
}
.portada__texto .boton { margin-top: 1.7rem; }
.portada__tarjeta { padding: .6rem; }

/* --------------------------------------------------------- Tarjeta regalo */

.regalo {
  --w: clamp(15rem, 66vw, 18.5rem);
  --u: calc(var(--w) / 20);
  position: relative;
  flex: none;
  width: var(--w);
  aspect-ratio: 4 / 5;
  font-size: var(--u);
  color: var(--t-texto);
  font-family: var(--fuente-texto);
  transform: rotate(-2.4deg);
}
.regalo--recta { transform: none; }
.regalo--recta::before { display: none; }

/* una segunda tarjeta asoma por detrás */
.regalo::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--t-oro);
  border-radius: calc(var(--u) * 1.1);
  background: linear-gradient(158deg, var(--t-b), var(--t-a));
  box-shadow: 0 calc(var(--u) * 1.2) calc(var(--u) * 2.4) calc(var(--u) * -1.2) rgba(30, 15, 20, .4);
  transform: translate(calc(var(--u) * .9), calc(var(--u) * .35)) rotate(6deg);
  transform-origin: 80% 100%;
}

.regalo__cara {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--u) * 2.5) calc(var(--u) * 2.3) calc(var(--u) * 2.35);
  border-radius: calc(var(--u) * 1.1);
  background:
    radial-gradient(circle at 18% 6%, var(--t-brillo), transparent 58%),
    radial-gradient(circle, var(--t-punto) .9px, transparent 1.4px) 0 0 / 6px 6px,
    linear-gradient(158deg, var(--t-a), var(--t-b));
  box-shadow:
    0 calc(var(--u) * 1.6) calc(var(--u) * 3) calc(var(--u) * -1.3) rgba(30, 15, 20, .5),
    inset 0 0 0 1px rgba(255, 255, 255, .12);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.regalo__marco {
  position: absolute;
  inset: calc(var(--u) * .85);
  border: max(1px, calc(var(--u) * .075)) solid var(--t-oro);
  border-radius: calc(var(--u) * .7);
  pointer-events: none;
}
.regalo__marco--fino {
  inset: calc(var(--u) * 1.3);
  border-width: 1px;
  border-radius: calc(var(--u) * .45);
  opacity: .55;
}

.regalo__copo {
  position: absolute;
  top: calc(var(--u) * 1.95);
  width: calc(var(--u) * 1.7);
  height: calc(var(--u) * 1.7);
  fill: none;
  stroke: var(--t-oro);
  stroke-width: .75;
  stroke-linecap: round;
  opacity: .8;
}
.regalo__copo--a { left: calc(var(--u) * 2); }
.regalo__copo--b { right: calc(var(--u) * 2); }

.regalo__estrella {
  flex: none;
  width: calc(var(--u) * 1.4);
  height: calc(var(--u) * 1.4);
  fill: var(--t-oro);
}
.regalo__rotulo {
  margin: calc(var(--u) * .8) 0 0;
  color: var(--t-etq);
  font-size: calc(var(--u) * .62);
  font-weight: 700;
  letter-spacing: .3em;
  text-indent: .3em;
  line-height: 1.2;
  text-transform: uppercase;
}
.regalo__zona {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: calc(var(--u) * .35) 0 calc(var(--u) * 1.5);
}
.regalo__nombre {
  width: 100%;
  color: var(--t-texto);
  font-family: var(--fuente-titulo);
  font-size: 1.7em;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.07;
  text-wrap: balance;
}

.regalo__cinta {
  position: relative;
  z-index: 1;
  flex: none;
  align-self: stretch;
  height: calc(var(--u) * 2.1);
  margin: calc(var(--u) * .3) calc(var(--u) * -2.3) 0;
  border-block: max(1px, calc(var(--u) * .06)) solid var(--t-cinta-borde);
  background: linear-gradient(180deg, var(--t-cinta-1) 0%, var(--t-cinta-2) 40%, var(--t-cinta-3) 100%);
}
.regalo__cinta::before {
  content: "";
  position: absolute;
  inset: calc(var(--u) * .34) 0;
  border-block: 1px dashed rgba(255, 255, 255, .5);
}
.regalo__lazo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--u) * 9.6);
  height: auto;
  overflow: visible;
  transform: translate(-50%, -47%);
  filter: drop-shadow(0 calc(var(--u) * .22) calc(var(--u) * .3) rgba(0, 0, 0, .3));
}
.lazo__lazada, .lazo__cola, .lazo__nudo {
  fill: var(--t-cinta-2);
  stroke: var(--t-cinta-borde);
  stroke-width: 1;
  stroke-linejoin: round;
}
.lazo__cola { fill: var(--t-cinta-3); }
.lazo__hueco { fill: var(--t-cinta-3); opacity: .75; }
.lazo__pliegue { fill: none; stroke: var(--t-cinta-3); stroke-width: 1.3; stroke-linecap: round; opacity: .7; }
.lazo__brillo { fill: none; stroke: var(--t-cinta-1); stroke-width: 1.7; stroke-linecap: round; opacity: .9; }

.regalo__bajo {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * .55);
  width: 100%;
  padding-top: calc(var(--u) * 2.4);
}
.regalo__lema {
  color: var(--t-texto);
  font-family: var(--fuente-titulo);
  font-size: 1.3em;
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
}
.regalo__rama {
  width: calc(var(--u) * 8.4);
  height: auto;
  overflow: visible;
}
.rama__trazo { fill: none; stroke: var(--t-oro); stroke-width: 1.7; stroke-linecap: round; }
.rama__baya { fill: var(--t-cinta-2); }
.rama__estrella { fill: var(--t-oro); }
.regalo__pie {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * .2);
  color: var(--t-suave);
  font-size: .62em;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.3;
}
.regalo__lugar { font-weight: 800; letter-spacing: .26em; text-indent: .26em; text-transform: uppercase; }

@media (min-width: 56rem) {
  .portada { padding: 4.2rem 2rem 5rem; }
  .portada__interior { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; text-align: left; justify-items: start; }
  .portada__tarjeta { justify-self: center; }
  .portada__tarjeta .regalo { --w: clamp(18rem, 28vw, 22rem); }
  .portada__verbo { font-size: 2.1rem; }
}

/* --------------------------------------------------------------- Secciones */

.seccion { padding: 3.6rem 1.25rem; }
.seccion--alt { background: var(--fondo-2); }
.seccion__interior { max-width: var(--ancho-max); margin: 0 auto; }
.seccion__cabecera { max-width: 36rem; margin: 0 auto 2.1rem; text-align: center; }
.sobretitulo {
  margin: 0 0 .7rem;
  color: var(--acento-texto);
  font: 700 .75rem/1.2 var(--fuente-texto);
  letter-spacing: .26em;
  text-transform: uppercase;
}
.seccion h2 {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.75rem, 6.2vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.12;
  text-wrap: balance;
}
.seccion__sub { margin-top: .85rem; color: var(--texto-suave); text-wrap: balance; }
.filete {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin-top: 1.2rem;
  color: var(--oro);
}
.filete::before, .filete::after { content: ""; width: 3rem; height: 1px; background: currentColor; opacity: .75; }
.filete svg { width: .9rem; height: .9rem; fill: currentColor; }

/* ------------------------------------------------------------------- Bonos */

.bonos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 62rem;
  margin: 0 auto;
}
.bonos > li { display: flex; width: 100%; }
@media (min-width: 40rem) {
  .bonos > li { width: calc((100% - 1rem) / 2); }
}
@media (min-width: 62rem) {
  .bonos:not([data-n="4"]) > li { width: calc((100% - 2rem) / 3); }
}

.bono {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .4rem;
  padding: 1.5rem 1.4rem 1.25rem;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--superficie);
  box-shadow: var(--sombra);
}
.bono::before {
  content: "";
  position: absolute;
  inset: .45rem;
  border: 1px solid var(--oro);
  border-radius: calc(var(--radio) - .4rem);
  opacity: .35;
  pointer-events: none;
}
.bono__titulo {
  font-family: var(--fuente-titulo);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.005em;
}
.bono__detalle { color: var(--texto-suave); font-size: .96875rem; }
.bono__pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.1rem;
}
.bono__detalle + .bono__pie, .bono__titulo + .bono__pie { margin-top: auto; }
.bono__precio { display: flex; flex-direction: column; line-height: 1.1; }
.bono__importe {
  font-family: var(--fuente-titulo);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.bono__nota { margin-top: .3rem; color: var(--texto-suave); font-size: .75rem; font-weight: 600; }
.bono .boton { flex: none; }

.importes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  max-width: 44rem;
  margin: 0 auto;
}
.importes .boton {
  flex: 1 1 9.5rem;
  max-width: 14rem;
  background: var(--superficie);
  color: var(--accion);
  white-space: nowrap;
}
.importes .boton:hover { background: var(--accion); color: var(--sobre-accion); }

/* ----------------------------------------------------------- Cómo funciona */

.pasos {
  display: grid;
  gap: 1rem;
  max-width: 54rem;
  margin: 0 auto;
  counter-reset: paso;
}
.paso {
  position: relative;
  padding: 1.35rem 1.3rem 1.3rem 4.4rem;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--superficie);
}
.paso::before {
  counter-increment: paso;
  content: counter(paso);
  position: absolute;
  top: 1.25rem;
  left: 1.2rem;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1.5px solid var(--oro);
  border-radius: 50%;
  color: var(--acento-texto);
  font: 600 1.2rem/1 var(--fuente-titulo);
}
.paso__titulo { font-family: var(--fuente-titulo); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.paso__texto { margin-top: .25rem; color: var(--texto-suave); font-size: .9688rem; }
@media (min-width: 48rem) {
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .paso { padding: 4.3rem 1.4rem 1.5rem; text-align: center; }
  .paso::before { left: 50%; transform: translateX(-50%); top: 1.3rem; }
}

/* ------------------------------------------------------------------- Datos */

.datos { display: grid; gap: .9rem; max-width: 36rem; margin: 0 auto; }
.dato {
  display: flex;
  align-items: flex-start;
  gap: .95rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--superficie);
}
.dato > .icono { width: 1.5rem; height: 1.5rem; margin-top: .1rem; color: var(--acento-texto); }
.dato__cuerpo { flex: 1; min-width: 0; }
.dato__etiqueta {
  color: var(--texto-suave);
  font: 700 .72rem/1.3 var(--fuente-texto);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.dato__valor { font-weight: 600; overflow-wrap: anywhere; text-wrap: balance; }
.dato__valor a { text-underline-offset: 3px; }
.dato .boton { margin-top: .85rem; }

/* ------------------------------------------------------- WhatsApp flotante */

/* El hueco va entre el contenido y el pie: flota sobre la página, pero al llegar abajo se queda quieto sobre el pie, sin taparlo. */
.fab-hueco {
  position: sticky;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  justify-content: center;
  margin: 0 0 1.5rem;
  padding-inline: 1rem;
  pointer-events: none;
}
.fab {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .55rem 1.4rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  font: 700 1rem/1.2 var(--fuente-texto);
  text-decoration: none;
  box-shadow: 0 .6rem 1.4rem -.4rem rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .25);
  pointer-events: auto;
  transition: opacity .25s ease, transform .25s ease, background-color .15s ease;
}
.fab:hover { background: var(--whatsapp-hover); }
.fab:focus-visible { outline-color: var(--foco); outline-offset: 3px; border-radius: 999px; }
.fab--oculto { opacity: 0; transform: translateY(1rem); visibility: hidden; }
@media (min-width: 48rem) { .fab-hueco { display: none; } }

/* --------------------------------------------------------------------- Pie */

.pie {
  padding: 2.3rem 1.25rem calc(2.3rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linea);
  background: var(--pie-fondo, transparent);
  color: var(--texto-suave);
  font-size: .9375rem;
  text-align: center;
}
.pie__nombre {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--texto);
  font-family: var(--fuente-titulo);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}
.pie__marca { margin-top: .4rem; }
.pie__marca a {
  display: inline-block;
  padding: .75rem .4rem;
  color: var(--acento-texto);
  font-weight: 700;
  text-underline-offset: 3px;
}

.error { max-width: 30rem; margin: 0 auto; padding: 4rem 1.5rem; text-align: center; }
.error h1 { font-family: var(--fuente-titulo); font-size: 1.6rem; }
.error p { margin-top: .8rem; color: var(--texto-suave); }

/* --------------------------------------------------------------- Movimiento */

@media (prefers-reduced-motion: no-preference) {
  .portada__texto, .portada__tarjeta { animation: entra .7s cubic-bezier(.2, .7, .2, 1) both; }
  .portada__tarjeta { animation-delay: .12s; }
}
@keyframes entra {
  from { opacity: 0; transform: translateY(.8rem); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ Herramienta */

.herr { max-width: 70rem; margin: 0 auto; padding: 2.2rem 1.25rem 3.5rem; }
.herr__cabecera { max-width: 36rem; margin: 0 auto 2rem; text-align: center; }
.herr h1 {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.9rem, 8vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.08;
  text-wrap: balance;
}
.herr__nombre {
  display: block;
  margin-top: .35rem;
  color: var(--acento-texto);
  font-size: .62em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.herr__cabecera .seccion__sub { margin-top: .9rem; }
.herr__rejilla { display: grid; gap: 2rem; }

.vista { width: min(100%, 22rem); margin: 0 auto; }
.vista canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  background: var(--fondo-2);
  box-shadow: 0 1.4rem 2.4rem -1.4rem rgba(30, 15, 20, .6), 0 0 0 1px rgba(0, 0, 0, .06);
}
.vista figcaption { margin-top: .85rem; color: var(--texto-suave); font-size: .8125rem; text-align: center; }

.campo { display: grid; gap: .45rem; margin-bottom: 1.2rem; }
.campo > label { font-size: .9375rem; font-weight: 700; }
.campo__ayuda { color: var(--texto-suave); font-size: .8125rem; }
.campo__pie { display: flex; justify-content: flex-end; margin: -.9rem 0 1.2rem; }
.campo__cuenta { color: var(--texto-suave); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.campo__fila { display: flex; flex-wrap: wrap; gap: .6rem; }

.entrada {
  width: 100%;
  min-height: 3.1rem;
  padding: .7rem .95rem;
  border: 1.5px solid var(--borde-campo);
  border-radius: .8rem;
  background: var(--superficie);
  color: var(--texto);
  font-size: 1rem;
  line-height: 1.35;
  -webkit-appearance: none;
  appearance: none;
}
.entrada::placeholder { color: var(--texto-suave); opacity: 1; }
.entrada:focus { border-color: var(--foco); outline: 3px solid var(--foco); outline-offset: 2px; }
.entrada[aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 1px #B3261E; }
.entrada--select {
  padding-right: 2.7rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 1.2rem;
  text-overflow: ellipsis;
}
.entrada--area { min-height: 6.2rem; resize: vertical; }
.entrada--codigo {
  flex: 1 1 10rem;
  width: auto;
  background: var(--fondo-2);
  font: 800 1.2rem/1.2 var(--fuente-texto);
  letter-spacing: .12em;
}

.acciones { display: grid; gap: .7rem; margin: 1.7rem 0 .6rem; }
.acciones .boton { width: 100%; }
@media (min-width: 40rem) {
  .acciones { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .acciones .boton { padding-inline: .8rem; font-size: 1rem; }
}
.estado { min-height: 1.7rem; color: var(--acento-texto); font-weight: 700; }
.estado--error { color: #A31621; }

.registro {
  margin-top: 2.2rem;
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--superficie);
}
.registro__cabecera { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.registro h2 { font: 600 1.3rem/1.2 var(--fuente-titulo); }
.registro__sub, .registro__vacio { margin-top: .55rem; color: var(--texto-suave); font-size: .9rem; }
.registro__aviso { margin-top: .7rem; padding: .65rem .85rem; border-radius: .6rem; background: #FFF1D6; color: #5A3B00; font-size: .875rem; }
.registro__lista { margin-top: .9rem; }
.registro__fila { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .9rem 0; border-top: 1px solid var(--linea); }
.registro__datos { min-width: 0; }
.registro__fecha { color: var(--texto-suave); font-size: .75rem; font-weight: 600; }
.registro__quien { overflow-wrap: anywhere; }
.registro__codigo { color: var(--acento-texto); font: 800 .95rem/1.4 var(--fuente-texto); letter-spacing: .1em; }
.registro__borrar { flex: none; }
.registro__borrar--seguro { border-color: #A31621; background: #A31621; color: #fff; }
.registro__borrar--seguro:hover { border-color: #7F0F18; background: #7F0F18; }

@media (min-width: 60rem) {
  .herr__rejilla { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); align-items: start; gap: 3.5rem; }
  .vista { position: sticky; top: 4.5rem; width: 100%; }
  .herr__mando { max-width: 36rem; }
}

/* ------------------------------------------------------ Imagen de vista previa */

body.og { width: 1200px; height: 630px; margin: 0; overflow: hidden; background: #000; }
.og__lienzo {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 36px;
  width: 1200px;
  height: 630px;
  padding: 0 88px 0 92px;
  overflow: hidden;
  background: var(--portada-fondo);
  color: var(--texto);
}
.og__texto { min-width: 0; }
.og__sobre {
  margin: 0 0 26px;
  color: var(--acento-texto);
  font: 800 24px/1.2 var(--fuente-texto);
  letter-spacing: .28em;
  text-transform: uppercase;
}
.og__titulo { font-family: var(--fuente-titulo); font-weight: 600; line-height: 1.04; letter-spacing: -.012em; }
.og__verbo { display: block; margin-bottom: 6px; color: var(--acento-texto); font-size: 56px; font-style: italic; font-weight: 400; letter-spacing: 0; }
.og__nombre { display: block; width: 100%; font-size: 96px; overflow-wrap: normal; }
.og__lugar { margin-top: 28px; color: var(--texto-suave); font: 700 26px/1.3 var(--fuente-texto); letter-spacing: .02em; }
.og__tarjeta { display: grid; place-items: center; }
.og__tarjeta .regalo { --w: 392px; }
.og .chispa { opacity: .6; }

/* ------------------------------------------------------- Portada del sitio */

.inicio__marca {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  max-width: var(--ancho-max);
  margin: 0 auto 2.2rem;
  color: var(--texto);
  font: 600 1.3rem/1 var(--fuente-titulo);
  text-decoration: none;
}
.inicio__marca svg { width: 1.25rem; height: 1.25rem; fill: var(--oro); }
@media (min-width: 56rem) { .inicio__marca { margin: 0 0 3rem; } }
.inicio__titulo {
  font-family: var(--fuente-titulo);
  font-size: clamp(2.25rem, 9.6vw, 4rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.05;
  text-wrap: balance;
}
.inicio__titulo em { color: var(--acento-texto); font-weight: 400; }
.inicio__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.8rem; }
.inicio__acciones .boton { margin-top: 0; }
@media (min-width: 56rem) { .inicio__acciones { justify-content: flex-start; } }

.inicio__tarjetas {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 13.5rem;
  padding: .5rem 0 1rem;
}
.inicio__tarjetas .regalo { --w: clamp(7.4rem, 31vw, 10.5rem); margin-inline: calc(var(--w) * -.07); }
.inicio__tarjetas .regalo:nth-child(1) { z-index: 1; transform: translateY(.9rem) rotate(-7deg); }
.inicio__tarjetas .regalo:nth-child(2) { z-index: 3; transform: translateY(-.5rem) rotate(0deg); }
.inicio__tarjetas .regalo:nth-child(3) { z-index: 2; transform: translateY(.9rem) rotate(7deg); }
@media (min-width: 56rem) {
  .inicio__tarjetas { min-height: 22rem; }
  .inicio__tarjetas .regalo { --w: clamp(9.6rem, 13.5vw, 12rem); margin-inline: calc(var(--w) * -.04); }
}

.piezas { display: grid; gap: 1rem; max-width: 56rem; margin: 0 auto; }
.pieza {
  position: relative;
  padding: 1.7rem 1.5rem 1.4rem;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--superficie);
  box-shadow: var(--sombra);
}
.pieza::before {
  content: "";
  position: absolute;
  inset: .45rem;
  border: 1px solid var(--oro);
  border-radius: calc(var(--radio) - .4rem);
  opacity: .35;
  pointer-events: none;
}
.pieza h3 { font: 600 1.45rem/1.2 var(--fuente-titulo); letter-spacing: -.005em; }
.pieza p { margin-top: .65rem; color: var(--texto-suave); }
.pieza__enlaces { margin-top: .5rem; }
.pieza__enlaces a, .ejemplo__enlaces a, .paso__enlace {
  display: inline-block;
  padding: .65rem 0;
  color: var(--acento-texto);
  font-weight: 700;
  text-underline-offset: 3px;
}
.pieza__enlaces .icono, .ejemplo__enlaces .icono, .paso__enlace .icono {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: .2rem;
  vertical-align: -.2em;
}

.sectores { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; max-width: 46rem; margin: 0 auto; }
.sectores li {
  padding: .7rem 1.2rem;
  border: 1px solid var(--oro);
  border-radius: 999px;
  background: var(--superficie);
  font-weight: 600;
}

.precio {
  position: relative;
  max-width: 31rem;
  margin: 0 auto;
  padding: 2.2rem 1.6rem 2rem;
  border: 1px solid var(--linea);
  border-radius: calc(var(--radio) + .3rem);
  background: var(--superficie);
  box-shadow: var(--sombra);
  text-align: center;
}
.precio::before {
  content: "";
  position: absolute;
  inset: .5rem;
  border: 1px solid var(--oro);
  border-radius: calc(var(--radio) - .1rem);
  opacity: .4;
  pointer-events: none;
}
.precio__cifra { font: 600 clamp(3.8rem, 18vw, 5rem)/1 var(--fuente-titulo); letter-spacing: -.02em; }
.precio__nota {
  margin-top: .5rem;
  color: var(--acento-texto);
  font: 800 .8rem/1.3 var(--fuente-texto);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.precio__lista { display: grid; gap: .8rem; max-width: 24rem; margin: 1.6rem auto 0; text-align: left; }
.precio__lista li { display: flex; align-items: flex-start; gap: .75rem; }
.precio__lista .icono { width: 1.35rem; height: 1.35rem; margin-top: .2rem; color: var(--acento-texto); }

.ejemplos { display: grid; gap: 1rem; max-width: 56rem; margin: 0 auto; }
.ejemplo {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--superficie);
  box-shadow: var(--sombra);
}
.ejemplo .regalo { --w: 6rem; margin: .3rem .2rem .3rem 0; }
.ejemplo__texto { min-width: 0; }
.ejemplo__texto h3 { font: 600 1.25rem/1.2 var(--fuente-titulo); overflow-wrap: anywhere; }
.ejemplo__texto p { margin-top: .25rem; color: var(--texto-suave); font-size: .9375rem; }
.ejemplo__enlaces { display: flex; flex-direction: column; margin-top: .3rem; font-size: .9375rem; }

.cierre {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: 4.2rem 1.25rem 4.6rem;
  background: var(--portada-fondo);
  color: var(--texto);
  text-align: center;
}
.cierre__texto {
  max-width: 36rem;
  margin: 1.2rem auto 0;
  font-family: var(--fuente-titulo);
  font-size: clamp(1.55rem, 6.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.22;
  text-wrap: balance;
}
.cierre__texto em { display: block; margin-bottom: .35rem; color: var(--acento-texto); font-weight: 400; }
.cierre .filete { margin-top: 0; }

@media (min-width: 48rem) {
  .piezas, .ejemplos { grid-template-columns: 1fr 1fr; }
  
}
