/* ==========================================================================
   El Otto — Hoja de estilos única (CSS nativo, sin frameworks)
   Código creado con Claude — 07/08/2026

   Índice
   01. Paletas (variables :root + [data-palette])
   02. Reset y base
   03. Utilidades
   04. Botones y campos
   05. Cabecera y navegación
   06. Selector de paletas
   07. Hero y slider
   08. Secciones y encabezados
   09. Valores y parallax
   10. Tienda y widget de stock
   11. Mapa y sucursales
   12. Mini-juego
   13. Contacto
   14. Pie y botón flotante
   15. Animaciones y responsive
   ========================================================================== */

/* ==========================================================================
   01. PALETAS
   Cambiar el atributo data-palette en <html> retematiza el sitio completo.
   Todo el resto de la hoja usa exclusivamente estas variables.
   ========================================================================== */

[data-palette='bosque'] {
  --p1: #1f4a2c;
  --p2: #2c5e3a;
  --p1d: #163521;
  --footer-bg: #15251a;
  --acc: #c05f2a;
  --acc-h: #a84f20;
  --eyebrow: #8f5e2c;
  --bg: #f3ede2;
  --bg-t: rgba(243, 237, 226, 0.95);
  --bg-alt: #e7decc;
  --border: #dcd0ba;
  --img-bg: #ede5d4;
  --chip: #dce8dc;
  --chip-h: #ccdecc;
  --chip-a: #f2dfc9;
  --text: #22301f;
  --muted: #4e5c4a;
  --card: #ffffff;
  --cream: #f3ede2;
  --footer-tx: #aabba9;
  --brand-tx: #1f4a2c;
  color-scheme: light;
}

[data-palette='noche'] {
  --p1: #1a2e20;
  --p2: #26402e;
  --p1d: #101e14;
  --footer-bg: #0a120c;
  --acc: #d99a3e;
  --acc-h: #bf8226;
  --eyebrow: #c2a15c;
  --bg: #141a15;
  --bg-t: rgba(20, 26, 21, 0.92);
  --bg-alt: #0f140f;
  --border: #2a342b;
  --img-bg: #1e271f;
  --chip: #223425;
  --chip-h: #2b4130;
  --chip-a: #33291a;
  --text: #e9e4d6;
  --muted: #a9b2a2;
  --card: #1b231c;
  --cream: #f0ebdd;
  --footer-tx: #93a08f;
  --brand-tx: #9fc7a8;
  color-scheme: dark;
}

[data-palette='vino'] {
  --p1: #4a1f35;
  --p2: #5d2b44;
  --p1d: #331423;
  --footer-bg: #200c16;
  --acc: #b5544c;
  --acc-h: #9a4038;
  --eyebrow: #96604f;
  --bg: #f4eceb;
  --bg-t: rgba(244, 236, 235, 0.95);
  --bg-alt: #e9dbda;
  --border: #dcc9c8;
  --img-bg: #efe2e1;
  --chip: #ebdce4;
  --chip-h: #dfc9d5;
  --chip-a: #f2ded6;
  --text: #31222b;
  --muted: #63505b;
  --card: #ffffff;
  --cream: #f7f0f1;
  --footer-tx: #c4b0bb;
  --brand-tx: #4a1f35;
  color-scheme: light;
}

/* Océano es la paleta POR DEFECTO del sitio.
   El selector :root va aquí y no en Bosque: es el que se aplica antes de que
   el atributo data-palette exista (por ejemplo si el HTML se sirviera sin él,
   o durante el primer pintado). Cambiar el tema por defecto es mover este
   `:root,` al bloque de la paleta que se quiera, y ajustar los otros cuatro
   puntos anotados en el README.
   Código modificado con Claude - 08/08/2026 */
:root,
[data-palette='oceano'] {
  --p1: #0f3a3d;
  --p2: #175055;
  --p1d: #0a282a;
  --footer-bg: #071b1d;
  --acc: #c2603f;
  --acc-h: #a64c2e;
  --eyebrow: #7c6138;
  --bg: #eef1ed;
  --bg-t: rgba(238, 241, 237, 0.95);
  --bg-alt: #dee5df;
  --border: #cbd7d1;
  --img-bg: #e4ebe6;
  --chip: #d9e7e3;
  --chip-h: #c7dcd6;
  --chip-a: #f1e0ce;
  --text: #1d2c2b;
  --muted: #4a5b58;
  --card: #ffffff;
  --cream: #f1f5f1;
  --footer-tx: #a5bab4;
  --brand-tx: #0f3a3d;
  color-scheme: light;
}

