/* Paleta e identidad tipográfica tomadas del Manual de Marca — Valentina's Italian Bistro.
   Los nombres de variable (--blue, --terracotta, --olive, --lemon) se mantienen por compatibilidad
   con el resto del código, pero ahora apuntan a los tonos de marca: Rojo Vino, Madera, Albahaca, Crema. */
:root {
  --cream: #FBF8F2;
  --cream-light: #FFFEFB;
  --cream-2: #F3EDE1;
  --blue: #7C2530;         /* Rojo Vino — acento principal, CTA, iconos, líneas */
  --blue-dark: #5C1B23;    /* Vino oscuro — hover, degradados oscuros */
  --olive: #556B41;        /* Verde Albahaca — acento gastronómico, uso mínimo */
  --lemon: #F3EDE1;        /* Crema 2 — fondos de resalte suaves (antes amarillo) */
  --terracotta: #9C6B3E;   /* Madera Tostada — precios, acentos cálidos secundarios */
  --piedra: #B4AC9E;       /* Piedra Cálida — neutro secundario, texto sobre negro */
  --ink: #1B1815;          /* Negro Bistro — tipografía principal */
  --ink-soft: #6b5f52;
  --line: rgba(27, 24, 21, 0.14);
  --shadow: 0 10px 30px rgba(27, 24, 21, 0.14);
  --shadow-soft: 0 4px 14px rgba(27, 24, 21, 0.10);
  --radius-lg: 6px;
  --radius-md: 4px;
  --radius-sm: 3px;
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-script: "Alex Brush", cursive;
  --font-body: "Jost", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4em;
  letter-spacing: 0.2px;
}

/* Uso exclusivo del manual de marca: el nombre "Valentina's" en script caligráfico.
   Nunca usar en textos largos ni en minúsculas pequeñas. */
.brand-script {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.logo-mark {
  flex-shrink: 0;
  background: var(--cream-light);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.logo-mark img { display: block; object-fit: contain; }

p { margin: 0 0 0.6em; line-height: 1.55; color: var(--ink-soft); }

a { color: inherit; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow-soft);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--blue);
  color: var(--cream-light);
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-secondary {
  background: var(--ink);
  color: var(--cream-light);
}
.btn-secondary:hover { background: #322c26; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(27, 24, 21, 0.06); }

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

.card {
  background: var(--cream-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.price {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terracotta);
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 0.28em 0.85em;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-olive { background: rgba(85, 107, 65, 0.16); color: var(--olive); }
.badge-lemon { background: var(--cream-2); color: var(--terracotta); }
.badge-blue { background: rgba(124, 37, 48, 0.12); color: var(--blue); }

input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--cream-light);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(27,24,21,0.25); border-radius: 10px; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- overlays / modals (usado por menu y admin) ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(27, 24, 21, 0.6);
  display: flex; align-items: flex-end;
  z-index: 100;
  backdrop-filter: blur(2px);
}
@media (min-width: 720px) {
  .overlay { align-items: center; justify-content: center; }
}

.modal {
  background: var(--cream-light);
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  padding: 1.6rem 1.4rem 2rem;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}
@media (min-width: 720px) {
  .modal { border-radius: var(--radius-lg); max-height: 88vh; }
}

.modal-close {
  position: sticky; top: 0; float: right;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cream); border: 1px solid var(--line);
  font-size: 1.1rem; z-index: 5;
}

/* ---------- filete decorativo (motivo del manual: línea + rombo) ---------- */
.section-rule {
  display: flex; align-items: baseline; gap: 14px;
}
.section-rule .line {
  height: 1px; background: var(--blue); flex: 1; position: relative;
}
.section-rule .line::after {
  content: ""; position: absolute; right: -3px; top: -3px;
  width: 6px; height: 6px; background: var(--blue);
  border-radius: 50% 50% 50% 0; transform: rotate(45deg);
}
