/* ============================================================
   TAURALIA NAILS · style.css
   ------------------------------------------------------------
   Orden del archivo (las reglas siguen el orden del HTML):

     01 · Tokens              variables de color, tipografía, medidas
     02 · Reset               base, tipografía por defecto, scrollbars
     03 · Utilidades          wrap, section, eyebrow, display, serif
     04 · Botones             btn y variantes (ghost / light / wa)
     05 · Nav                 barra fija, marca, carrito, menú, tema
     06 · Hero                muro de fotos, velo, columna de texto
     07 · Marquee             banda con scroll infinito
     08 · Encabezados         section__head, title, intro
     09 · Filtros             chips del catálogo
     09b · Paginación         selector de páginas 1 2 3
     10 · Grid + tarjetas     .grid y .card
     11 · Press on/Especiales secciones con fondo crema
     12 · A domicilio         pasos, horarios, zonas
     13 · Quiénes somos       texto, pilares, valores
     14 · Contacto            CTA y redes
     15 · Footer              pie de página
     16 · Carrito (drawer)    cajón lateral, items, cantidades
     17 · Toast               aviso flotante
     18 · Modal legal         privacidad y cookies
     19 · Aviso de cookies    banner inferior
     20 · Reveal on scroll    animación de entrada
     21 · Responsive          media queries globales (900 / 560)
     22 · Reduced motion      accesibilidad
     23 · Tema claro/oscuro   overrides de [data-theme="dark"]
                             (siempre al final: gana por orden)

   Convención: las media queries de un componente viven junto a ese
   componente; las globales, en la sección 21.
   ============================================================ */

/* ---------- 01 · Tokens ---------- */
:root {
  --noir: #180205;
  --wine-950: #210306;
  --wine-900: #2a0509;
  --wine-800: #3d0710;
  --wine-700: #5a0a14;
  --wine-600: #7a1220;
  --wine-500: #9b1b2c;
  --blush: #f1c7bb;
  --blush-600: #e0a296;
  --cream: #f3e6d6;
  --ivory: #fbf5ec;
  --sand: #e4cfb8;
  --ink: #1c0a0c;

  --line-dark: rgba(243, 230, 214, 0.18);
  --line-light: rgba(42, 5, 9, 0.14);

  --font-display: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Bodoni Moda", Georgia, serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --shadow-soft: 0 24px 60px -30px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 30px 70px -40px rgba(0, 0, 0, 0.4);

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --pad-x: clamp(1.25rem, 5vw, 5rem);
  --section-y: clamp(4.5rem, 12vw, 9.5rem);
  --maxw: 1300px;
}

/* ---------- 02 · Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--wine-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--wine-700);
  color: var(--ivory);
}

/* -------- Scrollbars (globales) -------- */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--wine-600) var(--cream);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--wine-600);
  border: 3px solid var(--cream);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--wine-500);
}

[data-theme="dark"],
[data-theme="dark"] * {
  scrollbar-color: var(--blush-600) var(--wine-950);
}

[data-theme="dark"] ::-webkit-scrollbar-track,
[data-theme="dark"]::-webkit-scrollbar-track {
  background: var(--wine-950);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb,
[data-theme="dark"]::-webkit-scrollbar-thumb {
  background: var(--blush-600);
  border-color: var(--wine-950);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover,
[data-theme="dark"]::-webkit-scrollbar-thumb:hover {
  background: var(--blush);
}

/* ---------- 03 · Utilidades ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--section-y);
  padding-inline: clamp(0.5rem, 2vw, 1rem);
  position: relative;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--wine-600);
}

/* Antes del bloque al que pertenece (p. ej. "Valores") */
.eyebrow--section {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.serif-italic {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1.08em;
}

/* Cita destacada en tono vino (sección "Quiénes somos") */
.serif-italic--wine {
  color: var(--wine-600);
}

/* ---------- 04 · Botones ---------- */
.btn {
  --bg: var(--wine-800);
  --fg: var(--ivory);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background 220ms ease,
    color 220ms ease, border-color 220ms ease;
}

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

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--wine-700);
    transform: translateY(-2px);
  }
  .btn:active {
    transform: translateY(-2px) scale(0.97);
  }
}

.btn--ghost {
  --bg: transparent;
  --fg: var(--wine-900);
  border-color: var(--line-light);
}

@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover {
    background: var(--wine-900);
    color: var(--ivory);
  }
}