[data-palette='clara'] {
  --p1: #6fae8f;
  --p2: #8cc3a6;
  --p1d: #578f73;
  --footer-bg: #44705a;
  --acc: #e0a458;
  --acc-h: #c98b3d;
  --eyebrow: #b08d57;
  --bg: #fdfcf8;
  --bg-t: rgba(253, 252, 248, 0.95);
  --bg-alt: #f4f0e6;
  --border: #e8e2d2;
  --img-bg: #f6f3ea;
  --chip: #e6f2ea;
  --chip-h: #d5e9dd;
  --chip-a: #f7ebd8;
  --text: #3a463e;
  --muted: #6e7d6f;
  --card: #ffffff;
  --cream: #fdfcf8;
  --footer-tx: #d5e4d9;
  --brand-tx: #4e8a6c;
  color-scheme: light;
}

[data-palette='oscura'] {
  --p1: #121826;
  --p2: #1b2436;
  --p1d: #0d1117;
  --footer-bg: #080b12;
  --acc: #7c3aed;
  --acc-h: #6d28d9;
  --eyebrow: #8b9bb8;
  --bg: #0d1117;
  --bg-t: rgba(13, 17, 23, 0.92);
  --bg-alt: #121826;
  --border: #28324a;
  --img-bg: #1a2233;
  --chip: #182338;
  --chip-h: #223049;
  --chip-a: #2a1f45;
  --text: #e6edf3;
  --muted: #96a4bc;
  --card: #161d2c;
  --cream: #edf2f7;
  --footer-tx: #7e8ca6;
  --brand-tx: #67e8f9;
  color-scheme: dark;
}

[data-palette='viva'] {
  --p1: #2e9e44;
  --p2: #4cbb5e;
  --p1d: #237d35;
  --footer-bg: #1c4a26;
  --acc: #ff7a1a;
  --acc-h: #e56505;
  --eyebrow: #2593d6;
  --bg: #fff8ec;
  --bg-t: rgba(255, 248, 236, 0.95);
  --bg-alt: #ffefd4;
  --border: #f0ddbb;
  --img-bg: #fff3dc;
  --chip: #dff3e0;
  --chip-h: #c9ebcd;
  --chip-a: #ffe7c7;
  --text: #39301c;
  --muted: #7a6b4c;
  --card: #ffffff;
  --cream: #fffdf6;
  --footer-tx: #bfdcc2;
  --brand-tx: #1f8a33;
  color-scheme: light;
}

/* Constantes que NO dependen de la paleta ------------------------------- */
:root {
  /* Semáforo de stock: es señalética, debe significar lo mismo en los 7 temas */
  --stock-ok: #2e9e44;
  --stock-low: #d64530;
  --stock-out: #9a9a9a;
  --stock-ok-ring: rgba(46, 158, 68, 0.16);
  --stock-low-ring: rgba(214, 69, 48, 0.16);
  --stock-out-ring: rgba(150, 150, 150, 0.18);

  /* Color de marca de WhatsApp: fijo por identidad corporativa ajena */
  --wa: #1da851;
  --wa-h: #178a42;

  --font-sans: 'Nunito', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Quicksand', ui-sans-serif, system-ui, sans-serif;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --pill: 999px;

  --wrap: 1200px;
  --gutter: 24px;
  --section-y: 72px;
}

/* ==========================================================================
   02. RESET Y BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* el header sticky no debe tapar la sección */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-tx);
  text-decoration: none;
}

a:hover {
  color: var(--acc);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: pretty;
}

p {
  margin: 0;
  text-wrap: pretty;
}

button {
  font-family: inherit;
}

::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* ==========================================================================
   03. UTILIDADES
   ========================================================================== */

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--acc);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 800;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--eyebrow);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
}

