/* =========================================================================
   Anivia Chains — estilos del sitio publico
   Una sola familia tipografica (Google Sans Flex, OFL, servida localmente)
   y escalas fijas de tamaño, espaciado y radios: todo sale de :root.
   ========================================================================= */

@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/google-sans-flex-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/google-sans-flex-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Color */
  --hueso: #f4f1eb;
  --papel: #fbfaf7;
  --arena: #e9e4db;
  --tinta: #141414;
  --tinta-2: #3b3936;
  --gris: #6f6a63;
  --gris-claro: #a29c93;
  --linea: rgba(20, 20, 20, 0.1);
  --linea-fuerte: rgba(20, 20, 20, 0.2);
  --linea-clara: rgba(255, 255, 255, 0.16);
  --error: #a3341f;

  /* Tipografia */
  --font: "Google Sans Flex", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.375rem;
  --t-xl: clamp(1.75rem, 1.25rem + 1.6vw, 2.5rem);
  --t-2xl: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  --t-hero: clamp(2.75rem, 1.4rem + 6vw, 6.5rem);

  /* Espaciado (escala de 4px) */
  --e-1: 4px;
  --e-2: 8px;
  --e-3: 12px;
  --e-4: 16px;
  --e-5: 24px;
  --e-6: 32px;
  --e-7: 48px;
  --e-8: 64px;
  --e-9: clamp(64px, 8vw, 104px);
  --e-10: clamp(80px, 11vw, 152px);

  /* Forma */
  --r-sm: 6px;
  --r-md: 14px;
  --r-pill: 999px;
  --ancho: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --alto-header: 76px;
  --alto-announce: 36px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html.no-scroll {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--hueso);
  color: var(--tinta);
  font-family: var(--font);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
}

