/*
 * assets/css/elmuelle.css — Tema de Restaurante El Muelle (Nesos 0.1.13)
 *
 * Es la UNICA hoja propia de este sitio (§21.3: «tema y receta» es la unica
 * capa que cambia de un cliente a otro). Tres partes:
 *
 *   1. Los diez tokens --n-* que usan las secciones (§21.5).
 *   2. Tipografia autoalojada: Poppins, la misma familia del logo (OFL).
 *   3. Esqueleto del sitio: cabecera, menu, pie, paginas legales.
 *
 * Colores de la marca, medidos del logo original: azul marino #1d1d3f y azul
 * del «RESTAURANT» #5f97b0. Ese azul claro tiene ~3:1 de contraste sobre
 * blanco: vale para detalles, no para texto ni botones. El acento de botones
 * y enlaces es una version mas oscura del mismo tono (#2f6f8f, ~5,4:1).
 */

/* ---------- 1. Tokens ---------- */

:root {
  --n-marca: #1d1d3f;
  --n-acento: #2f6f8f;
  --n-fondo: #ffffff;
  --n-superficie: #f2f6f8;
  --n-texto: #1f2233;
  --n-suave: #5b6275;
  --n-linea: #dde4e8;
  --n-fuente-titulos: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --n-fuente-texto: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --n-radio: 6px;

  /* Propios del tema (no los usa el nucleo). */
  --em-azul-claro: #5f97b0;
  --em-ancho: 72rem;
}

/* ---------- 2. Tipografia ---------- */

/* Subconjunto latino (U+0000-00FF y afines): cubre español, inglés y alemán
   (ä ö ü ß) sin necesitar latin-ext. font-display: swap -> el texto se ve
   desde el primer momento con la del sistema. */
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('/assets/fonts/poppins-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/poppins-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/poppins-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 3. Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--n-fondo);
  color: var(--n-texto);
  font-family: var(--n-fuente-texto);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--n-fuente-titulos);
  font-weight: 300;
  line-height: 1.2;
  color: var(--n-marca);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 400; }
a { color: var(--n-acento); }
a:hover { color: var(--n-marca); }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--n-acento); outline-offset: 3px; }

.n-contenedor { width: 100%; max-width: var(--em-ancho); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 1.75rem); }
.n-seccion { padding-block: clamp(2.75rem, 7vw, 4.75rem); }

.n-boton {
  display: inline-block;
  padding: .8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--n-radio);
  background: var(--n-acento);
  color: #fff;
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color .15s, color .15s;
}
.n-boton:hover { background: var(--n-marca); color: #fff; }

.n-saltar {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--n-marca);
  color: #fff;
  border-radius: var(--n-radio);
}
.n-saltar:focus { top: 1rem; }

/* ---------- Cabecera ---------- */

.n-cab {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / .96);
  border-bottom: 1px solid var(--n-linea);
  backdrop-filter: blur(6px);
}
/* Para que /#contacto no quede tapado por la cabecera fija (lo usa bloques.css). */
:root { --n-cabecera-fija: 5.5rem; }

.n-cab-in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.75rem;
}
.n-logo { display: block; flex: 0 0 auto; line-height: 0; }
.n-logo-img { width: 10.5rem; height: auto; }

