/*
 * Proyecto: Carta Digital para Restaurante
 * Autor: iAles - Apphos - Servicios Web
 * Licencia: Comercial de uso restringido
 */

:root {
  --bg: #111111;
  --card: #1b1b1b;
  --soft: #262626;
  --text: #f6f3ee;
  --muted: #cbbcae;
  --primary: #ff7a18;
  --accent: #ffd166;
  --border: rgba(255,255,255,.08);
  --radius: 22px;
  --shadow: 0 20px 50px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(circle at top left, #2a170d 0%, #111 35%, #111 100%);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(17,17,17,.82);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-texts {
  min-width: 0;
}
.brand-logo { width: auto; height: 54px; object-fit: contain; }
.brand-title {
  font: 800 1.4rem Poppins, sans-serif;
  line-height: 1.1;
}
.brand-subtitle {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 4px;
  line-height: 1.35;
}
.main-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.main-nav a {
  color: #e9dccf;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,.07);
  color: #fff;
}
.lang-switcher {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.lang-pill {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.lang-pill img { width: 22px; height: 22px; }
.lang-pill.active {
  border-color: rgba(255,122,24,.7);
  box-shadow: 0 0 0 4px rgba(255,122,24,.12);
}

.hero { padding: 72px 0 42px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.hero h1 {
  font: 800 clamp(2.4rem, 5vw, 4.5rem) Poppins, sans-serif;
  line-height: 1.03;
  margin: 0 0 16px;
}
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), #ff9b50); color: #1a120d; }
.btn-secondary { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--border); }

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.mini-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 8px;
  min-height: 110px;
}
.mini-card strong { font-size: 1rem; }
.mini-card span {
  color: #d7cfc7;
  line-height: 1.45;
  word-break: break-word;
}
.hero-image-card {
  background: linear-gradient(180deg, #2c1c12 0%, #1a1a1a 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-image-card img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }

.section { padding: 34px 0 54px; }
.section.alt { background: rgba(255,255,255,.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head h2, .inner-page h1 {
  font: 800 clamp(1.8rem, 3vw, 3rem) Poppins, sans-serif;
  margin: 0 0 10px;
}
.section-head p, .intro-copy { color: var(--muted); }
.card-grid, .contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.card-full-width { grid-column: 1 / -1; }
.card, .feature-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3, .feature-panel h2, .week-card h3, .day-showcase-body h2 {
  margin-top: 0;
  font: 700 1.2rem Poppins, sans-serif;
}

.site-footer {
  margin-top: 48px;
  padding: 34px 0 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 26px;
}
.footer-brand { margin-bottom: 10px; }
.footer-brand-name { font: 700 1.2rem Poppins, sans-serif; }
.footer-logo { width: 64px; height: 64px; object-fit: contain; }
.footer-copy, .site-footer p {
  color: #c8bfb6;
  line-height: 1.6;
  margin: 0 0 8px;
}
.footer-hours-list { display: grid; gap: 4px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #aa9f95;
  font-size: .95rem;
}

.inner-page { padding: 48px 0 60px; }
.offline-wrap, .install-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.offline-card, .install-card {
  width: min(700px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-grid, .admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #101010;
  color: #fff;
}
.alert { margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; }
.alert.error { background: #402020; color: #ffc8c8; }
.alert.success { background: #173622; color: #b7efc5; }
.full { grid-column: 1 / -1; }
code {
  display: block;
  background: #101010;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  color: #ffd7b7;
  overflow: auto;
}
.menu-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.menu-hero-simple {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.empty-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  margin-top: 20px;
}
.menu-section { margin-top: 34px; }
.menu-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 18px;
}
.menu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.menu-card.compact .menu-card-media { min-height: 180px; }
.menu-card-media {
  position: relative;
  min-height: 210px;
  background: linear-gradient(135deg, #2f1a10, #1a1a1a);
}
.menu-card-media.has-image img { width: 100%; height: 100%; object-fit: cover; min-height: 210px; }
.menu-placeholder {
  min-height: 210px;
  display: grid;
  place-items: center;
  color: #ffcfb0;
  background: radial-gradient(circle at top right, rgba(255,122,24,.38), transparent 40%), radial-gradient(circle at bottom left, rgba(255,209,102,.25), transparent 36%), #1a1a1a;
}
.menu-placeholder.large { min-height: 420px; }
.menu-placeholder span {
  font: 800 1.5rem Poppins, sans-serif;
  letter-spacing: .03em;
  opacity: .8;
}
.menu-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .01em;
  max-width: 100%;
  line-height: 1.2;
}
.pill-featured { background: #ffd166; color: #1d1408; }
.pill-new { background: #ff7a18; color: #1d1408; }
.menu-card-body { padding: 20px; display: grid; gap: 14px; min-width: 0; }
.menu-card-top, .section-inline-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.menu-card-top h3, .section-inline-head h3 {
  margin: 0;
  font: 700 1.25rem Poppins, sans-serif;
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}
.menu-price, .day-price {
  white-space: nowrap;
  color: #ffcf8e;
  font-size: 1.08rem;
  flex: 0 0 auto;
}
.menu-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.allergen-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.allergen-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  max-width: 100%;
}
.allergen-pill-icon,
.allergen-pill-text {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
}
.allergen-pill-icon img { width: 22px; height: 22px; object-fit: contain; display:block; }
.allergen-pill-text {
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #ffe0c2;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  border: 1px solid rgba(255,255,255,.12);
}
.allergen-pill small {
  color: #f4eadf;
  white-space: normal;
  line-height: 1.3;
}

.two-col-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.day-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.day-showcase-media, .day-showcase-body, .week-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.day-showcase-media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.day-showcase-body { padding: 24px; display: grid; gap: 14px; align-content: start; }
.week-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.week-card { padding: 22px; display: grid; gap: 12px; }
.week-title { margin: 0; font-weight: 700; color: #fff; }
.week-line {
  color: #f0e4d8;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.week-line span { color: #ffcf8e; font-weight: 700; }
.hours-list { display: grid; gap: 10px; }
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.hours-row:last-child { border-bottom: 0; }
.hours-row strong { flex: 0 0 145px; }
.hours-row span {
  flex: 1 1 auto;
  text-align: right;
  color: #efe4d8;
  overflow-wrap: anywhere;
}


.menu-hero-actions-only {
  align-items: center;
}
.menu-view-switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.menu-view-pill {
  padding: 10px 16px;
  border-radius: 999px;
  color: #e6d8ca;
  font-weight: 700;
  transition: .18s ease;
}
.menu-view-pill:hover,
.menu-view-pill.active {
  background: rgba(255,122,24,.16);
  color: #fff;
}
.menu-text-layout {
  display: grid;
  gap: 26px;
}
.menu-text-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.menu-text-head {
  margin-bottom: 18px;
}
.menu-text-list {
  display: grid;
}
.menu-text-row {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.menu-text-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.menu-text-row:last-child {
  padding-bottom: 0;
}
.menu-text-main {
  display: grid;
  gap: 12px;
}
.menu-text-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.menu-text-topline h3 {
  margin: 0;
  font: 700 1.18rem Poppins, sans-serif;
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}
.menu-text-description {
  margin: 0;
}
.menu-text-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.allergen-list-text {
  margin-top: 0;
}

.footer-social {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:16px;
}
.social-link {
  width:44px;
  height:44px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#f2e7dc;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255,122,24,.6);
  background: rgba(255,122,24,.12);
}
.social-link svg {
  width:20px;
  height:20px;
  display:block;
}

.contact-map-card {
  padding: 22px;
}
.contact-map-frame {
  width: 100%;
  min-height: 380px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #101010;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
}