.btn--light {
  --bg: var(--ivory);
  --fg: var(--wine-900);
}

@media (hover: hover) and (pointer: fine) {
  .btn--light:hover {
    background: var(--blush);
    color: var(--wine-900);
  }
}

.btn--wa {
  --bg: #1f7a4d;
  --fg: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .btn--wa:hover {
    background: #176b42;
  }
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- 05 · Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: clamp(0.8rem, 2vw, 1.4rem) var(--pad-x);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.7rem 0.6rem 1.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ivory) 78%, transparent);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--wine-900);
  white-space: nowrap;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--wine-900);
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__link {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--wine-800);
  transition: background 200ms ease, color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav__link:hover {
    background: rgba(42, 5, 9, 0.07);
  }
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--wine-900);
  color: var(--ivory);
  font-size: 0.9rem;
  transition: transform 160ms var(--ease-out), background 220ms ease;
}

.cart-btn:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .cart-btn:hover {
    background: var(--wine-700);
  }
}

.cart-btn__count {
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--wine-900);
  font-size: 0.78rem;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
}

.cart-btn__count.is-visible {
  display: inline-flex;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  align-items: center;
  justify-content: center;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--wine-900);
  position: relative;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.6px;
  background: var(--wine-900);
}

.nav__toggle span::before {
  top: -6px;
}
.nav__toggle span::after {
  top: 6px;
}

/* Botón de tema (vive en la nav) */
.no-js .theme-toggle {
  display: none;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wine-900);
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease,
    transform 160ms var(--ease-out);
}

.theme-toggle:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    background: rgba(42, 5, 9, 0.07);
    border-color: var(--wine-700);
    color: var(--wine-700);
  }
}

.theme-toggle__icon {
  width: 19px;
  height: 19px;
}

.theme-toggle__icon--sun {
  display: none;
}

/* ---------- 06 · Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(7.5rem, 17vw, 12rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  background: linear-gradient(165deg, var(--wine-800) 0%, var(--wine-900) 45%, var(--wine-950) 100%);
  color: var(--cream);
  overflow: hidden;
}

/* Muro de fotos del catalogo: fondo maximalista con las uñas reales */
.hero__bg {
  position: absolute;
  inset: -2%;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(0.6rem, 1.2vw, 1.1rem);
  pointer-events: none;
  /* respiración lentísima del muro: 3% en 60 s, apenas perceptible */
  animation: heroWallDrift 60s var(--ease-in-out) infinite alternate;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid rgba(241, 199, 187, 0.22);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  filter: brightness(1.18) saturate(1.12);
  transform: rotate(var(--tilt, 0deg));
  /* entrada de cada foto: opacidad + escala 0.96 → 1, escalón de 60 ms */
  animation: heroPhotoIn 700ms var(--ease-out) both;
}

.hero__bg img:nth-child(4n + 1) {
  --tilt: -1.6deg;
}

.hero__bg img:nth-child(4n + 2) {
  --tilt: 1.1deg;
}

.hero__bg img:nth-child(4n + 3) {
  --tilt: -0.8deg;
}

.hero__bg img:nth-child(4n + 4) {
  --tilt: 1.6deg;
}

.hero__bg img:nth-child(1) {
  animation-delay: 0ms;
}

.hero__bg img:nth-child(2) {
  animation-delay: 60ms;
}

.hero__bg img:nth-child(3) {
  animation-delay: 120ms;
}

.hero__bg img:nth-child(4) {
  animation-delay: 180ms;
}

.hero__bg img:nth-child(5) {
  animation-delay: 240ms;
}

.hero__bg img:nth-child(6) {
  animation-delay: 300ms;
}

.hero__bg img:nth-child(7) {
  animation-delay: 360ms;
}

.hero__bg img:nth-child(8) {
  animation-delay: 420ms;
}

@keyframes heroPhotoIn {
  from {
    opacity: 0;
    transform: rotate(var(--tilt, 0deg)) scale(0.96);
  }

  to {
    opacity: 1;
    transform: rotate(var(--tilt, 0deg)) scale(1);
  }
}

@keyframes heroWallDrift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.03);
  }
}

