/* =========================================================
   Delicias de Colombia — estilos
   Sistema: minimalista / editorial técnico — monocromo + un
   único acento, sin esquinas redondeadas, sin sombras (bordes
   de 1px en su lugar). Mobile-first: los estilos base son
   para móvil; los @media (min-width) añaden cambios para
   pantallas grandes.
   ========================================================= */

/* ---------- 1. Variables de marca ---------- */
:root {
  --ink: #1A1A1A;             /* texto principal */
  --ink-soft: #55504A;        /* texto secundario */
  --paper: #FFFCF4;           /* fondo general, blanco cálido */
  --paper-soft: #FBF1D4;      /* fondo de bloques secundarios, amarillo muy pálido */
  --line: #E7D9A8;            /* bordes, divisores */

  --amarillo: #FFC72C;        /* bandera: amarillo */
  --amarillo-oscuro: #E0A800;
  --azul: #0033A0;            /* bandera: azul */
  --azul-oscuro: #00257A;
  --rojo: #CE1126;            /* bandera: rojo */
  --rojo-oscuro: #A50E1F;
  --abierto: #1E9E4C;          /* verde, solo para "abierto ahora" */

  --accent: var(--rojo);       /* acento de énfasis puntual (etiquetas, enlaces) */
  --accent-soft: var(--paper-soft);

  --f-titulo: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-texto: "Inter", system-ui, sans-serif;
  --f-dato: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radio: 0px;
  --ancho: 1180px;
  --alto-cabecera: 64px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-cabecera) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-underline-offset: .2em; }
