/* =========================================================
   Dolce Vino Brunch: estilos compartidos
   Colores tomados directamente de los archivos del logo.
   ========================================================= */

:root {
  /* Paleta de marca */
  --vino: #7D0000;          /* fondo del logo */
  --vino-profundo: #560404; /* sombras y estados activos */
  --arena: #DDC0A4;         /* trazo del logo */
  --lino: #F6ECE2;          /* fondo de lectura */
  --tinta: #2E0B0B;         /* texto principal sobre claro */
  --tinta-suave: #6B4A44;   /* texto secundario sobre claro */

  /* Tipografía */
  --fuente-titulos: "Gloock", "Times New Roman", serif;
  --fuente-texto: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala tipográfica (razón ~1.25) */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-lg: 1.3125rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.25rem;
  --t-3xl: 3rem;

  --ancho-lectura: 38rem;
  --margen: clamp(1.25rem, 5vw, 2.5rem);
}

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

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

body {
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--tinta);
  background: var(--lino);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--fuente-titulos);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  color: var(--vino);
}

a { color: inherit; }

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

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

/* ---------- Aviso legal compartido ---------- */
.aviso-alcohol {
  font-size: var(--t-xs);
  line-height: 1.5;
  max-width: var(--ancho-lectura);
}

/* =========================================================
   MENÚ CENTRAL (destino del QR)
   ========================================================= */
.pagina-menu {
  background: var(--vino);
  color: var(--arena);
  min-height: 100vh;
  min-height: 100dvh;
}

.menu-central {
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vh, 3rem) var(--margen) 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.menu-central__marca {
  text-align: center;
}

.menu-central__logo {
  width: min(11rem, 46vw);
  margin: 0 auto;
}

.menu-central__frase {
  font-family: var(--fuente-titulos);
  font-size: var(--t-base);
  line-height: 1.3;
  margin: 0.5rem auto 0;
  max-width: 18rem;
  color: var(--arena);
}

.menu-central__opciones {
  list-style: none;
  margin: clamp(1.25rem, 4vh, 2.5rem) 0 0;
  padding: 0;
  border-top: 1px solid rgba(221, 192, 164, 0.35);
}

.menu-central__opciones li {
  border-bottom: 1px solid rgba(221, 192, 164, 0.35);
}

.opcion {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.25rem 1rem;
  padding: 0.85rem 0.25rem;
  text-decoration: none;
  color: var(--arena);
  transition: background-color 160ms ease, padding 160ms ease;
}

.opcion__nombre {
  font-family: var(--fuente-titulos);
  font-size: var(--t-xl);
  line-height: 1.1;
}

.opcion__detalle {
  grid-column: 1;
  font-size: var(--t-sm);
  color: rgba(221, 192, 164, 0.78);
}

.opcion__flecha {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0.7;
  transition: transform 160ms ease, opacity 160ms ease;
}