/* Velo vino: las fotos se ven, pero el texto manda */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      58% 56% at 50% 46%,
      rgba(33, 3, 6, 0.92) 0%,
      rgba(33, 3, 6, 0.55) 52%,
      rgba(33, 3, 6, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      rgba(33, 3, 6, 0.8) 0%,
      rgba(33, 3, 6, 0.22) 26%,
      rgba(33, 3, 6, 0.3) 60%,
      rgba(33, 3, 6, 0.7) 100%
    );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(241, 199, 187, 0.09) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Columna unica y centrada: titulo, texto y botones al centro */
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Resplandor blush tras la columna */
.hero__inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: min(78vw, 950px);
  aspect-ratio: 1.5;
  background: radial-gradient(closest-side, rgba(241, 199, 187, 0.17), transparent 74%);
  filter: blur(26px);
  z-index: -1;
  pointer-events: none;
  /* el resplandor entra con el contenido en vez de aparecer de golpe */
  animation: heroGlowIn 800ms var(--ease-out) 150ms both;
}

@keyframes heroGlowIn {
  from {
    opacity: 0;
  }
}

.hero__title {
  font-size: clamp(3rem, 9vw, 7.6rem);
  color: var(--ivory);
  max-width: 14ch;
  text-wrap: balance;
  text-shadow: 0 24px 55px rgba(0, 0, 0, 0.4);
}

.hero__title em {
  font-style: normal;
  color: var(--blush);
  position: relative;
  white-space: nowrap;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: 0.04em;
  height: 0.16em;
  background: currentColor;
  opacity: 0.6;
  border-radius: 999px;
}

.hero__lead {
  max-width: 46ch;
  margin-top: 1.8rem;
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
  color: rgba(243, 230, 214, 0.86);
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.6rem;
}

.hero .btn {
  padding: clamp(0.95rem, 2.4vw, 1.1rem) clamp(1.5rem, 4vw, 2rem);
  font-size: 1.03rem;
}

.hero__meta {
  margin-top: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(241, 199, 187, 0.35);
  background: rgba(42, 5, 9, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 230, 214, 0.88);
}

.hero__meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blush);
  display: inline-block;
  flex: none;
}

@media (max-width: 900px) {
  .hero__bg {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
}

/* ---------- 07 · Marquee ---------- */
.marquee {
  background: var(--wine-800);
  color: var(--cream);
  border-block: 1px solid var(--line-dark);
  padding-block: 1.1rem;
  padding-inline: var(--pad-x);
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 2.5rem;
  align-items: center;
  animation: marquee 26s linear infinite;
  will-change: transform;
}

.marquee__item {
  font-family: var(--font-accent);
  font-size: clamp(1.1rem, 2.2vw, 1.9rem);
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}

.marquee__item::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blush);
}

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

/* ---------- 08 · Encabezados de seccion ---------- */
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.4rem);
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: var(--wine-900);
  max-width: 20ch;
}

.section__intro {
  max-width: 42ch;
  color: rgba(28, 10, 12, 0.7);
}

/* ---------- 09 · Filtros ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.4rem;
}

.chip {
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  font-size: 0.92rem;
  color: var(--wine-800);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease,
    transform 160ms var(--ease-out);
}

.chip:active {
  transform: scale(0.97);
}

.chip.is-active {
  background: var(--wine-900);
  color: var(--ivory);
  border-color: var(--wine-900);
}

@media (hover: hover) and (pointer: fine) {
  .chip:not(.is-active):hover {
    border-color: var(--wine-700);
    color: var(--wine-700);
  }
}

/* ---------- 09b · Paginación ---------- */
.pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.6rem;
}

.pager[hidden] {
  display: none;
}

.pager__label {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wine-700);
}

.pager__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.pager__btn,
.pager__num {
  min-width: 42px;
  height: 42px;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--wine-800);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease,
    transform 160ms var(--ease-out);
}

.pager__btn:active,
.pager__num:active {
  transform: scale(0.95);
}

