/* Punto Funes — estilos
   Paleta y tipografía según el manual de identidad:
   verde #0c4232 · amarillo #f3ba52 · blanco de apoyo.
   Tipografía: All Round Gothic Book (manual) → Quicksand como equivalente web libre. */

@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --verde: #0c4232;
  --verde-hondo: #08332a;
  --amarillo: #f3ba52;
  --blanco: #ffffff;

  /* Tema día */
  --fondo: #ffffff;
  --fondo-2: #f5f2e9;
  --tinta: #0c4232;
  --tinta-2: rgba(12, 66, 50, 0.74);
  --linea: rgba(12, 66, 50, 0.16);
  --tarjeta: #ffffff;
  --sombra: 0 1px 2px rgba(12, 66, 50, 0.06), 0 10px 30px -18px rgba(12, 66, 50, 0.35);

  --fuente: "All Round Gothic", "Quicksand", "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 1160px;
  --margen: clamp(18px, 4.5vw, 44px);
  --radio: 18px;

  /* Colores de la marca gastronómica activa (los pisa menu.js) */
  --m1: var(--verde);
  --m2: var(--amarillo);
  --m-tinta: #ffffff;

  color-scheme: light;
}

:root[data-tema="noche"] {
  --fondo: #0c4232;
  --fondo-2: #08372a;
  --tinta: #ffffff;
  --tinta-2: rgba(255, 255, 255, 0.78);
  --linea: rgba(255, 255, 255, 0.18);
  --tarjeta: #11503d;
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.2), 0 14px 34px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--fuente);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
button { font: inherit; color: inherit; }

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

.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--margen); }

