:root {
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --card-bg: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.08);
}

@page {
  size: A4;
  margin: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18) 0, transparent 45%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.15) 0, transparent 45%),
    var(--bg-soft);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* capas decorativas (muy suaves) */

.bg-layer {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(209, 213, 219, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(209, 213, 219, 0.4) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.bg-layer-2 {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 60%);
  opacity: 1;
}

/* contenedor principal */

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* efecto glass claro */

.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(249, 250, 251, 0.94));
  border: 1px solid rgba(209, 213, 219, 0.8);
  backdrop-filter: blur(14px);
}

/* Cabecera / branding */

.top-bar {
  width: 100%;
  max-width: 1100px;
  margin: 12px auto 0;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-main {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-tagline i {
  font-size: 11px;
  color: var(--accent);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Tabs de días */

.day-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: rgba(255, 255, 255, 0.9);
  gap: 3px;
}

.day-tab {
  border: none;
  background: transparent;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: default;
  color: var(--text-muted);
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.day-tab-label {
  transform: translateY(0.5px);
}

.day-tab.active {
  background: var(--accent-soft);
  color: #9a3412;
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.35);
}

/* pill “menú de hoy” */

.today-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(209, 213, 219, 0.9);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.today-pill i {
  font-size: 12px;
  color: var(--accent);
}

.navidad-link {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: linear-gradient(135deg, #fffbeb, #fee2e2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #b91c1c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.navidad-link i {
  font-size: 12px;
  color: #16a34a;
}

.navidad-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(248, 113, 113, 0.35);
  background: linear-gradient(135deg, #fee2e2, #fffbeb);
}


/* Página y tarjeta de menú */

.page {
  width: 100%;
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 16px 16px 10px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

#menu-container {
  width: 100%;
}

.menu-card {
  width: 100%;
  border-radius: 24px;
  padding: 22px 26px 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

/* halo decorativo suave */

.menu-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(249, 115, 22, 0.2);
  opacity: 0.6;
  pointer-events: none;
}

/* header de la tarjeta */

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.menu-tag {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.day-pill {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  font-weight: 650;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: radial-gradient(circle at top left, #fef9c3, #ffffff);
}

/* separador */

.divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(209, 213, 219, 0.9),
    transparent
  );
  margin-top: 4px;
}

/* plato del día */

.dish-of-day {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(252, 211, 77, 0.7);
  background: radial-gradient(circle at top left, rgba(252, 211, 77, 0.32), #fff7ed);
  text-align: center;
}

.dish-of-day h2 {
  margin: 0 0 6px 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.dish-name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

/* Grid de secciones */

.sections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.section {
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: linear-gradient(
    to bottom,
    #ffffff,
    #f9fafb
  );
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.section h3 {
  margin: 0 0 6px 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section h3 i {
  font-size: 11px;
  color: var(--accent);
}

.section ul {
  margin: 0;
  padding-left: 0;
  font-size: 12px;
  list-style: none;
}

.section li {
  margin-bottom: 4px;
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
}

.section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  color: var(--accent);
}

/* Avisos */

.menu-notice {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(209, 213, 219, 0.9);
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--text-muted);
}

.menu-notice p {
  margin: 2px 0;
}

/* Footer */

.menu-footer {
  border-top: 1px dashed rgba(209, 213, 219, 0.9);
  padding-top: 8px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
}

.prices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.dot {
  opacity: 0.6;
}

.price-tag {
  font-weight: 550;
}

.contact {
  text-align: right;
}

.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact i {
  font-size: 12px;
  color: var(--accent);
}

/* Paginación (estado del día) */

.pagination {
  width: 100%;
  max-width: 1100px;
  margin: 6px auto 16px;
  padding: 4px 16px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.page-indicator {
  font-weight: 550;
}

/* Vista fin de semana */

.weekend-message {
  text-align: center;
  padding: 16px 8px 6px;
}

.weekend-title {
  font-size: 20px;
  font-weight: 650;
  margin-bottom: 4px;
}

.weekend-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* Loading / error */

.loading,
.error {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 30px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.error {
  color: #b91c1c;
}

/* Responsive */

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px;
  }

  .page {
    padding: 10px 10px 8px;
  }

  .menu-card {
    padding: 18px 16px 12px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  }

  .sections-grid {
    grid-template-columns: 1fr;
  }

  .menu-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact {
    text-align: left;
  }
}

/* Estilos de impresión: blanco y negro, centrado en A4 */

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .bg-layer,
  .bg-layer-2,
  .top-bar,
  .pagination {
    display: none !important;
  }

  .app {
    min-height: auto;
  }

  .page {
    width: 210mm;
    height: 297mm;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #menu-container {
    width: 190mm;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .menu-card {
    width: 100%;
    max-width: 190mm;
    box-shadow: none;
    background: #ffffff !important;
    color: #000000 !important;
    border-radius: 0;
    border: 1px solid #000000;
  }

  .menu-card::before {
    display: none;
  }

  .dish-of-day,
  .section {
    background: #ffffff !important;
    border-color: #000000 !important;
  }

  .menu-tag,
  .day-pill,
  .dish-of-day h2,
  .dish-name,
  .section h3,
  .section ul,
  .menu-notice,
  .menu-footer,
  .weekend-title,
  .weekend-message,
  .weekend-sub {
    color: #000000 !important;
  }

  .section li::before {
    color: #000000 !important;
  }

  /* fuentes un poco más grandes en impresión */

  .brand-main {
    font-size: 20px;
  }

  .menu-tag {
    font-size: 14px;
  }

  .day-pill {
    font-size: 15px;
  }

  .dish-of-day h2 {
    font-size: 15px;
  }

  .dish-name {
    font-size: 21px;
  }

  .section h3 {
    font-size: 14px;
  }

  .section ul {
    font-size: 14px;
  }

  .menu-notice {
    font-size: 13px;
  }

  .menu-footer {
    font-size: 14px;
  }

  .weekend-title {
    font-size: 20px;
  }

  .weekend-message,
  .weekend-sub {
    font-size: 15px;
  }

  .loading,
  .error {
    font-size: 15px;
  }
}


/* ===== Banner de cookies ===== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 12px 16px;
  background: rgba(17, 24, 39, 0.96);
  color: #f9fafb;
  font-size: 13px;
  border-top: 1px solid rgba(75, 85, 99, 0.7);
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text a {
  color: #bfdbfe;
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: #22c55e;
  color: #022c22;
}

.cookie-btn-secondary {
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #4b5563;
}

.cookie-btn-ghost {
  background: transparent;
  color: #e5e7eb;
}

@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