s {
  color: var(--gris-claro);
  font-weight: 500;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

::selection {
  background: var(--tinta);
  color: var(--hueso);
}

[hidden] {
  display: none !important;
}

/* Solo para lectores de pantalla. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 1000;
  top: var(--e-2);
  left: var(--e-2);
  padding: var(--e-3) var(--e-4);
  border-radius: var(--r-sm);
  background: var(--tinta);
  color: var(--hueso);
  font-size: var(--t-sm);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
}

.icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

/* Iconos de Font Awesome (SVG en linea): miden lo mismo que el texto. */
.fa {
  display: inline-block;
  flex: none;
  width: 1.05em;
  height: 1.05em;
}

/* ---------- Tipografia ---------- */
.eyebrow {
  margin-bottom: var(--e-4);
  color: var(--gris);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.titulo {
  font-size: var(--t-2xl);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.titulo--sm {
  font-size: var(--t-xl);
}

/* Segunda parte de un titulo: mismo color que el resto. */
.acento {
  color: inherit;
}

.lead {
  max-width: 600px;
  color: var(--tinta-2);
  font-size: var(--t-md);
  font-weight: 400;
  line-height: 1.65;
}

.lead p + p {
  margin-top: var(--e-3);
}

.lead a {
  border-bottom: 1px solid currentColor;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  min-height: 52px;
  padding: 0 var(--e-6);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn .icon,
.btn .fa {
  width: 17px;
  height: 17px;
}

/* La flecha de los botones avanza al pasar el mouse. */
.btn .fa:last-child:not(:first-child) {
  transition: transform 0.3s var(--ease);
}

.btn:hover .fa:last-child:not(:first-child) {
  transform: translateX(4px);
}

.btn--dark {
  background: var(--tinta);
  color: var(--hueso);
}

.btn--dark:hover {
  background: #2d2c2a;
}

.btn--dark:disabled {
  background: var(--arena);
  color: var(--gris);
  cursor: not-allowed;
  transform: none;
}

.btn--light {
  background: var(--papel);
  color: var(--tinta);
}

.btn--light:hover {
  background: #fff;
}

.btn--ghost {
  border-color: var(--linea-fuerte);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--tinta);
}

.btn--block {
  width: 100%;
}

.link-flecha {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  padding-bottom: var(--e-1);
  border-bottom: 1px solid currentColor;
  font-size: 0.9375rem;
  font-weight: 600;
}

.link-flecha .fa {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.link-flecha:hover .fa {
  transform: translateX(4px);
}

/* =========================================================================
   Header
   ========================================================================= */
.scroll-marca {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 24px;
  pointer-events: none;
}

.announce {
  position: relative;
  z-index: 60;
  overflow: hidden;
  background: rgba(20, 20, 20, 0.86);
  color: rgba(255, 255, 255, 0.9);
}

/* En la portada la barra flota sobre el video, translucida. */
.home .announce {
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.announce__pista {
  display: flex;
  width: max-content;
  animation: marquesina 70s linear infinite;
}

.announce:hover .announce__pista {
  animation-play-state: paused;
}

@keyframes marquesina {
  to {
    transform: translateX(-50%);
  }
}

.announce__list {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--e-8);
  min-height: var(--alto-announce);
  margin: 0;
  padding: 0 var(--e-8) 0 0;
  list-style: none;
}

.announce__item {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  /* Linea inferior como sombra: no suma altura y el hero calza justo. */
  box-shadow: 0 1px 0 var(--linea);
  background: rgba(244, 241, 235, 0.9);
  color: var(--tinta);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--e-5);
  max-width: var(--ancho);
  height: var(--alto-header);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header--overlay:not(.is-solid) {
  box-shadow: none;
  background: transparent;
  color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.logo {
  display: block;
  grid-column: 2;
  width: 152px;
}

/* Un solo archivo de logo (blanco): sobre fondo claro se invierte. */
.logo__img {
  width: 100%;
  filter: invert(1);
  transition: filter 0.35s var(--ease);
}

.site-header--overlay:not(.is-solid) .logo__img {
  filter: none;
}

.nav {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  gap: var(--e-6);
}

.nav__link {
  position: relative;
  padding: 6px 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav__link::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link.is-active {
  font-weight: 600;
}

/* ---------- Desplegable de "Productos" (CSS puro: hover y teclado) ---------- */
.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__item--desplegable .nav__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.nav__chevron {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  transition: transform 0.3s var(--ease);
}

.nav__desplegable {
  position: absolute;
  z-index: 10;
  top: 100%;
  left: calc(-1 * var(--e-4));
  /* El padding hace de puente: el mouse no "cae" entre el link y la lista. */
  padding-top: var(--e-3);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.nav__item--desplegable:hover .nav__desplegable,
.nav__item--desplegable:focus-within .nav__desplegable {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.nav__item--desplegable:hover .nav__chevron,
.nav__item--desplegable:focus-within .nav__chevron {
  transform: rotate(180deg);
}

.nav__lista {
  min-width: 200px;
  margin: 0;
  padding: var(--e-2);
  border-radius: var(--r-md);
  background: var(--papel);
  box-shadow: 0 0 0 1px var(--linea), 0 18px 40px -12px rgba(20, 20, 20, 0.22);
  color: var(--tinta);
  list-style: none;
}

.nav__lista a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.nav__lista a:hover,
.nav__lista a:focus-visible,
.nav__lista a[aria-current] {
  background: var(--hueso);
}

.nav__lista a[aria-current] {
  font-weight: 600;
}

.header__actions {
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-content: flex-end;
  gap: var(--e-4);
}

.header__icon,
.header__menu {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--r-pill);
  transition: background-color 0.2s ease;
}

.header__icon:hover,
.header__menu:hover {
  background: rgba(127, 127, 127, 0.14);
}

.header__menu {
  display: none;
  margin-left: -10px;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  height: 42px;
  padding: 0 var(--e-5);
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 600;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.header__cta .fa {
  width: 15px;
  height: 15px;
}

.header__icon .fa {
  width: 19px;
  height: 19px;
}

.header__cta:hover {
  border-color: var(--tinta);
  background: var(--tinta);
  color: var(--hueso);
}

.site-header--overlay:not(.is-solid) .header__cta:hover {
  border-color: #fff;
  background: #fff;
  color: var(--tinta);
}

/* ---------- Menu mobile (:target sin JS, .is-open con JS) ---------- */
.menu-mobile {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 0 var(--gutter) var(--e-7);
  overflow-y: auto;
  background: var(--hueso);
}

.menu-mobile:target,
.menu-mobile.is-open {
  display: flex;
  animation: menu-in 0.3s var(--ease);
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.menu-mobile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  border-bottom: 1px solid var(--linea);
}

.menu-mobile__top .header__menu {
  display: grid;
  margin: 0 -10px 0 0;
}

.menu-mobile__brand {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-mobile__nav {
  display: flex;
  flex-direction: column;
  padding: var(--e-6) 0;
}

.menu-mobile__nav a {
  padding: var(--e-2) 0;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.menu-mobile__nav .menu-mobile__sub {
  padding: var(--e-1) 0 var(--e-1) var(--e-5);
  color: var(--tinta-2);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.menu-mobile__ingresar {
  align-self: flex-start;
  margin-bottom: var(--e-6);
}

.menu-mobile__canales {
  display: grid;
  gap: var(--e-4);
  margin-top: auto;
  padding-top: var(--e-6);
  border-top: 1px solid var(--linea);
}

.menu-mobile__canales a {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  color: var(--tinta-2);
  font-weight: 500;
}

/* =========================================================================
   Home
   ========================================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100svh;
  min-height: 560px;
  margin-top: calc(var(--alto-header) * -1);
  overflow: hidden;
  background: #2a2724;
  color: #fff;
}

.con-announce .hero {
  margin-top: calc((var(--alto-header) + var(--alto-announce)) * -1);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.hero__video.is-playing {
  opacity: 1;
}

.hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 24%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0) 72%);
  content: "";
}

.hero__contenido {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 9vh, 104px);
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.hero__titulo {
  max-width: 900px;
  font-size: var(--t-hero);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-3);
  margin-top: var(--e-6);
}

/* ---------- Secciones ---------- */
.seccion {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: var(--e-10) var(--gutter);
}

.seccion + .seccion {
  padding-top: 0;
}

.seccion--catalogo {
  padding-top: var(--e-8);
}

.seccion--relacionados {
  padding-top: 0;
}

.seccion__cabecera {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--e-6);
  margin-bottom: var(--e-8);
}

.seccion__cabecera--centro {
  display: block;
  text-align: center;
}

.seccion__pie {
  display: flex;
  justify-content: center;
  margin-top: var(--e-8);
}

/* =========================================================================
   Catalogo
   ========================================================================= */
.cabecera {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: var(--e-9) var(--gutter) var(--e-7);
  border-bottom: 1px solid var(--linea);
}

.cabecera__fila {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--e-5);
}

.cabecera .lead {
  margin-top: var(--e-5);
}

.cabecera__total {
  color: var(--gris);
  font-size: var(--t-sm);
  font-weight: 500;
  white-space: nowrap;
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2);
  margin-top: var(--e-6);
}

.filtro {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 var(--e-4);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filtro:hover {
  border-color: var(--tinta);
}

.filtro.is-active {
  border-color: var(--tinta);
  background: var(--tinta);
  color: var(--hueso);
}

.grilla {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--e-7) var(--e-5);
}

.grilla--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--arena);
}

.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s var(--ease), transform 0.9s var(--ease);
}

.card__img--hover {
  opacity: 0;
}

@media (hover: hover) {
  .card__media:hover .card__img {
    transform: scale(1.035);
  }

  .card__media:hover .card__img--hover {
    opacity: 1;
  }
}

.card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--e-5);
  color: var(--gris);
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}

.badge {
  position: absolute;
  z-index: 1;
  top: var(--e-3);
  left: var(--e-3);
  padding: 6px var(--e-3);
  border-radius: var(--r-pill);
  background: var(--papel);
  font-size: var(--t-xs);
  font-weight: 600;
}

.badge--oscuro {
  background: var(--tinta);
  color: var(--hueso);
}

.card--agotado .card__img {
  filter: grayscale(0.6);
  opacity: 0.7;
}

.card__info {
  padding-top: var(--e-4);
}

.card__nombre {
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.card__nombre a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.card__precio {
  margin-top: var(--e-1);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.card__transferencia {
  margin-top: 2px;
  color: var(--gris);
  font-size: var(--t-sm);
}

/* Estado vacio */
.vacio {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--e-9) var(--e-5);
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--papel);
  text-align: center;
}

.vacio__titulo {
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.vacio__texto {
  max-width: 420px;
  margin: var(--e-4) auto var(--e-6);
  color: var(--tinta-2);
}

/* ---------- Ficha de producto ---------- */
.ficha-wrap {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: var(--e-6) var(--gutter) var(--e-10);
}

.migas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2);
  margin-bottom: var(--e-6);
  color: var(--gris);
  font-size: var(--t-sm);
  font-weight: 500;
}

.migas a:hover,
.migas [aria-current] {
  color: var(--tinta);
}

.ficha {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: start;
  gap: clamp(36px, 6vw, 96px);
}

.ficha__principal {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--arena);
}

.ficha__principal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ficha__miniaturas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--e-2);
  margin-top: var(--e-2);
}