.pager__arrow {
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.pager__btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.pager__num.is-active {
  background: var(--wine-900);
  color: var(--ivory);
  border-color: var(--wine-900);
  cursor: default;
}

.pager :focus-visible {
  outline: 2px solid var(--wine-600);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .pager__num:not(.is-active):hover,
  .pager__btn:not(:disabled):hover {
    border-color: var(--wine-700);
    color: var(--wine-700);
  }
}

/* ---------- 10 · Grid + tarjetas ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.8rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.45);
  }
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, var(--wine-800), var(--wine-600));
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card__media img {
    transform: scale(1.06);
  }
}

.card__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.5rem;
  color: rgba(243, 230, 214, 0.9);
}

.card__ph strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
}

.card__ph span {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 230, 214, 0.55);
}

.card__tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ivory) 86%, transparent);
  backdrop-filter: blur(8px);
  color: var(--wine-900);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.card__price {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--wine-900);
  color: var(--ivory);
  font-weight: 500;
  font-size: 0.95rem;
}

.card__body {
  padding: 1.3rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--wine-900);
}

.card__desc {
  font-size: 0.95rem;
  color: rgba(28, 10, 12, 0.66);
  flex: 1;
}

.card__add {
  align-self: flex-start;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--wine-900);
  font-weight: 500;
  border: 1px solid var(--line-light);
  transition: transform 160ms var(--ease-out), background 220ms ease,
    color 220ms ease;
}

.card__add:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .card__add:hover {
    background: var(--wine-800);
    color: var(--ivory);
  }
}

.card__add.is-added {
  background: var(--wine-800);
  color: var(--ivory);
}

/* ---------- 11 · Press on / especiales ---------- */
.presson,
.specials {
  background: var(--cream);
  border-block: 1px solid var(--line-light);
}

.presson__note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--ivory);
  border: 1px solid var(--line-light);
  font-size: 0.9rem;
  color: var(--wine-800);
}

/* ---------- 12 · A domicilio ---------- */
.domicilio {
  background: linear-gradient(180deg, var(--wine-900), var(--noir));
  color: var(--cream);
  overflow: hidden;
}

.domicilio .section__title {
  color: var(--ivory);
}

.domicilio .eyebrow {
  color: var(--blush);
}

.domicilio__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.step__n {
  font-family: var(--font-accent);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--blush);
  font-style: italic;
}

.step h3 {
  font-size: 1.15rem;
  color: var(--ivory);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.step p {
  color: rgba(243, 230, 214, 0.72);
  font-size: 0.98rem;
}

.schedule {
  background: rgba(251, 245, 236, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  backdrop-filter: blur(6px);
}

.schedule h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: 1.2rem;
}

.schedule__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line-dark);
  font-size: 0.98rem;
}

.schedule__row:last-child {
  border-bottom: 0;
}

.schedule__row span:first-child {
  color: rgba(243, 230, 214, 0.7);
}

.schedule__row span:last-child {
  color: var(--ivory);
  font-weight: 500;
}

/* Nota de zonas y CTA del horario */
.schedule__zonas {
  margin-top: 1.2rem;
  color: rgba(243, 230, 214, 0.7);
  font-size: 0.92rem;
}

.schedule__cta {
  margin-top: 1.4rem;
}

/* ---------- 13 · Quienes somos ---------- */
.about__lead {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.35;
  color: var(--wine-900);
  max-width: 34ch;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.about__copy p + p {
  margin-top: 1.2rem;
}

.about__copy p {
  color: rgba(28, 10, 12, 0.78);
  font-size: 1.05rem;
}

.pillars {
  display: grid;
  gap: 1.2rem;
}

.pillar {
  padding: 1.6rem 1.7rem;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line-light);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--wine-900);
  margin-bottom: 0.5rem;
}

.pillar p {
  color: rgba(28, 10, 12, 0.7);
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}

.value {
  padding: 1.5rem;
  border-radius: var(--r-md);
  background: var(--cream);
  border: 1px solid var(--line-light);
}

.value h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--wine-800);
  margin-bottom: 0.4rem;
}

.value p {
  font-size: 0.94rem;
  color: rgba(28, 10, 12, 0.68);
}

/* ---------- 14 · Contacto ---------- */
.contact {
  background: var(--wine-900);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}

.contact .section__title {
  margin: 1rem auto 0;
  color: var(--ivory);
}

.contact .eyebrow {
  color: var(--blush);
}

.contact__lead {
  max-width: 44ch;
  margin: 1.2rem auto 2.4rem;
  color: rgba(243, 230, 214, 0.78);
  font-size: 1.1rem;
}

.contact__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 2.6rem;
}

.socials a {
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  color: var(--cream);
  transition: background 220ms ease, color 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .socials a:hover {
    background: var(--blush);
    color: var(--wine-900);
  }
}

/* ---------- 15 · Footer ---------- */
.footer {
  background: var(--noir);
  color: rgba(243, 230, 214, 0.7);
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ivory);
  line-height: 1;
}

.footer__tag {
  margin-top: 0.9rem;
  max-width: 32ch;
  font-size: 0.95rem;
}

