/* Popelka — estilos compartidos por todas las landings de pago */

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* Tipografía principal del logo */
@font-face {
  font-family: "AR Bonnie";
  src: url("/assets/fonts/ar-bonnie.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* Tipografía secundaria de marca (bajadas, etiquetas, botones) */
@font-face {
  font-family: "Sweet Sans Pro";
  src: url("/assets/fonts/sweet-sans-pro-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Sweet Sans Pro";
  src: url("/assets/fonts/sweet-sans-pro-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Sweet Sans Pro";
  src: url("/assets/fonts/sweet-sans-pro-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Paleta tomada del kit de marca */
  --amarillo: #fbc818;
  --gris: #575757;
  --gris-oscuro: #3f3f3f;
  --verde: #4b6d4a;
  --crema: #f7f0e8;

  --fondo: var(--gris);
  --texto: var(--crema);
  --acento: var(--amarillo);

  --radio: 14px;
  --f-display: "AR Bonnie", "Sweet Sans Pro", serif;
  --f-marca: "Sweet Sans Pro", "DM Sans", system-ui, sans-serif;
  --f-texto: "DM Sans", system-ui, -apple-system, sans-serif;
  font-family: var(--f-texto);
}

/* Variante verde: <body class="tema-verde"> */
.tema-verde {
  --fondo: var(--verde);
  --gris-oscuro: #3b573a;
}

* { box-sizing: border-box; margin: 0; }

html, body { min-height: 100%; }

body {
  min-height: 100dvh;
  background: var(--fondo);
  color: var(--texto);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(28px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Perrito de fondo, decorativo */
body::after {
  content: "";
  position: fixed;
  right: -18vw;
  bottom: -6vh;
  width: min(80vw, 420px);
  aspect-ratio: 700 / 1103;
  background: url("/assets/img/simbolo-crema.webp") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}

.logo {
  display: block;
  width: 62%;
  max-width: 240px;
  height: auto;
  margin: 8px auto 0;
}

.titulo {
  font-family: var(--f-marca);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}

.titulo strong {
  display: block;
  margin-top: 6px;
  font-family: var(--f-display);
  font-size: clamp(2.3rem, 11vw, 3.1rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--acento);
  font-weight: 400;
}

/* ---------- Bloques de pago ---------- */

.bloque {
  background: var(--gris-oscuro);
  border-radius: var(--radio);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bloque h2 {
  font-family: var(--f-marca);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.boton {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 14px;
  border-radius: 999px;
  font: inherit;
  font-family: var(--f-marca);
  font-size: clamp(0.8rem, 3.7vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.boton:active { transform: scale(0.98); }
.boton:focus-visible { outline: 3px solid var(--crema); outline-offset: 3px; }

.boton-principal {
  background: var(--acento);
  color: var(--gris-oscuro);
}

.boton-secundario {
  background: transparent;
  color: var(--texto);
  box-shadow: inset 0 0 0 2px rgba(247, 240, 232, 0.35);
}

.boton svg { width: 22px; height: 22px; flex: none; }

/* Alias */
.alias {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 14px 16px;
}

.alias code {
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--acento);
  word-break: break-all;
}

.datos {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  font-size: 0.9rem;
}

.datos dt { opacity: 0.65; }
.datos dd { font-weight: 600; text-align: right; }

.aviso {
  font-size: 0.8rem;
  line-height: 1.45;
  opacity: 0.7;
}

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

footer {
  font-family: var(--f-marca);
  position: relative;
  z-index: 1;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

.instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--texto);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
}

.instagram svg { width: 20px; height: 20px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  background: var(--crema);
  color: var(--gris-oscuro);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .boton, .toast { transition: none; }
}