.link-plain {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.link-plain:hover {
  color: var(--acc);
}

/* ==========================================================================
   04. BOTONES Y CAMPOS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn--sm {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.btn--md {
  padding: 12px 20px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: 15px 30px;
  font-size: 17px;
  border-radius: 14px;
}

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

.btn--accent {
  background: var(--acc);
  color: #fff;
}

.btn--accent:hover:not(:disabled) {
  background: var(--acc-h);
  color: #fff;
}

.btn--brand {
  background: var(--p1);
  color: var(--cream);
}

.btn--brand:hover:not(:disabled) {
  background: var(--p1d);
  color: var(--cream);
}

.btn--chip {
  background: var(--chip);
  color: var(--brand-tx);
}

.btn--chip:hover:not(:disabled) {
  background: var(--chip-h);
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(243, 237, 226, 0.4);
}

.btn--outline:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.btn--whatsapp {
  background: var(--wa);
  color: #fff;
  align-self: flex-start;
  border-radius: 14px;
}

.btn--whatsapp:hover {
  background: var(--wa-h);
  color: #fff;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.field {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  width: 100%;
}

.field:focus {
  border-color: var(--p1);
}

.field--area {
  resize: vertical;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

.field-error {
  font-weight: 700;
  font-size: 13px;
  color: var(--stock-low);
}

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 800;
  font-size: 15px;
}

.alert--ok {
  background: var(--chip);
  color: var(--brand-tx);
}

/* Marcador de imagen ---------------------------------------------------- */

.img-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 16px;
  text-align: center;
  background: var(--img-bg);
}

.img-slot__icon {
  color: var(--muted);
  opacity: 0.5;
}

.img-slot__label {
  max-width: 24ch;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.7;
}

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

.img-slot--rounded,
.img-slot--rounded.img-slot__photo {
  border-radius: var(--radius-xl);
}

/* ==========================================================================
   05. CABECERA Y NAVEGACIÓN
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-t);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--gutter);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--p1);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--brand-tx);
}

.brand__tagline {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--eyebrow);
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-left: auto;
  font-weight: 700;
  font-size: 15px;
}

.main-nav__link {
  color: var(--brand-tx);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chip-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--chip);
  color: var(--brand-tx);
  padding: 8px 14px;
  border-radius: var(--pill);
  font-weight: 800;
  font-size: 14px;
}

.chip-link:hover {
  background: var(--chip-h);
  color: var(--brand-tx);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.icon-btn--outline {
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--brand-tx);
}

.icon-btn--outline:hover {
  border-color: var(--acc);
  color: var(--acc);
}

.icon-btn--accent {
  border: 0;
  background: var(--acc);
  color: #fff;
}

.icon-btn--accent:hover {
  background: var(--acc-h);
}

.cart-btn {
  position: relative;
}

.cart-btn__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: var(--pill);
  background: var(--p1);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--cream);
}

.nav-toggle {
  display: none;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.nav-toggle__bars span {
  height: 2px;
  width: 100%;
  border-radius: var(--pill);
  background: currentColor;
}

/* ==========================================================================
   06. SELECTOR DE PALETAS
   ========================================================================== */

.palette-switcher {
  position: relative;
}

.palette-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 60;
  width: 224px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.palette-menu[hidden] {
  display: none;
}

.palette-menu__title {
  padding: 4px 8px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.palette-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s;
}

.palette-menu__item:hover {
  background: var(--chip);
}

.palette-menu__item[aria-checked='true'] {
  background: var(--chip);
  color: var(--brand-tx);
}

.palette-menu__swatch {
  display: flex;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: var(--pill);
  border: 1px solid var(--border);
}

.palette-menu__swatch span {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   07. HERO Y SLIDER
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, var(--p1) 0%, var(--p2) 100%);
  color: var(--cream);
}

.hero__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero__media {
  position: relative;
  min-height: 340px;
}

.hero__image {
  min-height: 340px;
}

/* Los slides ocupan la misma celda de grid: se superponen y solo cambia
   la opacidad, así el alto del hero no salta al rotar. */
.hero__content {
  display: grid;
  grid-template-columns: 1fr;
}

.slide {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.slide__badge {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 237, 226, 0.15);
  border: 1px solid rgba(243, 237, 226, 0.3);
  padding: 8px 16px;
  border-radius: var(--pill);
  font-weight: 800;
  font-size: 14px;
}

