@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@400;600;700&family=Pacifico&display=swap');

:root {
  /* Base cálida — marrón oscuro, no negro puro */
  --bg-deep: #12100c;
  --bg-base: #1a1610;
  --bg-card: rgba(34, 28, 22, 0.94);
  --bg-card-soft: rgba(42, 34, 26, 0.78);

  /* Acentos cálidos suaves (sin neón) */
  --amber: #e8a838;
  --amber-light: #f5c96a;
  --amber-dark: #c8862a;
  --orange: #d97842;
  --orange-soft: #e8955a;

  /* Compatibilidad con variables existentes */
  --yellow: #f0c14d;
  --yellow-dark: #d4a83a;
  --yellow-glow: rgba(232, 168, 56, 0.18);

  --red: #c45c4a;
  --red-dark: #8b4538;
  --red-glow: rgba(196, 92, 74, 0.25);

  --white: #faf3eb;
  --muted: #a89888;
  --border: rgba(232, 168, 56, 0.14);
  --text-on-accent: #2a2018;
  --whatsapp: #25d366;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-deep);
  color: var(--white);
  line-height: 1.5;
  min-height: 100vh;
}

/* Fondo cálido suave — ámbar/naranja tenue, reposo visual */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 55% at 50% -10%, rgba(232, 168, 56, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(217, 120, 66, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 55% 35% at 0% 70%, rgba(196, 92, 74, 0.06) 0%, transparent 45%),
    linear-gradient(175deg, #1e1812 0%, var(--bg-deep) 50%, #100e0a 100%);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 2rem;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.logo {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  position: relative;
}

.logo-img {
  display: block;
  width: min(320px, 85vw);
  height: auto;
  margin: 0 auto;
  transition: transform 0.25s ease;
}

.logo:hover .logo-img {
  transform: scale(1.02);
}

.menu-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.4rem, 4vw, 1.95rem);
  color: var(--text-on-accent);
  margin-top: 1rem;
  display: inline-block;
  padding: 0.4rem 1.35rem;
  background: linear-gradient(135deg, var(--amber-light) 0%, var(--amber) 100%);
  border-radius: 999px;
  box-shadow: 0 4px 16px var(--yellow-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Catálogo — acordeón */
.menu-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 640px;
  margin: 0 auto;
}

.menu-accordion--info {
  margin-top: 1.75rem;
}

.accordion-item {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.accordion-item.is-open {
  border-color: rgba(232, 168, 56, 0.32);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(232, 168, 56, 0.08);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  font: inherit;
  color: inherit;
  text-align: left;
  background: linear-gradient(135deg, rgba(200, 134, 42, 0.12) 0%, rgba(42, 34, 26, 0.4) 100%);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.accordion-trigger:hover {
  background: linear-gradient(135deg, rgba(232, 168, 56, 0.18) 0%, rgba(48, 38, 28, 0.55) 100%);
}

.accordion-item.is-open .accordion-trigger {
  background: linear-gradient(90deg, rgba(200, 134, 42, 0.22) 0%, rgba(232, 168, 56, 0.08) 100%);
  border-bottom: 1px solid rgba(232, 168, 56, 0.12);
}

.accordion-trigger__main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.accordion-trigger__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(232, 168, 56, 0.2);
  border-radius: 12px;
}

.accordion-trigger__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.accordion-trigger__text strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--amber-light);
  line-height: 1.1;
}

.accordion-trigger__text small {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accordion-chevron {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--amber-light);
  border-bottom: 2px solid var(--amber-light);
  transform: rotate(45deg);
  margin-right: 0.35rem;
  transition: transform 0.28s ease;
}

.accordion-item.is-open .accordion-chevron {
  transform: rotate(-135deg) translateY(-2px);
}

