/* ============================================================================
   styles.css — Layout, componentes y reglas responsive.
   Sólo usa variables de variables.css → válido para los 3 presets.
   Mobile-first: los estilos base son para móvil; media queries amplían.
   ============================================================================ */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--page-texture);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--heading); line-height: 1.15; margin: 0; }

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

a { color: var(--accent); }

/* Fondo de cielo fijo: visible detrás de las secciones centrales
   (el hero y el footer son opacos y quedan por encima). */
.sky-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #3b7fd4 url("../assets/sky.jpg") center center / cover no-repeat;
}

.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }

section { padding: 56px 0; }

.section-title {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 8px;
  position: relative;
  /* blanco con sombra fuerte: legible sobre cielo azul y sobre nubes blancas */
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.65);
}
.section-title::after {
  content: "";
  display: block;
  width: 60px; height: 4px;
  background: #e8c37a; /* subrayado dorado (guiño bandera asturiana) */
  margin: 14px auto 0;
  border-radius: 99px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* ---- HERO ---------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 0; /* contiene sus capas de fondo por encima de .sky-bg */
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--on-accent);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,10,5,0.35) 0%, rgba(20,10,5,0.65) 100%);
  z-index: -1;
}
.hero__inner { max-width: 640px; }
.hero__title { color: #fff; font-size: 2.4rem; text-shadow: 0 2px 14px rgba(0,0,0,0.5); }
.hero__tagline { font-size: 1.15rem; margin: 14px 0 30px; color: #fbeee2; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.hero__phone { margin: 16px 0 0; font-size: 1.05rem; font-weight: 700; letter-spacing: .3px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }

/* ---- Botones ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius);
  font-size: 1.05rem; font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn--call { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 22px rgba(0,0,0,0.22); }
.btn--call:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 26px rgba(0,0,0,0.3); }
.btn__icon { width: 22px; height: 22px; fill: currentColor; }

/* ---- MENÚ ---------------------------------------------------------------- */
.menu { background: transparent; }
.menu__note { text-align: center; color: #12240e; font-weight: 500; font-size: .9rem; margin: 10px auto 0; max-width: 520px; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85); }
.menu__grid { display: grid; gap: 26px; margin-top: 28px; }
.menu__category {
  background: #f5e6a2; /* amarillo dorado suave (guiño a la bandera asturiana) */
  border: 1px solid #e4d17f;
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(20, 40, 70, 0.18);
  padding: 22px 22px 8px;
}
.menu__category-title { font-size: 1.3rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #4f7328; color: #4f7328; }
.menu__item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dotted #dcc873;
}
.menu__item:last-child { border-bottom: none; }
.menu__item-name { flex: 1 1 auto; color: #141414; }
.menu__item-dots { flex: 0 1 auto; border-bottom: 1px dotted #b3a15f; align-self: flex-end; min-width: 12px; opacity: .5; }
.menu__item-price { flex: 0 0 auto; font-weight: 700; color: #46691f; white-space: nowrap; }

/* ---- MENÚ DEL DÍA (misma estética que la carta) -------------------------- */
.dia__card {
  max-width: 640px; margin: 30px auto 0;
  background: #f5e6a2; /* mismo dorado que las cajas de la carta */
  border: 1px solid #e4d17f;
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(20, 40, 70, 0.18);
  padding: 8px 22px;
}
.dia__item { padding: 14px 0; border-bottom: 1px dotted #dcc873; }
.dia__item:last-child { border-bottom: none; }
.dia__item-head { display: flex; align-items: baseline; gap: 10px; }
.dia__item-name { flex: 1 1 auto; font-weight: 700; color: #141414; }
.dia__item-price { flex: 0 0 auto; font-weight: 700; color: #46691f; white-space: nowrap; }
.dia__item-desc { color: #5a4a30; font-size: .92rem; margin-top: 3px; }

/* ---- HORARIOS ------------------------------------------------------------ */
.hours__table {
  width: 100%; max-width: 460px; margin: 30px auto 0;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hours__table td { padding: 13px 20px; border-bottom: 1px solid var(--border); }
.hours__table tr:last-child td { border-bottom: none; }
.hours__day { text-transform: capitalize; font-weight: 600; }
.hours__time { text-align: right; color: var(--text-muted); }
.hours__time--closed { color: #b23b2e; font-style: italic; }
.hours__row--today { background: var(--today); }
.hours__row--today .hours__day::after {
  content: "hoy";
  display: inline-block; margin-left: 8px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--on-accent); background: var(--accent);
  padding: 2px 8px; border-radius: 99px; vertical-align: middle;
}

/* ---- UBICACIÓN ----------------------------------------------------------- */
.location__address { text-align: center; font-size: 1.1rem; margin: 0 auto 24px; max-width: 520px; color: #ffffff; font-weight: 600; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.6); }
.location__map {
  width: 100%; aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- FOOTER -------------------------------------------------------------- */
.footer { background: var(--accent-strong); color: var(--on-accent); text-align: center; padding: 40px 20px; }
.footer a { color: var(--on-accent); font-weight: 700; text-decoration: none; }
.footer__phone { font-size: 1.4rem; display: inline-block; margin-bottom: 10px; }
.footer__phone:hover { text-decoration: underline; }
.footer__address { opacity: .85; margin: 6px 0 0; }
.footer__credit { opacity: .6; font-size: .82rem; margin-top: 20px; }

/* ---- Desktop / tablet ---------------------------------------------------- */
@media (min-width: 700px) {
  .hero__title { font-size: 3.4rem; }
  .section-title { font-size: 2.1rem; }
  .menu__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