.oculto-visual {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Logos: versión verde de día, blanca de noche */
.solo-noche { display: none; }
:root[data-tema="noche"] .solo-dia { display: none; }
:root[data-tema="noche"] .solo-noche { display: block; }

/* ───────── Encabezado ───────── */
.cabecera {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--fondo) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
}
.cabecera .contenedor { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.cabecera__logo { flex: none; display: block; }
.cabecera__logo img { height: 26px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.nav a { text-decoration: none; font-size: 16px; padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--amarillo); }
.btn-tema {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--linea); background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.btn-tema:hover { background: var(--fondo-2); }
.btn-tema svg { width: 19px; height: 19px; }
.btn-tema .luna { display: none; }
:root[data-tema="noche"] .btn-tema .sol { display: none; }
:root[data-tema="noche"] .btn-tema .luna { display: block; }

@media (max-width: 720px) {
  .cabecera .contenedor { flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .cabecera__logo { margin-right: auto; }
  .nav {
    order: 3; width: calc(100% + 2 * var(--margen)); margin: 6px calc(-1 * var(--margen)) 0;
    padding-inline: var(--margen); gap: 22px; overflow-x: auto; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 15px; padding: 8px 0 10px; }
  html { scroll-padding-top: 112px; }
}

/* ───────── Botones y píldoras ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  background: var(--amarillo); color: var(--verde);
  font-weight: 600; text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(12, 66, 50, 0.6); }
.btn--linea { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--tinta); }
.btn--linea:hover { box-shadow: inset 0 0 0 1.5px var(--tinta), 0 10px 22px -14px rgba(12, 66, 50, 0.6); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Óvalo "Hoy en punto:" del manual */
.ovalo {
  display: inline-block; text-decoration: none;
  background: var(--amarillo); color: var(--verde);
  padding: 30px 76px 32px; border-radius: 50%; text-align: center;
  transform: rotate(-3deg); line-height: 1.1;
  transition: transform 0.2s ease;
}
a.ovalo:hover { transform: rotate(-1deg) scale(1.03); }
.ovalo__pre { display: block; font-size: clamp(17px, 2.2vw, 22px); }
.ovalo__txt { display: block; font-size: clamp(20px, 2.8vw, 30px); text-transform: uppercase; letter-spacing: 0.01em; max-width: 15em; }
.ovalo__post { display: block; font-size: 14px; margin-top: 6px; font-weight: 600; }

/* ───────── Hero ───────── */
.hero { position: relative; overflow: hidden; }
.hero .contenedor {
  position: relative; z-index: 1;
  min-height: min(78vh, 720px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 28px; padding-block: clamp(48px, 9vw, 96px);
}
.hero__logo img { width: min(540px, 78vw); height: auto; }
@media (min-width: 901px) {
  .hero .contenedor > * { max-width: 60%; }
  .hero__logo img { width: min(540px, 100%); }
}
.hero__lema { font-size: clamp(24px, 3.6vw, 40px); letter-spacing: -0.01em; }
.hero__bajada { max-width: 34em; color: var(--tinta-2); font-size: clamp(17px, 1.6vw, 19px); }
.hero__pin {
  position: absolute; z-index: 0; pointer-events: none;
  right: max(2vw, calc((100vw - var(--ancho)) / 2)); top: 50%;
  height: 84%; width: auto; max-width: 34vw; object-fit: contain;
  transform: translateY(-50%) rotate(8deg);
}
.hero__acciones { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

@media (max-width: 900px) {
  .hero .contenedor { min-height: 0; padding-bottom: 46vw; }
  .hero__pin { top: auto; bottom: -9vw; right: -7vw; height: auto; width: 46vw; max-width: none; transform: rotate(10deg); }
}

/* ───────── Secciones ───────── */
.seccion { padding-block: clamp(56px, 8vw, 104px); }
.seccion--banda { background: var(--fondo-2); }
.seccion__cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 44px); }
.titulo { font-size: clamp(34px, 5.4vw, 60px); }
.titulo::after { content: "."; color: var(--amarillo); }
.bajada { color: var(--tinta-2); max-width: 36em; margin-top: 12px; }

/* Datos rápidos */
.datos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dato {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border-radius: var(--radio);
  background: var(--tarjeta); border: 1px solid var(--linea);
  text-decoration: none;
}
a.dato:hover { border-color: var(--amarillo); }
.dato__icono { flex: none; width: 54px; height: 54px; }
.dato__rot { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinta-2); }
.dato__val { font-size: 18px; line-height: 1.35; margin-top: 4px; }
.dato__val span { display: block; }

/* ───────── Marcas ───────── */
.marcas { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
@media (max-width: 520px) { .marcas { grid-template-columns: 1fr 1fr; gap: 12px; } }

.marca {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radio); text-decoration: none;
  background: var(--m1); color: var(--m-tinta);
  aspect-ratio: 1 / 1.05; isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--sombra);
}
.marca:hover { transform: translateY(-4px); }
.marca::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.2; background: var(--trama); }
.marca__cuerpo { flex: 1; display: grid; place-items: center; padding: 18px 18px 6px; min-height: 0; }
.marca__logo { max-width: 78%; max-height: 100%; object-fit: contain; }
.marca__nombre { font-size: clamp(22px, 3.4vw, 30px); text-align: center; line-height: 1.05; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.marca__pie {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 16px; font-size: 14px; font-weight: 600;
  background: rgba(0, 0, 0, 0.16);
}
.marca--neutra { background: var(--tarjeta); color: var(--tinta); border: 1px solid var(--linea); }
.marca--neutra .marca__pie { background: var(--fondo-2); }
.marca--neutra::before { opacity: 0.1; }

/* Entramado con los colores de cada marca */
.trama {
  --trama:
    repeating-linear-gradient(45deg, var(--m2) 0 2px, transparent 2px 16px),
    repeating-linear-gradient(-45deg, var(--m2) 0 2px, transparent 2px 16px);
}

/* ───────── Agenda ───────── */
.agenda { display: grid; gap: 14px; }
.fecha {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 30px); align-items: center;
  padding: clamp(16px, 2.4vw, 24px); border-radius: var(--radio);
  background: var(--tarjeta); border: 1px solid var(--linea);
}
.fecha__dia {
  width: clamp(84px, 12vw, 112px); aspect-ratio: 1; border-radius: 50%;
  background: var(--verde); color: #fff;
  display: grid; place-content: center; text-align: center; line-height: 1;
}
:root[data-tema="noche"] .fecha__dia { background: var(--amarillo); color: var(--verde); }
.fecha__num { font-size: clamp(32px, 4.6vw, 44px); letter-spacing: -0.03em; }
.fecha__mes { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
.fecha__cuando { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tinta-2); }
.fecha__titulo { font-size: clamp(22px, 3vw, 30px); margin-top: 4px; }
.fecha__desc { color: var(--tinta-2); margin-top: 8px; max-width: 46em; }
.fecha__img { grid-column: 1 / -1; border-radius: 12px; width: 100%; max-height: 420px; object-fit: cover; }
.fecha--hoy { border-color: var(--amarillo); box-shadow: 0 0 0 2px var(--amarillo); }
.etiqueta { display: inline-block; background: var(--amarillo); color: var(--verde); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }

.vacio { padding: 28px; border: 1.5px dashed var(--linea); border-radius: var(--radio); color: var(--tinta-2); }
.vacio a { color: var(--tinta); font-weight: 600; }

/* ───────── Cómo llegar ───────── */
.llegar { display: grid; gap: clamp(22px, 4vw, 48px); grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
.llegar__info { display: grid; gap: 22px; justify-items: start; }
.llegar__dir { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.2; }
.lista-simple { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.mapa { border-radius: var(--radio); overflow: hidden; border: 1px solid var(--linea); aspect-ratio: 4 / 3; background: var(--fondo-2); }
.mapa iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 820px) { .llegar { grid-template-columns: 1fr; } .mapa { aspect-ratio: 1 / 1; } }

/* ───────── Tu evento (banda) ───────── */
.banda-evento { background: var(--verde); color: #fff; position: relative; overflow: hidden; }
:root[data-tema="noche"] .banda-evento { background: var(--amarillo); color: var(--verde); }
.banda-evento .contenedor { position: relative; display: grid; gap: 22px; justify-items: start; padding-block: clamp(56px, 8vw, 96px); }
.banda-evento .titulo { max-width: 14em; }
:root[data-tema="noche"] .banda-evento .titulo::after { color: var(--verde); }
.banda-evento p { max-width: 34em; font-size: clamp(18px, 2vw, 21px); opacity: 0.9; }
.banda-evento__mono { position: absolute; right: var(--margen); bottom: -30px; height: 115%; width: auto; opacity: 0.12; pointer-events: none; }
:root[data-tema="noche"] .banda-evento .btn { background: var(--verde); color: #fff; }

/* ───────── Pie ───────── */
.pie { border-top: 1px solid var(--linea); padding-block: 44px 34px; font-size: 15.5px; }
.pie__fila { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-start; justify-content: space-between; }
.pie__mono img { height: 84px; width: auto; }
.pie__col { display: grid; gap: 4px; max-width: 24em; }
.pie__rot { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tinta-2); margin-bottom: 4px; }
.pie__lema { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--linea); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--tinta-2); }

/* ───────── Página: Tu evento ───────── */
.portada { padding-block: clamp(44px, 7vw, 88px) clamp(30px, 4vw, 48px); }
.portada .titulo { font-size: clamp(40px, 7vw, 82px); max-width: 12em; }
.portada__corta { font-size: clamp(20px, 2.6vw, 28px); margin-top: 18px; max-width: 26em; color: var(--tinta-2); }
.evento { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: start; padding-bottom: clamp(56px, 8vw, 104px); }
.prosa { display: grid; gap: 18px; font-size: clamp(17px, 1.6vw, 19px); max-width: 40em; }
.ovalos { display: flex; flex-wrap: wrap; gap: 14px 10px; padding: 10px 0; list-style: none; margin: 0; }
.ovalos li { background: var(--amarillo); color: var(--verde); border-radius: 50%; padding: 14px 30px 15px; font-size: clamp(18px, 2vw, 22px); line-height: 1.1; }
.ovalos li:nth-child(odd) { transform: rotate(-3deg); }
.ovalos li:nth-child(even) { transform: rotate(2deg); }
.contacto { position: sticky; top: 96px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radio); background: var(--verde); color: #fff; display: grid; gap: 14px; justify-items: start; }
:root[data-tema="noche"] .contacto { background: var(--tarjeta); border: 1px solid var(--linea); }
.contacto h2 { font-size: 26px; }
.contacto__tel { font-size: 22px; text-decoration: none; }
@media (max-width: 820px) { .evento { grid-template-columns: 1fr; } .contacto { position: static; } }