.n-nav { margin-left: auto; }
.n-nav ul { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.n-nav a {
  display: block;
  padding: .5rem .8rem;
  border-radius: var(--n-radio);
  color: var(--n-marca);
  text-decoration: none;
  font-size: .95rem;
}
.n-nav a:hover { background: var(--n-superficie); }
.n-nav a[aria-current="page"] { color: var(--n-acento); font-weight: 600; }

.n-cab-der { display: flex; align-items: center; gap: 1rem; }
/* Selector de idioma con banderas (SVG en linea, ver partials/header.php).
   La del idioma actual va entera y con aro; las otras, algo apagadas, y se
   encienden al pasar por encima. El nombre del idioma solo se ve en el menu
   movil; en la cabecera queda para lectores de pantalla. */
.n-idiomas { display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.n-idiomas a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem;
  border-radius: 5px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--n-suave);
  text-decoration: none;
  opacity: .6;
  transition: opacity .15s, background-color .15s;
}
.n-idiomas a:hover, .n-idiomas a:focus-visible { opacity: 1; background: var(--n-superficie); }
.n-idiomas a[aria-current="true"] { opacity: 1; }
.n-bandera {
  display: block;
  width: 1.6rem;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .14);
}
.n-idiomas a[aria-current="true"] .n-bandera { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--n-marca); }
.n-idioma-nombre {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.n-cab-tel {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: var(--n-marca);
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  white-space: nowrap;
}
.n-cab-tel:hover { background: var(--n-acento); color: #fff; }
.n-cab-tel svg { width: 1rem; height: 1rem; }

/* Menu movil: <details>, sin JavaScript. */
.n-menu-movil { display: none; margin-left: auto; position: relative; }
.n-menu-movil > summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .8rem;
  border: 1px solid var(--n-linea);
  border-radius: var(--n-radio);
  list-style: none;
  cursor: pointer;
  font-size: .9rem;
  color: var(--n-marca);
}
.n-menu-movil > summary::-webkit-details-marker { display: none; }
.n-hamb, .n-hamb::before, .n-hamb::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.n-hamb { position: relative; }
.n-hamb::before, .n-hamb::after { content: ""; position: absolute; left: 0; }
.n-hamb::before { top: -6px; }
.n-hamb::after  { top: 6px; }
.n-menu-movil-in {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  min-width: 14rem;
  padding: .75rem;
  background: #fff;
  border: 1px solid var(--n-linea);
  border-radius: calc(var(--n-radio) * 1.5);
  box-shadow: 0 12px 32px rgb(0 0 0 / .12);
}
.n-menu-movil-in ul:not(.n-idiomas) { margin: 0 0 .5rem; padding: 0; list-style: none; }
.n-menu-movil-in ul:not(.n-idiomas) a {
  display: block;
  padding: .6rem .7rem;
  border-radius: var(--n-radio);
  color: var(--n-marca);
  text-decoration: none;
}
.n-menu-movil-in ul:not(.n-idiomas) a:hover { background: var(--n-superficie); }
.n-menu-movil-in .n-idiomas {
  flex-direction: column;
  align-items: stretch;
  gap: .15rem;
  padding-top: .6rem;
  border-top: 1px solid var(--n-linea);
}
.n-menu-movil-in .n-idiomas a { padding: .5rem .7rem; font-weight: 400; font-size: .95rem; letter-spacing: 0; color: var(--n-marca); }
.n-menu-movil-in .n-idiomas a[aria-current="true"] { background: var(--n-superficie); font-weight: 600; }
.n-menu-movil-in .n-idioma-nombre { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

@media (max-width: 56rem) {
  .n-nav, .n-cab-der .n-idiomas { display: none; }
  .n-menu-movil { display: block; }
  .n-cab-der { order: 3; }
  .n-cab-in { gap: .75rem; min-height: 4rem; }
  .n-logo-img { width: 8.5rem; }
}
@media (max-width: 26rem) {
  .n-cab-tel span { display: none; }
  .n-cab-tel { padding: .6rem; }
}

/* ---------- Secciones: bandas de color ---------- */

/* Opiniones sobre la superficie del sitio, para separar sin lineas. */
.b-sec-opiniones { background: var(--n-superficie); }
.b-sec-opiniones + .b-sec { padding-top: clamp(2.75rem, 7vw, 4.75rem); }
.b-sec-opiniones + .b-sec-contacto { padding-top: clamp(2.75rem, 7vw, 4.75rem); }
.b-sec + .b-sec-opiniones { padding-top: clamp(2.75rem, 7vw, 4.75rem); }

/* Presentacion (texto) centrada y comoda de leer bajo la portada. */
.p-inicio .b-texto .b-titulo { font-size: clamp(1.7rem, 4vw, 2.4rem); }

/* ---------- Paginas de tipo bloques sin portada ---------- */

.n-pag-cab { padding-bottom: 0; }

/* ---------- Legales y 404 ---------- */

.n-prosa { max-width: 46rem; }
.n-legal h2 { font-size: 1.35rem; font-weight: 400; margin: 2.2rem 0 .6rem; }
.n-legal h3 { margin: 1.6rem 0 .4rem; }
.n-legal ul { padding-left: 1.2rem; }
.n-legal li { margin-bottom: .35rem; }
.n-legal table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.n-legal th, .n-legal td { border: 1px solid var(--n-linea); padding: .5rem .6rem; text-align: left; vertical-align: top; }
.n-404 { text-align: left; min-height: 40vh; }

/* ---------- Pie ---------- */

.n-pie {
  background: var(--n-marca);
  color: rgb(255 255 255 / .82);
  font-size: .9rem;
}
.n-pie a { color: #fff; }
.n-pie-in {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2.5rem;
}
.n-pie-logo { width: 11rem; height: auto; display: block; margin-bottom: 1rem; }
.n-pie-marca p { margin: 0 0 .4rem; }
.n-pie-legal ul { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.n-pie-legal a { text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .35); }
.n-pie-legal a:hover { border-bottom-color: #fff; }
.n-pie-legal p { margin: 0 0 .4rem; }
.n-pie-nota { color: var(--em-azul-claro); filter: brightness(1.35); }
@media (min-width: 48rem) {
  .n-pie-in { grid-template-columns: 1fr 1fr; align-items: end; }
  .n-pie-legal { text-align: right; }
  .n-pie-legal ul { justify-content: flex-end; }
}