h1, h2, h3 {
  font-family: var(--f-titulo);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5rem;
}
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 20px; }
.visualmente-oculto {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.saltar { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: .5rem 1rem; }
.saltar:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Antes "manuscrita": ahora una etiqueta técnica discreta, no una firma caligráfica */
.manuscrita {
  font-family: var(--f-dato);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 500;
  margin: 0 0 .5rem;
}

/* Notas discretas (precio a consultar, menú orientativo): texto normal de carta, no un aviso de obra */
.pendiente {
  display: inline;
  color: var(--ink-soft);
  font-family: var(--f-texto);
  font-style: italic;
  font-size: .85rem;
}
.pendiente--pequeno { font-size: .78rem; }

/* ---------- 3. Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.4rem;
  border-radius: var(--radio);
  border: 1px solid var(--ink);
  font-family: var(--f-texto);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.boton--amarillo { background: var(--amarillo); color: var(--ink); border-color: var(--ink); }
.boton--amarillo:hover, .boton--amarillo:focus-visible { background: var(--amarillo-oscuro); }
.boton--rojo { background: var(--rojo); color: var(--paper); border-color: var(--rojo); }
.boton--rojo:hover, .boton--rojo:focus-visible { background: var(--rojo-oscuro); border-color: var(--rojo-oscuro); }
.boton--contorno { border-color: var(--azul); color: var(--azul); background: transparent; }
.boton--contorno:hover, .boton--contorno:focus-visible { background: var(--azul); color: var(--paper); }
.boton--pequeno { min-height: 40px; padding: .4rem 1rem; font-size: .85rem; }
.icono { width: 18px; height: 18px; }

/* ---------- 4. Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
}
.franja {
  height: 6px;
  background: linear-gradient(to right, var(--amarillo) 0 50%, var(--azul) 50% 75%, var(--rojo) 75% 100%);
}
.cabecera__fila {
  display: flex; align-items: center; gap: 1rem;
  height: var(--alto-cabecera);
}
.cabecera__acciones { display: none; align-items: center; gap: .5rem; margin-left: auto; }
.marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.marca__logo { height: 40px; width: auto; display: block; }

/* Menú hamburguesa (móvil) */
.menu-toggle {
  order: 3;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.menu-toggle__barras, .menu-toggle__barras::before, .menu-toggle__barras::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  position: relative; transition: transform .2s ease;
}
.menu-toggle__barras::before { position: absolute; top: -7px; }
.menu-toggle__barras::after  { position: absolute; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__barras { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__barras::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__barras::after  { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: none;
}
.nav.abierto { display: block; }
.nav ul { list-style: none; margin: 0; padding: .5rem 20px 1rem; }
.nav a {
  display: block; padding: .8rem 0;
  font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* ---------- 5. Hero ---------- */
.hero { position: relative; padding: 3.5rem 0 3rem; overflow: hidden; background: var(--azul); isolation: isolate; }
.hero__fondo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  opacity: .55; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,37,122,.88), rgba(24,20,15,.82));
}
.hero__rejilla { position: relative; z-index: 2; display: block; }
.hero__texto { max-width: 46ch; }
.hero .manuscrita { color: var(--amarillo); }
.hero__titulo { color: var(--paper); font-size: clamp(2.1rem, 8vw, 3.4rem); letter-spacing: -.02em; }
.hero__sub { font-size: 1.05rem; color: #E4ECFB; margin: 0 0 1.25rem; max-width: 38ch; }
.hero__botones { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.hero__botones .boton { flex: 1 1 180px; }
.hero .boton--contorno { border-color: var(--paper); color: var(--paper); }
.hero .boton--contorno:hover, .hero .boton--contorno:focus-visible { background: var(--paper); color: var(--ink); }

.estado-hoy { margin: 0; font-family: var(--f-dato); font-weight: 500; font-size: .85rem; display: flex; align-items: center; gap: .5rem; min-height: 1.6em; color: var(--ink-soft); }
.estado-hoy::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.estado-hoy.abierto { color: var(--abierto); }
.estado-hoy.abierto::before { background: var(--abierto); }
.estado-hoy.cerrado { color: var(--rojo); }
.estado-hoy.cerrado::before { background: var(--rojo); }
.estado-hoy:empty::before { display: none; }
.hero .estado-hoy { color: #E4ECFB; }
.hero .estado-hoy.abierto { color: #74E29C; }
.hero .estado-hoy.abierto::before { background: #74E29C; }
.hero .estado-hoy.cerrado { color: #FFA98C; }
.hero .estado-hoy.cerrado::before { background: #FFA98C; }

.servicios { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.servicios li {
  font-family: var(--f-dato); font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft);
  padding: .6rem 1rem .6rem 0; margin-right: 1rem;
  border-right: 1px solid var(--line);
}
.servicios li:last-child { border-right: 0; margin-right: 0; }
.hero .servicios { border-top-color: rgba(228,236,251,.3); }
.hero .servicios li { color: #E4ECFB; border-right-color: rgba(228,236,251,.3); }

.foto-nosotros { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--amarillo); border-radius: 0; display: block; }

/* ---------- 6. Secciones ---------- */
.seccion { padding: 3rem 0; border-top: 1px solid var(--line); }
.hero + .seccion, .seccion--menu-hoy { border-top: 0; }
.seccion__cabecera { margin-bottom: 1.75rem; max-width: 56ch; }
.seccion__cabecera--izq { text-align: left; }
.seccion--crema-oscura { background: var(--paper-soft); }

/* Bloques de color plano (nosotros, footer): azul bandera, sin textura decorativa */
.seccion--madera {
  background-color: var(--azul);
  color: #E4ECFB;
}
.seccion--madera h2 { color: var(--amarillo); }
.seccion--madera .manuscrita { color: var(--amarillo); }
.seccion--madera a { color: var(--amarillo); }

/* ---------- 7. Menú de hoy ---------- */
.seccion--menu-hoy { padding-top: 2rem; }
.tarjeta-menu {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 1.5rem 1.25rem 1.75rem;
}
.tarjeta-menu__foto { margin: -1.5rem -1.25rem 1.5rem; }
.tarjeta-menu__foto img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-bottom: 1px solid var(--ink); }
.tarjeta-menu__cabecera { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.tarjeta-menu__cabecera .manuscrita { margin: 0 0 .35rem; }
.tarjeta-menu__cabecera h2 { margin: 0; font-size: 1.4rem; }
.precio-grande {
  font-family: var(--f-dato); color: var(--ink);
  font-size: 2.25rem; line-height: 1; margin: 0; font-weight: 500;
}
.precio-grande small { font-size: 1rem; color: var(--ink-soft); }
.tarjeta-menu__hoy {
  margin: 0 0 1.25rem;
  font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.1rem, 4vw, 1.4rem); color: var(--ink);
  line-height: 1.3;
}
.tarjeta-menu__pie { margin: 1.25rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }

/* ---------- 8. Especiales ---------- */
.especiales { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.especial {
  position: relative;
  background: var(--paper);
  padding: 1.5rem;
}
.especial--hoy { background: var(--accent-soft); }
.especial__etiqueta {
  display: inline-block; font-family: var(--f-dato); font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--ink-soft); color: var(--ink-soft); padding: .2rem .5rem;
}
.especial__hoy { background: var(--accent); border-color: var(--accent); color: var(--paper); margin-left: .35rem; }
.especial__fila { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: .75rem 0 .5rem; }
.especial h3 { margin: 0; font-size: 1.3rem; }
.precio { font-family: var(--f-dato); color: var(--ink); font-size: 1.3rem; font-weight: 500; white-space: nowrap; margin: 0; }
.euro { font-size: .7em; }
.precio small { font-family: var(--f-texto); font-size: .72rem; font-weight: 500; color: var(--ink-soft); display: block; text-align: right; }
.especial__destacados { font-family: var(--f-titulo); font-weight: 700; font-size: 1.15rem; margin: 0; }
.especial__resto { font-size: .82rem; color: var(--ink-soft); margin: .4rem 0 0; }

/* ---------- 9. Carta (avance por categorías): sin marco, solo lo que hay ---------- */
.galeria-carta { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.galeria-carta img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.categorias-carta { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .9rem; }
.categorias-carta strong { font-family: var(--f-titulo); font-weight: 700; font-size: 1.1rem; }
.categorias-carta span { display: block; font-size: .88rem; color: var(--ink-soft); }

/* ---------- 10. Nosotros ---------- */
.nosotros { display: grid; gap: 2rem; align-items: center; }

/* ---------- 11. Domicilios / Reservas ---------- */
.pedir { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pedir__opcion {
  background: var(--paper); padding: 1.5rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: .25rem;
}
.pedir__opcion p { margin: 0 0 .75rem; color: var(--ink-soft); }
.pedir__opcion { width: 100%; }
.pedir__opcion .boton { width: 100%; margin-top: .5rem; }
.pedir__opcion .boton:first-of-type { margin-top: auto; }
.pedir__dato { font-size: .9rem; }

/* ---------- 12. Horario y ubicación ---------- */
.ubicacion { display: grid; gap: 2rem; }
.horario { width: 100%; border-collapse: collapse; margin-bottom: 1rem; background: var(--paper); border: 1px solid var(--line); }
.horario th, .horario td { text-align: left; padding: .65rem 1rem; border-bottom: 1px solid var(--line); font-weight: 400; }
.horario th { font-weight: 500; }
.horario td { text-align: right; font-family: var(--f-dato); font-variant-numeric: tabular-nums; }
.horario tr:last-child th, .horario tr:last-child td { border-bottom: 0; }
.horario .hoy { background: var(--accent-soft); }
.horario .hoy th::after { content: " · hoy"; color: var(--accent); font-weight: 500; font-size: .75rem; font-family: var(--f-dato); text-transform: uppercase; }
.horario .cerrado-dia td { color: var(--ink-soft); }
.direccion { font-style: normal; margin: 1rem 0; color: var(--ink-soft); }
.direccion strong { color: var(--ink); font-weight: 600; }
.mapa iframe { width: 100%; height: 320px; border: 1px solid var(--line); display: block; filter: grayscale(.3) contrast(1.05); }

/* ---------- 13. Footer ---------- */
.pie { padding-bottom: 6rem; }
.pie__rejilla { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2rem; }
.pie__marca { font-family: var(--f-titulo); font-weight: 600; font-size: 1.5rem; color: var(--amarillo); margin: 0; }
.pie__titulo { font-family: var(--f-dato); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--amarillo) !important; margin: 0 0 .75rem; }
.pie__lista { list-style: none; padding: 0; margin: 0; }
.pie__lista li { padding: .3rem 0; color: #C7D4F2; }
.pie__lista a { color: #E4ECFB; }
.pie__creditos { border-top: 1px solid rgba(228,236,251,.15); padding-top: 1rem; font-size: .78rem; color: #A9BBE5; }

/* ---------- 13b. Páginas legales ---------- */
.legal { max-width: 70ch; padding: 3rem 0 5rem; }
.legal h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin: 0 0 1rem; }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal li { margin-bottom: .5rem; }
.legal strong { color: var(--ink); }
.legal .actualizado { font-family: var(--f-dato); font-size: .8rem; color: var(--ink-soft); margin-bottom: 2rem; }
.legal .volver { display: inline-block; margin-bottom: 2rem; }
.campo-legal { background: var(--paper-soft); border: 1px dashed var(--ink-soft); padding: .1rem .4rem; font-family: var(--f-dato); font-size: .92em; }

/* ---------- 14. Botón flotante WhatsApp (móvil) ---------- */
.whatsapp-flotante {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: .4rem;
  background: #25D366; color: #06331A;
  font-weight: 700; text-decoration: none;
  padding: .8rem 1.1rem; border-radius: var(--radio);
  border: 1px solid #06331A;
}
.whatsapp-flotante svg { width: 20px; height: 20px; }

/* =========================================================
   Pantallas medianas y grandes
   ========================================================= */
@media (min-width: 640px) {
  .especiales, .pedir { grid-template-columns: repeat(2, 1fr); }
  .tarjeta-menu__columnas { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --alto-cabecera: 72px; }
  .seccion { padding: 5rem 0; }
  .marca__logo { height: 52px; }

  .menu-toggle { display: none; }
  .cabecera__acciones { display: flex; }
  .nav { position: static; display: block; background: none; border: 0; }
  .nav ul { display: flex; gap: 1.75rem; padding: 0; }
  .nav a { border: 0; padding: .25rem 0; font-size: .9rem; position: relative; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .15s ease; }
  .nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

  .hero { padding: 6rem 0 5.5rem; }
  .hero__botones .boton { flex: 0 0 auto; }

  .tarjeta-menu { padding: 2.5rem; }
  .tarjeta-menu__foto { margin: -2.5rem -2.5rem 1.75rem; }
  .especiales { grid-template-columns: repeat(3, 1fr); }
  .pedir { grid-template-columns: repeat(3, 1fr); }
  .categorias-carta { grid-template-columns: repeat(2, 1fr); }
  .galeria-carta { grid-template-columns: repeat(6, 120px); justify-content: start; }

  .nosotros { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .ubicacion { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .mapa iframe { height: 100%; min-height: 440px; }

  .pie { padding-bottom: 0; }
  .pie__rejilla { grid-template-columns: 1.4fr 1fr 1fr; }
  .whatsapp-flotante { display: none; }   /* en escritorio ya hay botones visibles */
}