/* ───────── Página: Menú ───────── */
.menu-hero { position: relative; isolation: isolate; background: var(--m1); color: var(--m-tinta); overflow: hidden; }
.menu-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.22; background: var(--trama); }
.menu-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 50%, var(--m1) 0%, transparent 72%); }
.menu-hero .contenedor { display: flex; align-items: center; gap: clamp(18px, 4vw, 40px); padding-block: clamp(30px, 6vw, 60px); flex-wrap: wrap; }
.menu-hero__logo { flex: none; width: clamp(96px, 20vw, 168px); height: clamp(96px, 20vw, 168px); object-fit: contain; }
.menu-hero__txt { flex: 1; min-width: 220px; display: grid; gap: 10px; justify-items: start; }
.menu-hero__rot { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.menu-hero h1 { font-size: clamp(38px, 7vw, 76px); }
.menu-hero__desc { max-width: 34em; opacity: 0.92; }
.redes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.redes a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; }
.redes a:hover { background: var(--m-tinta); color: var(--m1); }

.cats { position: sticky; top: 0; z-index: 20; background: var(--fondo); border-bottom: 1px solid var(--linea); }
.cats .contenedor { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.cats .contenedor::-webkit-scrollbar { display: none; }
.cats a { flex: none; text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--linea); }
.cats a:hover, .cats a.activa { background: var(--tinta); color: var(--fondo); border-color: var(--tinta); }
.pagina-menu { scroll-padding-top: 70px; }

.carta { padding-block: clamp(26px, 5vw, 52px) clamp(48px, 7vw, 88px); display: grid; gap: clamp(34px, 5vw, 56px); }
.cat__titulo { display: flex; align-items: center; gap: 14px; font-size: clamp(26px, 4vw, 38px); margin-bottom: 16px; }
.cat__titulo::before { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--trama), var(--m1); background-size: 9px 9px, auto; }
.platos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.plato { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px; border-radius: var(--radio); background: var(--tarjeta); border: 1px solid var(--linea); }
.plato__nombre { font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.plato__ing { color: var(--tinta-2); font-size: 15.5px; margin-top: 4px; line-height: 1.4; }
.plato__precio { margin-top: 10px; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.plato__foto { width: 104px; height: 104px; border-radius: 14px; overflow: hidden; padding: 0; border: 0; background: var(--fondo-2); cursor: zoom-in; }
.plato__foto img { width: 100%; height: 100%; object-fit: cover; }

.visor { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92vh; }
.visor::backdrop { background: rgba(4, 26, 20, 0.86); }
.visor img { max-width: 100%; max-height: 80vh; border-radius: 16px; margin-inline: auto; }
.visor p { color: #fff; text-align: center; margin-top: 12px; font-size: 18px; }
.visor form { position: absolute; top: 8px; right: 8px; }
.visor button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--verde); font-size: 22px; line-height: 1; cursor: pointer; }

.otras { border-top: 1px solid var(--linea); padding-block: 36px 60px; }
.otras h2 { font-size: 24px; margin-bottom: 16px; }
.otras__fila { display: flex; gap: 10px; flex-wrap: wrap; }
.chip-marca { text-decoration: none; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--m1); color: var(--m-tinta); }
.chip-marca--neutra { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linea); }
.chip-marca:hover { filter: brightness(1.08); transform: translateY(-1px); }

.cargando { color: var(--tinta-2); padding: 20px 0; }
.cargando::after { content: "…"; animation: puntos 1.2s steps(4, end) infinite; display: inline-block; overflow: hidden; vertical-align: bottom; width: 0; }
@keyframes puntos { to { width: 1.2em; } }

/* 404 */
.nada { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; padding: 40px var(--margen); }
.nada img { width: 110px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