.ficha__miniatura {
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  background: var(--arena);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
}

.ficha__miniatura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ficha__miniatura:hover,
.ficha__miniatura.is-active {
  border-color: var(--tinta);
  opacity: 1;
}

.ficha__info {
  position: sticky;
  top: calc(var(--alto-header) + var(--e-6));
}

.ficha__nombre {
  font-size: var(--t-2xl);
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.ficha__precio {
  margin-top: var(--e-5);
  font-size: var(--t-lg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ficha__transferencia {
  margin-top: var(--e-1);
  color: var(--gris);
  font-size: var(--t-sm);
}

.ficha__transferencia strong {
  color: var(--tinta);
  font-weight: 600;
}

.estado {
  display: inline-block;
  margin-top: var(--e-4);
  padding: 6px var(--e-3);
  border-radius: var(--r-pill);
  background: var(--arena);
  font-size: var(--t-xs);
  font-weight: 600;
}

.estado--agotado {
  background: var(--tinta);
  color: var(--hueso);
}

.ficha__descripcion {
  margin-top: var(--e-6);
  padding-top: var(--e-6);
  border-top: 1px solid var(--linea);
  color: var(--tinta-2);
  line-height: 1.7;
}

.ficha__descripcion p + p {
  margin-top: var(--e-3);
}

.ficha__detalles,
.texto ul {
  display: grid;
  gap: var(--e-2);
  margin: var(--e-5) 0 0;
  padding: 0;
  list-style: none;
  color: var(--tinta-2);
}

.ficha__detalles li,
.texto ul li {
  display: flex;
  gap: var(--e-3);
}

.ficha__detalles li::before,
.texto ul li::before {
  flex: none;
  width: 12px;
  height: 1.5px;
  margin-top: 0.8em;
  background: var(--tinta);
  content: "";
}

.ficha__acciones {
  display: grid;
  gap: var(--e-2);
  margin-top: var(--e-7);
}

.ficha__extra {
  margin-top: var(--e-6);
  border-top: 1px solid var(--linea);
}

details {
  border-bottom: 1px solid var(--linea);
}

summary {
  position: relative;
  padding: var(--e-5) var(--e-6) var(--e-5) 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  top: 50%;
  right: var(--e-1);
  font-size: var(--t-lg);
  font-weight: 400;
  content: "+";
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease);
}

details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

details p {
  padding-bottom: var(--e-5);
  color: var(--tinta-2);
}

details a,
.texto a:not(.btn) {
  border-bottom: 1px solid currentColor;
}

/* =========================================================================
   Paginas de texto
   ========================================================================= */
.documento.documento--simple {
  grid-template-columns: minmax(0, 720px);
  justify-content: start;
}

.documento {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: space-between;
  gap: clamp(32px, 6vw, 96px);
  max-width: var(--ancho);
  margin: 0 auto;
  padding: var(--e-9) var(--gutter) var(--e-10);
}

.indice {
  position: sticky;
  top: calc(var(--alto-header) + var(--e-6));
  align-self: start;
}

.indice ol {
  display: grid;
  gap: var(--e-1);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: indice;
}

.indice a {
  display: flex;
  gap: var(--e-3);
  padding: var(--e-2) 0;
  color: var(--gris);
  font-size: var(--t-sm);
  font-weight: 500;
  counter-increment: indice;
  transition: color 0.2s ease;
}

.indice a::before {
  font-variant-numeric: tabular-nums;
  content: "0" counter(indice);
}

.indice a:hover {
  color: var(--tinta);
}

.texto section {
  padding-bottom: var(--e-7);
  scroll-margin-top: calc(var(--alto-header) + var(--e-5));
}

.texto section + section {
  padding-top: var(--e-7);
  border-top: 1px solid var(--linea);
}

.texto h2 {
  margin-bottom: var(--e-4);
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.texto p,
.texto li {
  color: var(--tinta-2);
  line-height: 1.7;
}

.texto p + p,
.texto ul + p,
.texto p + ul {
  margin-top: var(--e-3);
}

.texto .texto__nota {
  margin-top: var(--e-5);
  color: var(--gris);
  font-size: var(--t-sm);
}

.aviso {
  padding: var(--e-5);
  border-radius: var(--r-md);
  background: var(--papel);
  color: var(--tinta-2);
}

/* ---------- Formularios ---------- */
.form {
  display: grid;
  gap: var(--e-5);
  margin-top: var(--e-6);
}

.form__fila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--e-5);
}

.form .btn {
  justify-self: start;
}

.form__nota {
  color: var(--gris);
  font-size: var(--t-sm);
}

.campo {
  display: grid;
  align-content: start;
  gap: var(--e-2);
}

.campo__label {
  font-size: var(--t-sm);
  font-weight: 600;
}

.campo__input {
  width: 100%;
  min-height: 50px;
  padding: var(--e-3) var(--e-4);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--r-sm);
  background: var(--papel);
  font-size: var(--t-base);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.campo__input {
  resize: vertical;
}

.campo__input:focus {
  border-color: var(--tinta);
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.08);
}