.footer h3 {
  color: var(--ivory);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer__links {
  display: grid;
  gap: 0.6rem;
}

.footer__links a,
.footer__links button {
  text-align: left;
  font-size: 0.95rem;
  color: rgba(243, 230, 214, 0.7);
  transition: color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover,
  .footer__links button:hover {
    color: var(--blush);
  }
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.85rem;
  color: rgba(243, 230, 214, 0.5);
}

/* ---------- 16 · Carrito (drawer) ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 2, 5, 0.5);
  opacity: 0;
  transition: opacity 360ms var(--ease-out);
}

.drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(430px, 92vw);
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 430ms var(--ease-drawer);
  box-shadow: -30px 0 80px -40px rgba(0, 0, 0, 0.4);
}

.drawer.is-open {
  pointer-events: auto;
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--line-light);
}

.drawer__head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--wine-900);
}

.drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  display: grid;
  place-content: center;
  transition: background 200ms ease, transform 160ms var(--ease-out);
}

.drawer__close:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .drawer__close:hover {
    background: var(--cream);
  }
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.5rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(28, 10, 12, 0.55);
}

.cart-empty strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--wine-900);
  margin-bottom: 0.4rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-light);
}

.cart-item__img {
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: linear-gradient(160deg, var(--wine-800), var(--wine-600));
  display: grid;
  place-content: center;
  color: var(--blush);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

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

.cart-item__name {
  font-weight: 500;
  color: var(--wine-900);
  font-size: 0.98rem;
}

.cart-item__price {
  font-size: 0.85rem;
  color: rgba(28, 10, 12, 0.55);
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 0.15rem;
}

.qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 1rem;
  color: var(--wine-800);
  transition: background 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .qty button:hover {
    background: var(--cream);
  }
}

.qty span {
  min-width: 22px;
  text-align: center;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.drawer__foot {
  padding: 1.3rem 1.5rem 1.6rem;
  border-top: 1px solid var(--line-light);
  background: var(--cream);
}

.drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.drawer__total span {
  color: rgba(28, 10, 12, 0.6);
}

.drawer__total strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--wine-900);
}

.drawer__foot .btn {
  width: 100%;
  justify-content: center;
}

.drawer__hint {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(28, 10, 12, 0.5);
}

/* ---------- 17 · Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 150%);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  background: var(--wine-900);
  color: var(--ivory);
  font-size: 0.92rem;
  box-shadow: var(--shadow-soft);
  transition: transform 420ms var(--ease-drawer);
}

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

/* ---------- 18 · Modal legal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  pointer-events: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 2, 5, 0.55);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}

.modal__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--ivory);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 320ms var(--ease-out), opacity 260ms ease;
  box-shadow: var(--shadow-card);
}

.modal.is-open {
  pointer-events: auto;
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal.is-open .modal__panel {
  transform: scale(1);
  opacity: 1;
}

.modal__panel h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--wine-900);
  margin-bottom: 1rem;
}

.modal__panel h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--wine-800);
  margin: 1.4rem 0 0.4rem;
}

.modal__panel p {
  color: rgba(28, 10, 12, 0.72);
  font-size: 0.96rem;
  margin-bottom: 0.6rem;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  display: grid;
  place-content: center;
}

/* ---------- 19 · Aviso de cookies ---------- */
.cookies {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translate(-50%, 200%);
  z-index: 130;
  width: min(680px, calc(100% - 2rem));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-md);
  background: var(--wine-900);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
  transition: transform 500ms var(--ease-drawer);
}

.cookies.is-visible {
  transform: translate(-50%, 0);
}

.cookies p {
  font-size: 0.88rem;
  max-width: 40ch;
}

.cookies__actions {
  display: flex;
  gap: 0.5rem;
}

.cookies__actions .btn {
  padding: 0.7rem 1.2rem;
  font-size: 0.88rem;
}

/* El aviso tiene fondo vino: el botón fantasma necesita texto crema
   (con el color por defecto quedaba vino sobre vino). */
.cookies .btn--ghost {
  --fg: var(--cream);
  border-color: rgba(241, 199, 187, 0.4);
}

@media (hover: hover) and (pointer: fine) {
  .cookies .btn--ghost:hover {
    background: var(--blush);
    color: var(--wine-900);
  }
}

.cookies__policy {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0.4rem 0 0.4rem 0.25rem;
  color: var(--blush);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .cookies__policy:hover {
    color: var(--cream);
  }
}

/* ---------- 20 · Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 21 · Responsive (globales) ---------- */

