/* Paleta y tipografía */
:root {
  --red: #bc1722;
  --black: #000000;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--white);
  background-color: var(--black);
  background-image: linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.72)), url('assets/bg-cafe.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  /*background: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.7));*/
  /*border-bottom: 1px solid rgba(188, 23, 34, 0.35);*/
  /*backdrop-filter: blur(4px);*/
  z-index: 10;
}

.header-inner { display: flex; align-items: center; padding: 18px 0; }

.brand { display: flex; align-items: center; gap: 18px; }
.brand-logo { width: 260px; height: auto; object-fit: contain; filter: drop-shadow(0 0 18px rgba(188,23,34,0.25)); }
.brand-text h1 { margin: 0; font-size: 1.75rem; font-weight: 600; letter-spacing: 0.5px; }
.tagline { margin: 2px 0 0; color: #ddd; font-weight: 300; }

.hero { text-align: center; padding: 36px 0 18px; }
.hero-copy { font-size: 1.1rem; color: #e8e8e8; }

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  padding: 26px 0 48px;
}

.card {
  display: grid;
  place-items: start;
  gap: 12px;
  padding: 22px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--white);
  background: radial-gradient(1200px 1200px at -40% -40%, rgba(188, 23, 34, 0.08), transparent 45%) #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
  position: relative;
  overflow: hidden;
}

.card:hover { 
  transform: translateY(-3px);
  border-color: rgba(188, 23, 34, 0.6);
  box-shadow: 0 12px 24px rgba(0,0,0,0.45), 0 0 0 6px rgba(188,23,34,0.15) inset;
}

.card h3 { margin: 0; font-size: 1.25rem; }
.card p { margin: 0; color: #cfcfcf; }

.icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, #bc1722 0%, #000000 100%);
  border: 1px solid rgba(188,23,34,0.65);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
.icon svg { width: 30px; height: 30px; color: #ffffff; }

.thumb {
  width: 64px; height: 64px;
  border-radius: 14px;
  padding: 10px;
  background: rgba(188, 23, 34, 0.12);
  border: 1px solid rgba(188,23,34,0.45);
  object-fit: contain;
}

.site-footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 26px 0 38px; text-align: center; color: #c4c4c4; }

/* Responsivo */
@media (max-width: 640px) {
  .brand-logo { width: 108px; }
  .brand-text h1 { font-size: 1.5rem; }
}

/* Accesibilidad y preferencia de movimiento */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.28; /* oscurecido para legibilidad */
  filter: saturate(1.05) contrast(1.05);
}
.card > * { position: relative; z-index: 1; }

/* Fondos por sección */
.card--carta { --card-bg: url('assets/bg-carta.png'); }
.card--wa { --card-bg: url('assets/bg-whatsapp.jpeg'); }
.card--ig { --card-bg: url('assets/bg-instagram.png'); }
.menu-hero { text-align: center; padding: 36px 0 8px; }
.menu-hero h2 { margin: 0 0 6px; font-size: 2rem; }
.menu-hero p { margin: 0; color: #dcdcdc; }

.menu-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 18px 0 8px; }
.chip { display: inline-block; padding: 8px 14px; border-radius: 999px; color: var(--white); text-decoration: none; border: 1px solid rgba(255,255,255,0.18); background: rgb(188 23 23); }
.chip:hover { border-color: rgba(165, 3, 3, 0.966); }

.menu-section { margin: 12px 0 28px; }
.menu-section h3 { margin: 0 0 12px; font-size: 1.35rem; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.menu-item { 
  background: rgba(10,10,10,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.menu-img { width: 100%; height: 110px; object-fit: contain; background: rgba(188,23,34,0.12); border: 1px solid rgba(188,23,34,0.45); border-radius: 12px; }
.menu-meta { display: flex; align-items: baseline; justify-content: space-between; }
.menu-meta h4 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.description {
  margin: 0;
  color: #cfcfcf;
  font-size: 0.9rem;
  line-height: 1.4;
}
.price { font-weight: 600; color: var(--white); background: rgba(188,23,34,0.18); border: 1px solid rgba(188,23,34,0.45); padding: 6px 10px; border-radius: 999px; }

/* Acordeón accesible para carta */
.accordion { border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; background: rgba(10,10,10,0.7); }
.accordion + .accordion { margin-top: 14px; }
.accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: linear-gradient(98deg, rgba(188,23,34), rgba(0,0,0,0.35)); border-bottom: 0px solid ; gap: 10px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary h3 { margin: 0; font-size: 1.2rem; }
.accordion .badge-count { background: rgba(188,23,34,0.25); padding: 4px 10px; border-radius: 999px; font-size: 0.9rem; margin-left: auto; }
.accordion[open] summary { background: linear-gradient(135deg, rgba(188,23,34,0.3), rgba(0,0,0,0.5)); }
.accordion .menu-grid { padding: 12px; }

/* Indicador visual en el summary */
.accordion summary::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  transition: transform 200ms ease;
}
.accordion[open] summary::after { transform: rotate(45deg); }

/* Animación de apertura/cierre */
.accordion .menu-grid {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 300ms ease, opacity 250ms ease;
  will-change: max-height, opacity;
}
.accordion[open] .menu-grid { opacity: 1; }

/* Animación de aparición de items al desplegar categorías */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.accordion[open] .menu-item { animation: fadeInUp 260ms ease both; }
.accordion[open] .menu-item:nth-child(2) { animation-delay: 60ms; }
.accordion[open] .menu-item:nth-child(3) { animation-delay: 120ms; }
.accordion[open] .menu-item:nth-child(4) { animation-delay: 180ms; }
.accordion[open] .menu-item:nth-child(5) { animation-delay: 220ms; }
.accordion[open] .menu-item:nth-child(6) { animation-delay: 260ms; }