.campo--error .campo__input {
  border-color: var(--error);
}

.campo__error,
.alerta {
  color: var(--error);
  font-size: var(--t-sm);
  font-weight: 500;
}

.alerta {
  margin-top: var(--e-4);
  padding: var(--e-3) var(--e-4);
  border-radius: var(--r-sm);
  background: rgba(163, 52, 31, 0.08);
}

.trampa {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.confirmacion {
  padding: var(--e-6);
  border-radius: var(--r-md);
  background: var(--papel);
}

.confirmacion__codigo {
  margin: var(--e-3) 0 var(--e-4) !important;
  color: var(--tinta) !important;
  font-size: var(--t-xl);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- Canales ---------- */
.canales {
  border-top: 1px solid var(--linea);
}

.canal {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--e-5);
  padding: var(--e-6) 0;
  border-bottom: 1px solid var(--linea);
  transition: padding 0.35s var(--ease);
}

.canal:hover {
  padding-left: var(--e-3);
}

.canal__icono {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid var(--linea-fuerte);
  border-radius: 50%;
}

.canal__texto {
  display: grid;
  gap: 2px;
}

.canal__texto strong {
  font-size: var(--t-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.canal__texto span {
  color: var(--gris);
  font-size: var(--t-sm);
}

.canal__texto em {
  margin-top: var(--e-1);
  font-style: normal;
  font-weight: 500;
}

.canal__icono .fa {
  width: 22px;
  height: 22px;
}

.canal__flecha {
  display: grid;
  transition: transform 0.35s var(--ease);
}

.canal:hover .canal__flecha {
  transform: translateX(6px);
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--tinta);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--e-7);
  max-width: var(--ancho);
  margin: 0 auto;
  padding: var(--e-9) var(--gutter) var(--e-8);
}

.site-footer__brand img {
  width: 168px;
}

.site-footer__brand p {
  max-width: 280px;
  margin-top: var(--e-5);
  font-size: var(--t-sm);
}

.site-footer__col h2 {
  margin-bottom: var(--e-4);
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 600;
}

.site-footer__col ul {
  display: grid;
  gap: var(--e-3);
  margin: 0;
  padding: 0;
  font-size: var(--t-sm);
  list-style: none;
}

.site-footer a {
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-4) var(--e-6);
  max-width: var(--ancho);
  margin: 0 auto;
  padding: var(--e-6) var(--gutter);
  border-top: 1px solid var(--linea-clara);
  font-size: var(--t-xs);
}