/* Tablet / móvil: una columna + nav hamburguesa */
@media (max-width: 900px) {
  .domicilio__grid,
  .about__grid,
  .footer__top {
    grid-template-columns: 1fr;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__inner.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    padding: 0.8rem;
    gap: 0.2rem;
    border-radius: var(--r-md);
    background: var(--ivory);
    border: 1px solid var(--line-light);
    box-shadow: var(--shadow-soft);
  }

  .nav__inner {
    position: relative;
  }

  .nav__link {
    padding: 0.8rem 1rem;
  }
}

/* Móvil: botones y tarjetas más compactos, nav sin texto de marca */
@media (max-width: 560px) {
  .btn {
    padding: 0.9rem 1.4rem;
  }

  .card__body {
    padding: 1.1rem 1.1rem 1.3rem;
  }

  .brand {
    font-size: 0;
    gap: 0;
  }

  .nav__inner {
    gap: 0.6rem;
    padding-left: 0.9rem;
  }

  .cart-btn {
    padding: 0.62rem 0.95rem;
    font-size: 0.86rem;
  }

  .theme-toggle,
  .nav__toggle {
    width: 38px;
    height: 38px;
  }
}

/* ---------- 22 · Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   23 · TEMA CLARO / OSCURO - <html data-theme="dark">
   ------------------------------------------------------------
   Misma paleta (vino, blush, crema): solo se invierten
   superficies y texto; las secciones vino siguen siendo vino.
   - La base del botón de tema vive en la sección 05 (Nav).
   - Todos los overrides van al final del archivo para ganar
     por orden sobre los estilos claros.
   ============================================================ */
[data-theme="dark"] body {
  background: var(--noir);
  color: var(--cream);
}

[data-theme="dark"] :focus-visible {
  outline-color: var(--blush);
}

[data-theme="dark"] .eyebrow {
  color: var(--blush-600);
}

[data-theme="dark"] .serif-italic--wine {
  color: var(--blush);
}

/* Nav */
[data-theme="dark"] .nav__inner {
  background: color-mix(in srgb, var(--wine-900) 74%, transparent);
  border-color: var(--line-dark);
}

[data-theme="dark"] .brand {
  color: var(--ivory);
}

[data-theme="dark"] .nav__link {
  color: var(--cream);
}

[data-theme="dark"] .nav__link:hover {
  background: rgba(241, 199, 187, 0.1);
}

[data-theme="dark"] .nav__toggle {
  border-color: var(--line-dark);
}

[data-theme="dark"] .nav__toggle span,
[data-theme="dark"] .nav__toggle span::before,
[data-theme="dark"] .nav__toggle span::after {
  background: var(--cream);
}