.opcion:hover,
.opcion:focus-visible {
  background: var(--vino-profundo);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.opcion:hover .opcion__flecha,
.opcion:focus-visible .opcion__flecha {
  transform: translateX(3px);
  opacity: 1;
}

.opcion:active { background: var(--vino-profundo); }

.menu-central__pie {
  margin-top: auto;
  padding-top: 2.5rem;
  text-align: center;
  color: rgba(221, 192, 164, 0.75);
}

.menu-central__pie .aviso-alcohol { margin: 0 auto; }

/* Único momento animado: las líneas de la carta se trazan al abrir */
@media (prefers-reduced-motion: no-preference) {
  .menu-central__opciones li {
    animation: trazar-linea 700ms cubic-bezier(.2, .7, .2, 1) both;
  }
  .menu-central__opciones li:nth-child(1) { animation-delay: 120ms; }
  .menu-central__opciones li:nth-child(2) { animation-delay: 200ms; }
  .menu-central__opciones li:nth-child(3) { animation-delay: 280ms; }
  .menu-central__opciones li:nth-child(4) { animation-delay: 360ms; }
  .menu-central__opciones li:nth-child(5) { animation-delay: 440ms; }
}

@keyframes trazar-linea {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* =========================================================
   PÁGINAS INTERIORES (carta, vinos, merch, encuesta…)
   ========================================================= */
.barra {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 236, 226, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(125, 0, 0, 0.14);
}

.barra__interior {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0.5rem var(--margen);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.barra__volver {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;           /* área táctil cómoda */
  padding-right: 0.5rem;
  font-weight: 500;
  font-size: var(--t-sm);
  color: var(--vino);
  text-decoration: none;
}

.barra__volver svg { width: 1.25rem; height: 1.25rem; }

.barra__logo { width: 7rem; }

.contenido {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 var(--margen) 3rem;
}

.encabezado {
  padding: 2.25rem 0 1.5rem;
  max-width: var(--ancho-lectura);
}

.encabezado h1 {
  font-size: clamp(2.25rem, 9vw, 3.5rem);
}

.encabezado p {
  margin: 0.75rem 0 0;
  color: var(--tinta-suave);
}

/* Atajos dentro de la página */
.atajos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.atajos a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(125, 0, 0, 0.35);
  border-radius: 999px;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--vino);
  text-decoration: none;
}

.atajos a:hover { background: rgba(125, 0, 0, 0.06); }

.seccion { padding-top: 2rem; scroll-margin-top: 4.5rem; }

.seccion__titulo {
  font-size: var(--t-2xl);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(125, 0, 0, 0.25);
  margin-bottom: 1.5rem;
}

/* ---------- Renglón con precio (estilo carta impresa) ---------- */
.renglon {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.renglon__nombre {
  font-family: var(--fuente-titulos);
  font-size: var(--t-xl);
  line-height: 1.15;
  color: var(--vino);
}

.renglon__puntos {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted rgba(125, 0, 0, 0.35);
  transform: translateY(-0.3em);
}

.renglon__precio {
  font-family: var(--fuente-titulos);
  font-size: var(--t-lg);
  color: var(--vino);
  white-space: nowrap;
}

/* ---------- Platillos ---------- */
.platillos {
  display: grid;
  gap: 2.5rem 2rem;
}

@media (min-width: 44rem) {
  .platillos { grid-template-columns: 1fr 1fr; }
}

.platillo { scroll-margin-top: 4.5rem; }

.platillo__foto {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
  background: var(--arena);
}

.platillo__descripcion {
  margin: 0.5rem 0 0;
  max-width: var(--ancho-lectura);
}

.maridaje {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  font-size: var(--t-sm);
  color: var(--tinta-suave);
}

.maridaje a {
  color: var(--vino);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.icono-copa {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  color: var(--vino);
}

.agotado {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--vino);
}

.platillo--agotado .platillo__foto { filter: grayscale(0.8); opacity: 0.6; }

/* ---------- Il Viaggio Dolce (banda vino) ---------- */
.viaggio {
  margin: 3rem calc(var(--margen) * -1) 0;
  padding: 2.5rem var(--margen);
  background: var(--vino);
  color: var(--arena);
  scroll-margin-top: 3.5rem;
}

@media (min-width: 60rem) {
  .viaggio { border-radius: 6px; margin-left: 0; margin-right: 0; }
}

.viaggio h2 {
  color: var(--arena);
  font-size: clamp(2.25rem, 8vw, 3rem);
}

.viaggio__descripcion {
  max-width: var(--ancho-lectura);
  margin: 0.75rem 0 0;
  color: rgba(221, 192, 164, 0.88);
}

.viaggio__precio {
  font-family: var(--fuente-titulos);
  font-size: var(--t-2xl);
  margin: 1.25rem 0 0;
}

.viaggio__precio span {
  font-family: var(--fuente-texto);
  font-size: var(--t-sm);
  opacity: 0.8;
}

.tiempos {
  list-style: none;
  counter-reset: tiempo;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

@media (min-width: 44rem) {
  .tiempos { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}

.tiempos li {
  counter-increment: tiempo;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: baseline;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(221, 192, 164, 0.3);
}

.tiempos li::before {
  content: counter(tiempo);
  font-family: var(--fuente-titulos);
  font-size: var(--t-lg);
  grid-row: 1 / span 2;
}

.tiempos__plato {
  font-family: var(--fuente-titulos);
  font-size: var(--t-lg);
}

.tiempos__vino {
  font-size: var(--t-sm);
  color: rgba(221, 192, 164, 0.8);
}

.viaggio .aviso-alcohol {
  margin-top: 1.75rem;
  color: rgba(221, 192, 164, 0.75);
}

/* ---------- Vinos ---------- */
.vinos {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vino {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(125, 0, 0, 0.18);
  scroll-margin-top: 4.5rem;
}

.vino:first-child { border-top: 0; padding-top: 0.5rem; }

.vino__ficha {
  margin: 0.35rem 0 0;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--tinta-suave);
}

.vino__notas {
  margin: 0.75rem 0 0;
  max-width: var(--ancho-lectura);
}

.vino__pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  margin-top: 1rem;
}

.vino__pie .maridaje { margin: 0; }

/* Medidor de dulzor: cinco gotas de seco a dulce */
.dulzor {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--tinta-suave);
}

.dulzor__escala {
  display: inline-flex;
  gap: 4px;
}

.dulzor__punto {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 1.5px solid var(--vino);
}

.dulzor__punto--lleno { background: var(--vino); }

.leyenda-vinos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  font-size: var(--t-sm);
  color: var(--tinta-suave);
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--vino);
  color: var(--lino);
  font-weight: 600;
  font-size: var(--t-base);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.boton:hover { background: var(--vino-profundo); }

.boton--chico {
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  font-size: var(--t-sm);
}

.boton--claro {
  background: var(--arena);
  color: var(--vino);
}

.boton--claro:hover { background: var(--lino); }

/* ---------- Inicio ---------- */
.portada {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2.5rem var(--margen) 1rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .portada { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; padding-top: 4rem; }
}

.portada h1 {
  font-size: clamp(2.5rem, 10vw, 4rem);
  line-height: 1.02;
}

.portada__texto p {
  margin: 1.25rem 0 1.75rem;
  max-width: 32rem;
  color: var(--tinta-suave);
}

.portada__foto { margin: 0; }

.portada__foto img {
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.portada__foto figcaption {
  margin-top: 0.6rem;
  font-size: var(--t-xs);
  color: var(--tinta-suave);
}

.bloque {
  padding: 3rem var(--margen) 0;
}

.contenido-estrecho {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.bloque h2 {
  font-size: var(--t-2xl);
  margin-bottom: 0.75rem;
}

.bloque p { max-width: var(--ancho-lectura); }

.bloque--frase {
  text-align: center;
  padding-top: 3.5rem;
}

.frase-marca {
  font-family: var(--fuente-titulos);
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  line-height: 1.15;
  color: var(--vino);
  max-width: 22ch !important;
  margin: 0 auto;
}

.bloque--frase .bloque__texto {
  margin: 1.25rem auto 0;
  color: var(--tinta-suave);
}

.dos-columnas {
  display: grid;
  gap: 2rem;
  border-top: 1px solid rgba(125, 0, 0, 0.2);
  padding-top: 2rem;
}

@media (min-width: 44rem) {
  .dos-columnas { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.dos-columnas p { margin: 0; }

.valores {
  margin: 1rem 0 0;
  display: grid;
  gap: 0;
}

@media (min-width: 44rem) {
  .valores { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

.valores div {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(125, 0, 0, 0.18);
}

.valores dt {
  font-family: var(--fuente-titulos);
  font-size: var(--t-lg);
  color: var(--vino);
}

.valores dd {
  margin: 0.2rem 0 0;
  color: var(--tinta-suave);
}

.viaggio--inicio {
  margin: 3.5rem 0 0;
  padding: 3rem var(--margen);
  border-radius: 0;
}

.viaggio--inicio .boton { margin-top: 1.5rem; }

.nota {
  font-size: var(--t-sm);
  color: var(--tinta-suave);
}

/* ---------- Tienda ---------- */
.productos {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1rem;
}

@media (min-width: 52rem) {
  .productos { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.75rem; }
}

.producto img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--arena);
}

.producto h2 {
  font-size: var(--t-lg);
  margin-top: 0.75rem;
}

.producto p {
  margin: 0.3rem 0 0.6rem;
  font-size: var(--t-sm);
  color: var(--tinta-suave);
}

.etiqueta {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--vino);
  color: var(--lino);
  font-size: var(--t-xs);
  font-weight: 600;
}

/* ---------- Encuesta ---------- */
.contenido--estrecho { max-width: 40rem; }

.encuesta { margin-top: 0.5rem; }

.pregunta {
  border: 0;
  margin: 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(125, 0, 0, 0.18);
  min-width: 0;
}

.pregunta legend,
.pregunta__titulo {
  display: block;
  padding: 0;
  font-family: var(--fuente-titulos);
  font-size: var(--t-lg);
  line-height: 1.25;
  color: var(--vino);
  margin-bottom: 0.85rem;
}

/* Saca la leyenda del borde del fieldset para que la línea no la atraviese */
.pregunta legend { float: left; width: 100%; }
.pregunta > legend + * { clear: both; }

.pregunta__ayuda {
  margin: -0.5rem 0 0.75rem;
  font-size: var(--t-sm);
  color: var(--tinta-suave);
}

.pregunta__error {
  margin: 0.6rem 0 0;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--vino);
}

/* Estrellas */
.estrellas { display: flex; gap: 0.35rem; }

.estrellas label {
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 6px;
}

.estrellas svg {
  width: 2.25rem;
  height: 2.25rem;
  fill: transparent;
  stroke: var(--vino);
  stroke-width: 1.4;
  stroke-linejoin: round;
  transition: fill 120ms ease, transform 120ms ease;
}

.estrellas label.activa svg { fill: var(--vino); }
.estrellas label:active svg { transform: scale(0.9); }

.estrellas input:focus-visible + label,
.opciones input:focus-visible + label,
.escala input:focus-visible + label {
  outline: 3px solid var(--vino);
  outline-offset: 2px;
}

/* Opciones tipo píldora */
.opciones { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(125, 0, 0, 0.4);
  border-radius: 999px;
  background: transparent;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--vino);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.opciones input:checked + .chip {
  background: var(--vino);
  border-color: var(--vino);
  color: var(--lino);
}

/* Escala 0–10 */
.escala {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 4px;
}

.escala label {
  display: grid;
  place-items: center;
  height: 2.75rem;
  border: 1px solid rgba(125, 0, 0, 0.4);
  border-radius: 6px;
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--vino);
  cursor: pointer;
}

.escala input:checked + label {
  background: var(--vino);
  border-color: var(--vino);
  color: var(--lino);
}

.escala__extremos {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: var(--t-xs);
  color: var(--tinta-suave);
}

textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(125, 0, 0, 0.4);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  color: var(--tinta);
  resize: vertical;
}

textarea:focus-visible { outline: 3px solid var(--vino); outline-offset: 1px; }

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

.encuesta__estado {
  min-height: 1.5em;
  margin: 0.5rem 0;
  font-weight: 600;
  color: var(--vino);
}

.boton--ancho { width: 100%; }
.boton:disabled { opacity: 0.6; cursor: wait; }

.encuesta .nota { text-align: center; }

.gracias {
  text-align: center;
  padding: 2rem 0 3rem;
}

.gracias:focus { outline: none; }

.gracias img { width: 9rem; margin: 0 auto 1rem; }

.gracias h2 { font-size: var(--t-2xl); }

.gracias p { margin: 0.75rem 0 1.75rem; color: var(--tinta-suave); }

/* ---------- Pie de página interior ---------- */
.pie {
  border-top: 1px solid rgba(125, 0, 0, 0.15);
  margin-top: 3rem;
  padding: 1.5rem var(--margen) 2.5rem;
  text-align: center;
  color: var(--tinta-suave);
}

.pie .aviso-alcohol { margin: 0 auto; }

.pie a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--vino);
  font-weight: 600;
}
