/* ─────────────────────────────────────────────
   FREIDURIA NATY — Estilos globales
   ───────────────────────────────────────────── */

:root {
  --cream: #FFFBF0;
  --orange: #EA580C;
  --orange-dk: #C2410C;
  --dark: #1C0A00;
  --muted: #8C6A50;
  --nav-h: 62px;
  --cat-h: 50px;
  --radius: 12px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ───── NAVBAR ───── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(234, 88, 12, .3);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FEF3C7;
  letter-spacing: -.02em;
  text-decoration: none;
}
.logo em { font-style: normal; color: var(--orange); }
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: #C8A070;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: #FEF3C7; }
.nav-links a.active { color: var(--orange); }

/* mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #FEF3C7;
  cursor: pointer;
  padding: .25rem;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--dark);
    padding: 1rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(234, 88, 12, .3);
    transform: translateY(-110%);
    transition: transform .25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: .95rem; padding: .35rem 0; display: block; }
}

/* ───── PÁGINA (estructura general) ───── */
.page {
  flex: 1;
  width: 100%;
}

/* ───── FOOTER ───── */
.site-footer {
  background: var(--dark);
  color: #C8A070;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  font-size: .85rem;
  border-top: 1px solid rgba(234, 88, 12, .25);
}
.footer-brand {
  font-family: var(--font-display);
  color: #FEF3C7;
  font-size: 1.1rem;
  margin-bottom: .35rem;
}
.footer-brand em { font-style: normal; color: var(--orange); }
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: .75rem;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 88, 12, .15);
  border-radius: 50%;
  color: #FEF3C7;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.footer-socials a:hover {
  background: var(--orange);
  transform: translateY(-2px);
}
.footer-socials svg { width: 18px; height: 18px; }
.footer-meta {
  margin-top: .85rem;
  font-size: .75rem;
  color: var(--muted);
}

/* ───── BOTONES ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  letter-spacing: .01em;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(234, 88, 12, .35);
}
.btn-outline {
  background: transparent;
  color: #FEF3C7;
  border-color: #FEF3C7;
}
.btn-outline:hover {
  background: #FEF3C7;
  color: var(--dark);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1FB855;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, .4);
}

/* ─────────────────────────────────────────────
   INDEX (Home)
   ───────────────────────────────────────────── */

.hero {
  background: var(--dark);
  color: #FEF3C7;
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(234, 88, 12, .15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(234, 88, 12, .1), transparent 45%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-logo {
  max-width: 260px;
  margin: 0 auto 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.hero-title em { color: var(--orange); font-style: normal; }
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: #C8A070;
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-hours {
  background: rgba(255, 251, 240, .06);
  border: 1px solid rgba(234, 88, 12, .25);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}
.hero-hours h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--orange);
  margin-bottom: .65rem;
  text-align: center;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero-hours ul {
  list-style: none;
  font-size: .9rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.hero-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #FEF3C7;
}
.hero-hours strong { color: #FEF3C7; font-weight: 600; }

/* Clásicos */
.classics {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: .35rem;
  letter-spacing: -.015em;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: .95rem;
}
.classics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.classic-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  border: 1px solid rgba(28, 10, 0, .07);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.classic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(234, 88, 12, .15);
  border-color: rgba(234, 88, 12, .3);
}
.classic-emoji { font-size: 2.5rem; margin-bottom: .5rem; display: block; }
.classic-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

/* WhatsApp CTA */
.cta-whatsapp {
  background: var(--orange);
  color: #fff;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.cta-whatsapp h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: .75rem;
}
.cta-whatsapp p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: .95;
}
.cta-whatsapp .btn-whatsapp { margin-bottom: 1.5rem; }
.cta-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.cta-socials a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.cta-socials a:hover { background: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.cta-socials svg { width: 20px; height: 20px; }

/* ─────────────────────────────────────────────
   CONTACTO
   ───────────────────────────────────────────── */

.contact-hero {
  background: var(--dark);
  color: #FEF3C7;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}
.contact-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: .5rem;
}
.contact-hero p { color: #C8A070; }

.contact-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(28, 10, 0, .07);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--orange);
}
.contact-card a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
}
.contact-card a:hover { color: var(--orange); }
.contact-card .icon { font-size: 1.6rem; }