[data-theme="dark"] .theme-toggle {
  border-color: var(--line-dark);
  color: var(--cream);
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(241, 199, 187, 0.1);
  border-color: var(--blush);
  color: var(--blush);
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

[data-theme="dark"] .nav__inner.is-open .nav__links {
  background: var(--wine-950);
  border-color: var(--line-dark);
}

[data-theme="dark"] .cart-btn {
  background: var(--wine-700);
}

[data-theme="dark"] .cart-btn:hover {
  background: var(--wine-600);
}

/* Encabezados y textos */
[data-theme="dark"] .section__title {
  color: var(--ivory);
}

[data-theme="dark"] .section__intro,
[data-theme="dark"] .about__copy p,
[data-theme="dark"] .pillar p,
[data-theme="dark"] .value p,
[data-theme="dark"] .card__desc {
  color: rgba(243, 230, 214, 0.72);
}

[data-theme="dark"] .about__lead {
  color: var(--ivory);
}

/* Filtros */
[data-theme="dark"] .chip {
  border-color: var(--line-dark);
  color: var(--cream);
}

[data-theme="dark"] .chip:not(.is-active):hover {
  border-color: var(--blush);
  color: var(--blush);
}

[data-theme="dark"] .chip.is-active {
  background: var(--blush);
  border-color: var(--blush);
  color: var(--wine-900);
}

/* Paginación */
[data-theme="dark"] .pager__label {
  color: var(--blush-600);
}

[data-theme="dark"] .pager__btn,
[data-theme="dark"] .pager__num {
  border-color: var(--line-dark);
  color: var(--cream);
}

[data-theme="dark"] .pager__num.is-active {
  background: var(--blush);
  border-color: var(--blush);
  color: var(--wine-900);
}

[data-theme="dark"] .pager__num:not(.is-active):hover,
[data-theme="dark"] .pager__btn:not(:disabled):hover {
  border-color: var(--blush);
  color: var(--blush);
}

/* Tarjetas */
[data-theme="dark"] .card {
  background: var(--wine-900);
  border-color: var(--line-dark);
}

[data-theme="dark"] .card__title {
  color: var(--ivory);
}

/* Press on / especiales */
[data-theme="dark"] .presson,
[data-theme="dark"] .specials {
  background: var(--wine-950);
  border-color: var(--line-dark);
}

[data-theme="dark"] .presson__note {
  background: var(--wine-900);
  border-color: var(--line-dark);
  color: var(--cream);
}

/* Quienes somos */
[data-theme="dark"] .pillar {
  background: var(--wine-900);
  border-color: var(--line-dark);
}

[data-theme="dark"] .pillar h3 {
  color: var(--ivory);
}

[data-theme="dark"] .value {
  background: var(--wine-950);
  border-color: var(--line-dark);
}

[data-theme="dark"] .value h4 {
  color: var(--ivory);
}

/* Carrito (drawer) */
[data-theme="dark"] .drawer__panel {
  background: var(--wine-950);
}

[data-theme="dark"] .drawer__backdrop,
[data-theme="dark"] .modal__backdrop {
  background: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .drawer__head,
[data-theme="dark"] .cart-item,
[data-theme="dark"] .qty {
  border-color: var(--line-dark);
}

[data-theme="dark"] .drawer__head h2,
[data-theme="dark"] .cart-item__name,
[data-theme="dark"] .cart-empty strong,
[data-theme="dark"] .drawer__total strong {
  color: var(--ivory);
}

[data-theme="dark"] .drawer__close,
[data-theme="dark"] .modal__close {
  border-color: var(--line-dark);
}

[data-theme="dark"] .drawer__close:hover {
  background: var(--wine-900);
}

[data-theme="dark"] .cart-empty,
[data-theme="dark"] .cart-item__price,
[data-theme="dark"] .drawer__total span {
  color: rgba(243, 230, 214, 0.65);
}

[data-theme="dark"] .qty button {
  color: var(--cream);
}

[data-theme="dark"] .qty button:hover {
  background: var(--wine-900);
}

[data-theme="dark"] .drawer__foot {
  background: var(--wine-900);
  border-color: var(--line-dark);
}

[data-theme="dark"] .drawer__hint {
  color: rgba(243, 230, 214, 0.55);
}

/* Modal legal */
[data-theme="dark"] .modal__panel {
  background: var(--wine-950);
}

[data-theme="dark"] .modal__panel h2 {
  color: var(--ivory);
}

[data-theme="dark"] .modal__panel h3 {
  color: var(--blush-600);
}

[data-theme="dark"] .modal__panel p {
  color: rgba(243, 230, 214, 0.72);
}

/* Aviso de cookies */
[data-theme="dark"] .cookies {
  border: 1px solid var(--line-dark);
}

/* Transición suave únicamente mientras se cambia el tema
   (la clase .theming la agrega script.js durante 420 ms) */
@media (prefers-reduced-motion: no-preference) {
  html.theming * {
    transition: background-color 340ms var(--ease-out),
      border-color 340ms var(--ease-out), color 340ms var(--ease-out) !important;
  }
}

/* ============================================================
   24 · PANEL DE ADMINISTRACIÓN
   ------------------------------------------------------------
   Acceso: enlace "Admin" del footer (id admin-link).
   Contraseña en productos.js → window.TAURALIA.admin.password.
   ============================================================ */
.footer__admin {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 0.6rem;
  color: inherit;
  font-size: 0.82rem;
  opacity: 0.55;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .footer__admin:hover {
    opacity: 1;
  }
}

/* Contraseña y formulario reutilizan los estilos de .modal */
.admin__panel {
  max-width: 440px;
}
.admin__title {
  margin-top: 0.2rem;
}
.admin__hint {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
}
.admin__error {
  color: var(--wine-700);
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0.4rem 0 0;
}
[data-theme="dark"] .admin__error {
  color: var(--blush);
}
.admin__submit {
  width: 100%;
  margin-top: 0.6rem;
}
.admin__cancel {
  margin-top: 0.5rem;
  width: 100%;
}

.admin-field {
  margin-bottom: 0.9rem;
}
.admin-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.admin-field input[type="text"],
.admin-field input[type="number"],
.admin-field input[type="password"],
.admin-field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-light);
  border-radius: var(--r-sm);
  background: var(--ivory);
  color: var(--ink);
  font: inherit;
}
[data-theme="dark"] .admin-field input[type="text"],
[data-theme="dark"] .admin-field input[type="number"],
[data-theme="dark"] .admin-field input[type="password"],
[data-theme="dark"] .admin-field textarea {
  background: var(--wine-950);
  border-color: var(--line-dark);
  color: var(--cream);
}
.admin-form-files {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.admin-form-preview {
  font-size: 0.85rem;
  color: var(--wine-700);
}
[data-theme="dark"] .admin-form-preview {
  color: var(--blush);
}
.admin-form-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

/* Panel de administración a pantalla completa */
.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow-y: auto;
  background: var(--ivory);
  color: var(--ink);
  display: none;
}
.admin-panel.is-open {
  display: block;
}
[data-theme="dark"] .admin-panel {
  background: var(--noir);
  color: var(--cream);
}