.site-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-3) var(--e-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__arrepentimiento {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  padding: var(--e-2) var(--e-4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-pill);
  color: #fff;
  font-weight: 600;
}

.site-footer__arrepentimiento:hover,
.site-footer__red:hover {
  border-color: #fff;
}

.site-footer__red {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
}

.site-footer__red .fa {
  width: 16px;
  height: 16px;
}

.whatsapp-float {
  position: fixed;
  z-index: 40;
  right: var(--e-5);
  bottom: var(--e-5);
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--tinta);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.whatsapp-float .fa {
  width: 27px;
  height: 27px;
}

.whatsapp-float:hover {
  background: #1f9d55;
  transform: translateY(-3px);
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .grilla {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --alto-header: 64px;
  }

  .nav {
    display: none;
  }

  .header__menu {
    display: grid;
    grid-column: 1;
    grid-row: 1;
  }

  .logo {
    width: 124px;
  }

  .header__actions {
    gap: var(--e-1);
  }

  .header__cta {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
    border: 0;
  }

  .header__cta span {
    display: none;
  }

  .header__cta:hover,
  .site-header--overlay:not(.is-solid) .header__cta:hover {
    background: rgba(127, 127, 127, 0.14);
    color: inherit;
  }

  .grilla,
  .grilla--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--e-6) var(--e-3);
  }

  .ficha {
    grid-template-columns: 1fr;
  }

  .ficha__info {
    position: static;
  }

  .documento.documento--simple {
  grid-template-columns: minmax(0, 720px);
  justify-content: start;
}