.schedule {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.schedule h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(28, 10, 0, .05);
  font-size: .92rem;
}
.schedule-table th,
.schedule-table td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(28, 10, 0, .06);
}
.schedule-table th {
  background: var(--dark);
  color: #FEF3C7;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .02em;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table .closed { color: var(--muted); font-style: italic; }
.schedule-table tr.today {
  background: rgba(234, 88, 12, .08);
}
.schedule-table tr.today td:first-child { color: var(--orange); font-weight: 700; }

.map-wrap {
  max-width: 1000px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}
.map-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 1rem;
}
.map-frame {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 5px 20px rgba(28, 10, 0, .1);
}
.map-address {
  text-align: center;
  margin-top: .85rem;
  color: var(--muted);
  font-size: .9rem;
}

/* ─────────────────────────────────────────────
   CARTA
   ───────────────────────────────────────────── */

body.carta-page { padding-bottom: 80px; }

.cat-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: var(--cream);
  border-bottom: 1px solid rgba(28, 10, 0, .08);
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: .2rem;
  padding: .55rem 1.25rem;
  width: max-content;
  min-width: 100%;
}
.cat-pill {
  display: block;
  font-size: .775rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .3rem .85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s;
  text-decoration: none;
}
.cat-pill:hover { background: rgba(234, 88, 12, .08); color: var(--orange); }
.cat-pill.active { background: var(--orange); color: #fff; font-weight: 600; }

.carta-main {
  max-width: 940px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}
.cat-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: calc(var(--nav-h) + var(--cat-h) + 12px);
}
.cat-header {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.2rem;
  padding-bottom: .75rem;
  border-bottom: 2.5px solid var(--orange);
}
.cat-emoji { font-size: 1.6rem; line-height: 1; }
.cat-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.015em;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: .7rem;
}

.item-card {
  background: #fff;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(28, 10, 0, .06);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.item-card:hover {
  box-shadow: 0 5px 20px rgba(234, 88, 12, .1);
  border-color: rgba(234, 88, 12, .18);
}
.item-photo {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #FFF0D0, #FFE0A8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.item-body {
  padding: .85rem 1rem .9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.item-name { font-weight: 600; font-size: .93rem; color: var(--dark); line-height: 1.3; }
.item-desc { font-size: .78rem; color: var(--muted); line-height: 1.45; flex: 1; }

.item-allergens { display: none; flex-wrap: wrap; gap: 4px; margin-top: .4rem; }
body.allergens-on .item-allergens { display: flex; }
.ab {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .56rem;
  font-weight: 700;
  color: #fff;
  cursor: help;
  flex-shrink: 0;
  position: relative;
  transition: transform .15s;
  overflow: hidden;
}
.ab img { width: 100%; height: 100%; object-fit: contain; }
.ab:hover { transform: scale(1.2); }
.ab::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: #1C0A00;
  color: #fff;
  font-size: .65rem;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 10;
}
.ab:hover::after { opacity: 1; }