.admin-panel__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.1rem max(1.2rem, calc((100% - 1080px) / 2));
  padding-right: 3.4rem;
  background: var(--ivory);
  border-bottom: 1px solid var(--line-light);
}
[data-theme="dark"] .admin-panel__head {
  background: var(--noir);
  border-color: var(--line-dark);
}
.admin-panel__head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.admin-panel__sub {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
  width: 100%;
}
.admin-panel__headbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.admin-panel__headbtns .btn {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}
.admin-panel__close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  z-index: 3;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--line-light);
  color: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
}
.admin-panel__close:hover {
  opacity: 1;
}

.admin-panel__body {
  padding: 1.2rem max(1.2rem, calc((100% - 1080px) / 2)) 4rem;
}
.admin-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 1.4rem 0 0.6rem;
}
.admin-group__head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.admin-btn {
  background: none;
  border: 1px solid var(--line-light);
  border-radius: var(--r-sm);
  padding: 0.42rem 0.7rem;
  font-size: 0.82rem;
  color: inherit;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
[data-theme="dark"] .admin-btn {
  border-color: var(--line-dark);
}
@media (hover: hover) and (pointer: fine) {
  .admin-btn:hover {
    background: rgba(42, 5, 9, 0.07);
    border-color: var(--wine-700);
  }
  [data-theme="dark"] .admin-btn:hover {
    background: rgba(241, 199, 187, 0.1);
    border-color: var(--blush);
  }
}
.admin-btn--danger {
  color: #b3261e;
  border-color: rgba(179, 38, 30, 0.4);
}
[data-theme="dark"] .admin-btn--danger {
  color: #ffb4ab;
  border-color: rgba(255, 180, 171, 0.4);
}
.admin-btn--add {
  font-weight: 600;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--ivory) 70%, transparent);
}
[data-theme="dark"] .admin-item {
  border-color: var(--line-dark);
  background: rgba(243, 230, 214, 0.04);
}
.admin-item__thumb {
  width: 60px;
  height: 60px;
  flex: none;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--wine-900);
}
.admin-item__thumb--empty {
  opacity: 0.35;
}
.admin-item__info {
  flex: 1;
  min-width: 0;
}
.admin-item__info strong {
  font-size: 0.95rem;
  display: block;
}
.admin-item__price {
  font-weight: 700;
  color: var(--wine-700);
  font-size: 0.9rem;
}
[data-theme="dark"] .admin-item__price {
  color: var(--blush);
}
.admin-item__info small {
  display: block;
  color: inherit;
  opacity: 0.65;
  font-size: 0.8rem;
}
.admin-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.admin-item__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding-top: 0.6rem;
  margin-top: 0.6rem;
  border-top: 1px dashed var(--line-light);
}
[data-theme="dark"] .admin-item__price-row {
  border-top-color: var(--line-dark);
}
.admin-item__price-row .admin-item__price-in {
  width: 110px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line-light);
  border-radius: var(--r-sm);
  background: var(--ivory);
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
}
[data-theme="dark"] .admin-item__price-row .admin-item__price-in {
  border-color: var(--line-dark);
  background: rgba(243, 230, 214, 0.06);
  color: var(--blush);
}

@media (max-width: 640px) {
  .admin-item {
    flex-wrap: wrap;
  }
  .admin-item__actions {
    width: 100%;
    justify-content: flex-start;
  }
}