.documento {
    grid-template-columns: 1fr;
  }

  .indice {
    position: static;
    padding-bottom: var(--e-5);
    border-bottom: 1px solid var(--linea);
  }

  .indice ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--e-1) var(--e-5);
  }
}

@media (max-width: 640px) {
  .seccion__cabecera,
  .cabecera__fila {
    flex-direction: column;
    align-items: flex-start;
  }

  .seccion__cabecera {
    margin-bottom: var(--e-6);
  }

  .seccion__pie {
    margin-top: var(--e-6);
  }

  .form__fila {
    grid-template-columns: 1fr;
  }

  .hero__acciones .btn,
  .form .btn {
    flex: 1 1 100%;
    justify-self: stretch;
  }

  .card__nombre {
    font-size: var(--t-base);
  }

  .card__precio {
    font-size: var(--t-sm);
  }

  .card__transferencia {
    font-size: var(--t-xs);
  }

  .canal {
    grid-template-columns: auto 1fr;
    gap: var(--e-4);
  }

  .canal__icono {
    width: 46px;
    height: 46px;
  }

  .canal__flecha {
    display: none;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--e-6) var(--e-5);
  }

  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .whatsapp-float {
    right: var(--e-4);
    bottom: var(--e-4);
    width: 52px;
    height: 52px;
  }
}

/* ---------- Celulares y tablets ----------
   Todo lo que sigue vive en media queries de 1024px o menos: el escritorio
   no cambia. Las areas de toque llegan a ~44px; en el menu de escritorio
   (visible hasta 901px) se agrandan con un pseudo-elemento invisible para
   no mover nada de lugar. */