.item-footer {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: .8rem;
  margin-top: .6rem;
}
.price-grp { text-align: right; }
.price-lbl {
  display: block;
  font-size: .67rem;
  color: #B8957A;
  font-weight: 500;
  margin-bottom: 1px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.price { font-size: .9rem; font-weight: 700; color: var(--orange-dk); }
.price-lg { font-size: 1rem; font-weight: 700; color: var(--orange); }
.ph-price { color: var(--muted); font-size: .75rem; font-style: italic; }

/* RACION layout */
.racion-header {
  display: flex;
  justify-content: flex-end;
  gap: 2.5rem;
  padding-right: .5rem;
  margin-bottom: .4rem;
}
.racion-lbl {
  font-size: .7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  min-width: 56px;
  text-align: center;
}
.items-racion { display: flex; flex-direction: column; gap: .4rem; }
.racion-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: .65rem 1rem;
  border: 1px solid rgba(28, 10, 0, .055);
  transition: box-shadow .2s;
  gap: 1rem;
}
.racion-row:hover { box-shadow: 0 3px 12px rgba(234, 88, 12, .09); }
.racion-left { display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.racion-name { font-weight: 500; font-size: .92rem; }
.racion-row .item-allergens { margin-top: 0; }
.racion-prices { display: flex; gap: 2.5rem; flex-shrink: 0; }
.racion-price {
  font-weight: 700;
  font-size: .9rem;
  color: var(--orange-dk);
  min-width: 56px;
  text-align: center;
}

/* Aliños: 3 columnas precio */
.alinos-header .racion-lbl { min-width: 60px; }
.alinos-prices { display: flex; gap: 1.5rem; flex-shrink: 0; }
.alinos-price {
  font-weight: 700;
  font-size: .88rem;
  color: var(--orange-dk);
  min-width: 60px;
  text-align: center;
}

/* Section note */
.sec-note {
  font-size: .775rem;
  color: var(--muted);
  font-style: italic;
  margin-top: .75rem;
  padding: .55rem .9rem;
  background: rgba(234, 88, 12, .05);
  border-left: 2px solid var(--orange);
  border-radius: 0 6px 6px 0;
}

/* Group separator (frituras / bebidas) */
.group-block + .group-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(234, 88, 12, .25);
}
.group-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange-dk);
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Extras */
.extras-block {
  margin-top: 1.25rem;
  background: #fff;
  border: 1px dashed rgba(234, 88, 12, .35);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
}
.extras-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .55rem;
  color: var(--orange-dk);
}
.extras-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .85rem;
}
.extras-list li {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .15rem 0;
}
.extras-list .ex-name { color: var(--dark); }
.extras-list .ex-price { color: var(--orange-dk); font-weight: 700; }
.extras-list .ex-prices { color: var(--orange-dk); font-weight: 700; display: flex; gap: 1rem; }
.extras-ingredientes {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: .35rem;
}

/* Allergen legend */
.allergen-legend {
  display: none;
  margin-top: 2.5rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(28, 10, 0, .07);
  overflow: hidden;
}
body.allergens-on .allergen-legend { display: block; }
.legend-head {
  background: var(--dark);
  color: #FEF3C7;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.legend-head h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.legend-head span { font-size: .75rem; color: #C8A070; }
.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.25rem;
  border-bottom: .5px solid rgba(28, 10, 0, .06);
  border-right: .5px solid rgba(28, 10, 0, .06);
}
.legend-badge {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.legend-badge img { width: 100%; height: 100%; object-fit: contain; }
.legend-text { display: flex; flex-direction: column; }
.legend-name { font-weight: 600; font-size: .85rem; color: var(--dark); }
.legend-desc { font-size: .72rem; color: var(--muted); line-height: 1.35; }

.disclaimer {
  font-size: .76rem;
  color: var(--muted);
  text-align: center;
  margin-top: 2rem;
  padding: 1.25rem 1rem;
  border-top: 1px solid rgba(28, 10, 0, .07);
  font-style: italic;
  line-height: 1.7;
}

/* Fixed allergen bar */
.allergen-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--dark);
  border-top: 1px solid rgba(234, 88, 12, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .75rem 1.5rem;
  height: 60px;
}
.bar-text {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #C8A070;
  font-size: .85rem;
  font-weight: 500;
}
.bar-label { color: #FEF3C7; font-size: .85rem; font-weight: 600; }
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.ts-track {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #444;
  border-radius: 13px;
  transition: .2s;
}
.ts-track::before {
  content: '';
  position: absolute;
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}
.toggle-switch input:checked + .ts-track { background: var(--orange); }
.toggle-switch input:checked + .ts-track::before { transform: translateX(20px); }
.bar-status { font-size: .75rem; color: #888; min-width: 30px; }
body.allergens-on .bar-status { color: var(--orange); }

@media (max-width: 600px) {
  .navbar { padding: 0 1rem; }
  .carta-main { padding: 1.5rem 1rem 3rem; }
  .items-grid { grid-template-columns: 1fr; }
  .legend-grid { grid-template-columns: 1fr; }
  .racion-prices { gap: 1.25rem; }
  .alinos-prices { gap: .75rem; }
  .schedule-table { font-size: .82rem; }
  .schedule-table th, .schedule-table td { padding: .65rem .55rem; }
}