.accordion-panel__inner {
  padding: 0.65rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.accordion-info-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.accordion-info-list li {
  font-size: 0.78rem;
  color: var(--white);
  background: rgba(232, 168, 56, 0.1);
  border: 1px solid rgba(232, 168, 56, 0.18);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.accordion-info-note {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.menu-item--accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0;
  padding: 0.85rem 0.9rem;
}

.menu-item__body {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.menu-item--accordion .item-header {
  align-items: flex-start;
}

.menu-item--accordion .item-desc {
  margin-top: 0.4rem;
}

.menu-item--accordion .btn-add,
.btn-add--compact {
  width: 100%;
  max-width: none;
  margin-top: 0;
  align-self: stretch;
  flex-shrink: 0;
}

/* Tablet / desktop — tarjetas en grid legible */
@media (min-width: 600px) {
  .menu-accordion {
    max-width: 720px;
  }

  .menu-accordion--info {
    max-width: 720px;
  }

  .accordion-panel__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .menu-item--accordion {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr auto;
    gap: 0.35rem 1rem;
    padding: 0.9rem 1rem;
    height: 100%;
    min-height: 0;
  }

  .menu-item__body {
    display: contents;
  }

  .menu-item--accordion .item-header {
    grid-column: 1 / -1;
    grid-row: 1;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
  }

  .menu-item--accordion .item-name {
    flex: 1 1 12rem;
  }

  .menu-item--accordion .item-price {
    flex: 0 1 auto;
    max-width: 100%;
    font-size: 0.95rem;
    white-space: normal;
    text-align: right;
    line-height: 1.2;
  }

  .menu-item--accordion .item-desc {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
    align-self: start;
  }

  .menu-item--accordion .btn-add,
  .menu-item--accordion .btn-add--compact {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    width: auto;
    min-width: 7.5rem;
    max-width: 9.5rem;
    padding: 0.55rem 0.85rem;
  }
}

@media (min-width: 1024px) {
  #view-menu .container {
    max-width: 820px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .menu-accordion,
  .menu-accordion--info {
    max-width: 100%;
  }

  .accordion-trigger {
    padding: 1rem 1.15rem;
  }

  .accordion-trigger__text strong {
    font-size: 1.35rem;
  }
}

@media (max-width: 599px) {
  .menu-item--accordion {
    flex-direction: column;
  }
}

/* Legacy grid (fallback) */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.menu-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.menu-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem 1rem 1rem;
}

.section-banner {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, var(--amber-dark) 0%, var(--amber) 50%, var(--amber-light) 100%);
  color: var(--text-on-accent);
  padding: 0.45rem 1rem;
  margin: -0.85rem -1rem 1rem;
  width: calc(100% + 2rem);
  display: block;
  border-radius: 16px 16px 0 0;
  text-align: center;
}

.menu-item {
  margin-bottom: 0.75rem;
  padding: 0.85rem 0.9rem;
  background: var(--bg-card-soft);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border-left: 3px solid var(--amber);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.menu-item:hover {
  transform: translateY(-1px);
  background: rgba(48, 38, 28, 0.88);
  border-color: rgba(232, 168, 56, 0.2);
  border-left-color: var(--orange-soft);
}

.menu-item:last-child {
  margin-bottom: 0;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.item-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}

.item-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: var(--amber-light);
  white-space: nowrap;
  background: rgba(240, 193, 77, 0.1);
  border: 1px solid rgba(232, 168, 56, 0.18);
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  line-height: 1.2;
  box-shadow: none;
}

.item-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.45rem;
  line-height: 1.45;
}

/* Bottom info boxes */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (max-width: 640px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-box {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s;
}

.info-box:hover {
  border-color: rgba(232, 168, 56, 0.25);
}

.info-box h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--text-on-accent);
  background: linear-gradient(90deg, var(--amber-dark), var(--amber-light));
  margin: -1rem -1.15rem 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 14px 14px 0 0;
  border-bottom: none;
}

.info-box ul {
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}

.info-box li {
  padding: 0.2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.info-box li span:last-child {
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}

/* Footer */
.footer {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--orange) 55%, var(--amber-dark) 100%);
  border-radius: 16px;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 8px 28px var(--red-glow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.footer-links a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.85;
}

.footer-links .admin-link {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 0.35rem;
}

.combo-box {
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  text-align: center;
}

.combo-box .combo-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1.3;
}

.combo-box .combo-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--amber-light);
  line-height: 1;
  margin-top: 0.25rem;
}

/* WhatsApp floating button */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--whatsapp);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.whatsapp-btn .btn-text {
  display: none;
}

@media (min-width: 480px) {
  .whatsapp-btn .btn-text {
    display: inline;
  }
}