@media (max-width: 1024px) {
  html {
    -webkit-tap-highlight-color: transparent;
  }

  .nav__link::before {
    position: absolute;
    inset: -6px -8px;
    content: "";
  }

  .migas a {
    display: inline-block;
    margin: -12px 0;
    padding: 12px 0;
  }

  .indice a {
    padding: 10px 0;
  }

  .site-footer__col ul {
    gap: 0;
  }

  .site-footer__col a {
    display: inline-block;
    padding: 10px 0;
  }

  .site-footer__red {
    width: 44px;
    height: 44px;
  }

  .site-footer__arrepentimiento {
    min-height: 44px;
  }

  .site-footer__legal ul a:not([class]) {
    display: inline-block;
    padding: var(--e-3) 0;
  }
}

/* Celulares en horizontal y tablets en vertical: hay ancho para mas columnas
   y para la ficha en dos columnas como en escritorio. */
@media (min-width: 600px) and (max-width: 900px) {
  .grilla--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ficha {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--e-6);
  }

  .ficha__info {
    position: sticky;
  }

  .ficha__nombre {
    font-size: var(--t-xl);
  }

  .grilla:not(.grilla--3) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .filtro {
    height: 44px;
  }

  .indice a {
    padding: var(--e-3) 0;
  }

  .menu-mobile__nav .menu-mobile__sub {
    padding: var(--e-2) 0 var(--e-2) var(--e-5);
  }

  .menu-mobile__canales a {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  /* El boton flotante de WhatsApp no tapa el boton del hero. */
  .hero__contenido {
    padding-bottom: calc(52px + var(--e-4) * 2.5);
  }

  .badge {
    top: var(--e-2);
    left: var(--e-2);
    max-width: calc(100% - var(--e-2) * 2);
    padding: 5px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Pie legal ordenado: boton de arrepentimiento y redes, y debajo los
     enlaces de texto en su propia fila. */
  .site-footer__legal ul {
    gap: var(--e-2) var(--e-4);
  }

  .site-footer__legal ul::before {
    flex-basis: 100%;
    order: 3;
    height: 0;
    content: "";
  }

  .site-footer__legal li:has(.site-footer__arrepentimiento) {
    order: 1;
  }

  .site-footer__legal li:has(.site-footer__red) {
    order: 2;
  }

  .site-footer__legal li:not(:has(.site-footer__arrepentimiento, .site-footer__red)) {
    order: 4;
  }

  .confirmacion {
    padding: var(--e-5);
  }

  .confirmacion__codigo {
    overflow-wrap: anywhere;
  }
}

/* Celulares en horizontal: poca altura. El hero entra en la pantalla y el
   menu no obliga a desplazarse tanto. */
@media (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 320px;
  }

  .hero__contenido {
    padding-bottom: var(--e-6);
  }

  .hero__titulo {
    font-size: clamp(2.25rem, 1rem + 5vw, 3.5rem);
  }

  .hero__acciones {
    margin-top: var(--e-5);
  }

  .hero__acciones .btn {
    flex: 0 1 auto;
  }

  .menu-mobile__nav {
    padding: var(--e-4) 0;
  }

  .menu-mobile__nav a {
    padding: var(--e-1) 0;
    font-size: 1.625rem;
  }

  .menu-mobile__nav .menu-mobile__sub {
    font-size: 1.125rem;
  }

  .menu-mobile__ingresar {
    margin-bottom: var(--e-5);
  }

  .menu-mobile__canales {
    padding-top: var(--e-5);
  }
}

@media (max-width: 360px) {
  .grilla,
  .grilla--3 {
    gap: var(--e-6) var(--e-2);
  }

  .card__info {
    padding-top: var(--e-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Sin desplazamiento: los beneficios quedan quietos y centrados. */
  .announce__pista {
    width: auto;
    justify-content: center;
    animation: none;
  }

  .announce__list {
    padding: 0 var(--gutter);
  }

  .announce__list[aria-hidden],
  .announce__item--rep {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