.slide__title {
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.slide__text {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(243, 237, 226, 0.85);
  max-width: 48ch;
}

.slide__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.slider-controls {
  grid-row: 2;
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.slider-arrow {
  width: 38px;
  height: 38px;
  border-radius: var(--pill);
  border: 1.5px solid rgba(243, 237, 226, 0.4);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.slider-arrow:hover {
  border-color: var(--cream);
}

.slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--pill);
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(243, 237, 226, 0.45);
  transition: width 0.3s, background-color 0.3s;
}

.slider-dot.is-active {
  width: 26px;
  background: var(--cream);
}

/* ==========================================================================
   08. SECCIONES Y ENCABEZADOS
   ========================================================================== */

.section {
  background: var(--bg);
}

.section--alt {
  background: var(--bg-alt);
}

.section__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.section--narrow .section__inner {
  max-width: 1100px;
}

.section--game .section__inner {
  max-width: 900px;
  align-items: center;
  gap: 32px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 64ch;
}

.section-heading--center {
  align-items: center;
  text-align: center;
}

.section-heading__title {
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  color: var(--brand-tx);
}

.section-heading__text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
   09. VALORES Y PARALLAX
   ========================================================================== */

.values {
  align-items: center;
  gap: 40px;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
}

.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.value-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--chip);
  color: var(--brand-tx);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-card__title {
  font-size: 19px;
  color: var(--text);
}

.value-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Parallax: la capa de fondo la mueve JS con transform (compuesto en GPU).
   No se usa background-attachment: fixed porque iOS lo ignora y provoca
   repaints costosos en cada scroll. */
.parallax {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
}

.parallax__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
  will-change: transform;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.09) 2.5px, transparent 2.5px),
    linear-gradient(135deg, var(--p1d), var(--p1));
  background-size: 34px 34px, cover;
}

.parallax__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 110px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}

.parallax__quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.3;
}

.parallax__author {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(243, 237, 226, 0.7);
  font-style: normal;
}

/* ==========================================================================
   10. TIENDA Y WIDGET DE STOCK
   ========================================================================== */

.shop__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.shop__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card__media {
  position: relative;
  height: 200px;
  background: var(--img-bg);
}

.product-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--p1);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: var(--pill);
  pointer-events: none;
}

.product-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-card__name {
  font-size: 17px;
  color: var(--text);
  line-height: 1.35;
}

.product-card__desc {
  font-size: 14px;
  color: var(--muted);
}

.product-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
}

.product-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--brand-tx);
}

/* Widget de stock: el nivel lo marca la clase, los colores son fijos ----- */

.stock {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.stock__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: var(--pill);
}

.stock--ok {
  color: var(--stock-ok);
}

.stock--ok .stock__dot {
  background: var(--stock-ok);
  box-shadow: 0 0 0 3px var(--stock-ok-ring);
}

.stock--low {
  color: var(--stock-low);
}

.stock--low .stock__dot {
  background: var(--stock-low);
  box-shadow: 0 0 0 3px var(--stock-low-ring);
  animation: float-pulse 3s ease-in-out infinite;
}

.stock--out {
  color: var(--stock-out);
}

.stock--out .stock__dot {
  background: var(--stock-out);
  box-shadow: 0 0 0 3px var(--stock-out-ring);
}

/* ==========================================================================
   11. MAPA Y SUCURSALES
   ========================================================================== */

.map {
  position: relative;
  height: 340px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--chip);
}

.map__grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    linear-gradient(var(--card) 2px, transparent 2px),
    linear-gradient(90deg, var(--card) 2px, transparent 2px);
  background-size: 56px 56px;
}

.map__road {
  position: absolute;
  background: var(--card);
  opacity: 0.85;
  pointer-events: none;
}

.map__road--h {
  left: -5%;
  right: -5%;
  top: 46%;
  height: 26px;
  transform: rotate(-4deg);
}

.map__road--v {
  top: -5%;
  bottom: -5%;
  left: 32%;
  width: 20px;
  transform: rotate(6deg);
}

.map__park {
  position: absolute;
  right: 8%;
  bottom: 12%;
  width: 130px;
  height: 90px;
  border-radius: 40% 60% 50% 50%;
  background: var(--p2);
  opacity: 0.25;
  pointer-events: none;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 10;
  transition: transform 0.2s;
}

.map-pin:hover {
  transform: translate(-50%, -100%) scale(1.05);
}

.map-pin.is-active {
  z-index: 20;
  transform: translate(-50%, -100%) scale(1.1);
}

.map-pin__chip {
  background: var(--card);
  color: var(--text);
  padding: 5px 12px;
  border-radius: var(--pill);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.map-pin.is-active .map-pin__chip {
  background: var(--acc);
  color: #fff;
}

.map-pin__icon {
  fill: var(--p1);
}

.map-pin.is-active .map-pin__icon {
  fill: var(--acc);
}

.map-callout {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.map-callout__name {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--brand-tx);
}

.map-callout__line {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.stores__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.shipping-card {
  background: var(--p1);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shipping-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(243, 237, 226, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shipping-card__title {
  font-size: 20px;
}

.shipping-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(243, 237, 226, 0.85);
}

.shipping-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.shipping-card__list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shipping-card__bullet {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: var(--pill);
  background: var(--acc);
}

.store-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s;
}

.store-card.is-active {
  border-color: var(--acc);
}

.store-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--chip-a);
  color: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-card__title {
  font-size: 20px;
  color: var(--text);
}

.store-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.store-card__meta span {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.store-card__meta strong {
  color: var(--brand-tx);
  min-width: 72px;
}

/* ==========================================================================
   12. MINI-JUEGO
   ========================================================================== */

.game {
  align-items: center;
}

.game__panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.game__stage {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.game__stage[hidden] {
  display: none;
}

.game__subtitle {
  font-size: 21px;
  color: var(--text);
}

.game__choices {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.pet-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 40px;
  cursor: pointer;
  color: var(--brand-tx);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 16px;
  transition: border-color 0.2s, color 0.2s;
}

.pet-choice:hover {
  border-color: var(--acc);
  color: var(--acc);
}

.game__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 380px;
}

.game__hint {
  font-size: 12px;
  color: var(--muted);
}

.pet {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.pet__avatar {
  width: 130px;
  height: 130px;
  border-radius: var(--pill);
  background: var(--chip);
  color: var(--brand-tx);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pet-bounce 2.4s ease-in-out infinite;
}

.pet__avatar span[hidden] {
  display: none;
}

.pet__name {
  margin-top: 10px;
  font-size: 22px;
  color: var(--text);
}

.pet__owner {
  font-size: 14px;
  color: var(--muted);
}

/* Altura reservada: sin esto el bloque salta cada vez que aparece o
   desaparece el mensaje de la mascota. */
.pet__message-slot {
  height: 34px;
  margin-top: 6px;
  display: flex;
  align-items: center;
}

.pet__message {
  background: var(--chip-a);
  color: var(--acc-h);
  font-weight: 800;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: var(--pill);
}

.pet__message[hidden] {
  display: none;
}

.pet__bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
}

.bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar__head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.bar__track {
  height: 12px;
  border-radius: var(--pill);
  background: var(--bg-alt);
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  width: 0;
  border-radius: var(--pill);
  transition: width 0.5s;
}

.bar__fill--hunger {
  background: var(--acc);
}

.bar__fill--happy {
  background: var(--p2);
}

.pet__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   13. CONTACTO
   ========================================================================== */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: start;
}

.contact__intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================================
   14. PIE Y BOTÓN FLOTANTE
   ========================================================================== */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-tx);
}

.site-footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand--footer {
  gap: 10px;
}

.brand__mark--light {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--p1);
  font-size: 18px;
}

.brand__name--light {
  font-size: 20px;
  color: var(--cream);
}

.site-footer__about {
  font-size: 14px;
  line-height: 1.7;
  max-width: 36ch;
}

.site-footer__title {
  font-size: 15px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.site-footer__link {
  color: var(--footer-tx);
  font-size: 15px;
}

.site-footer__link:hover {
  color: var(--acc);
}

.site-footer__social {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(243, 237, 226, 0.1);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}

.social-btn:hover {
  background: var(--acc);
  color: #fff;
}

.site-footer__bottom {
  border-top: 1px solid rgba(170, 187, 169, 0.2);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 60px;
  height: 60px;
  border-radius: var(--pill);
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(29, 168, 81, 0.4);
  animation: float-pulse 3s ease-in-out infinite;
}

.whatsapp-fab:hover {
  background: var(--wa-h);
  color: #fff;
}

/* ==========================================================================
   15. ANIMACIONES Y RESPONSIVE
   ========================================================================== */

@keyframes float-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

@keyframes pet-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 860px) {
  .main-nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 8px;
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 620px) {
  :root {
    --section-y: 56px;
    --gutter: 18px;
  }

  .chip-link {
    display: none;
  }

  .parallax__inner {
    padding: 72px var(--gutter);
  }

  .pet-choice {
    padding: 20px 28px;
  }

  .contact__form {
    padding: 24px;
  }
}

/* Respeto por prefers-reduced-motion: se apaga todo el movimiento no
   esencial, pero nada queda invisible ni inaccesible. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .whatsapp-fab,
  .pet__avatar,
  .stock--low .stock__dot {
    animation: none;
  }

  .slide {
    transition: none;
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
