/*
 * components.css
 * Componentes reutilizables: botones, nav, logo, cards del menú,
 * marquee, footer, FAB de WhatsApp y chips de estado.
 * Cada bloque es independiente — no depende del orden en el HTML.
 */

/* ════════════════════════════════
   BOTONES
   ════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .3px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
  box-shadow: 0 8px 0 var(--red-deep);
}

.btn:hover  { transform: translateY(-2px); box-shadow: 0 11px 0 var(--red-deep); }
.btn:active { transform: translateY(4px);  box-shadow: 0 4px  0 var(--red-deep); }

.btn.ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 2.5px rgba(246,239,227,.45);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 2.5px var(--cream); }

.btn.dark {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 8px 0 #000;
}

.btn.sm {
  padding: 10px 16px;
  font-size: 14px;
  box-shadow: 0 5px 0 var(--red-deep);
}
.btn.sm:hover { box-shadow: 0 7px 0 var(--red-deep); }

.btn .wa { width: 20px; height: 20px; }


/* ════════════════════════════════
   NAV
   ════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 26px;
  transition: background .3s, padding .3s, box-shadow .3s;
}

.nav.solid {
  background: rgba(16, 17, 15, .92);
  backdrop-filter: blur(10px);
  padding: 11px 26px;
  box-shadow: 0 1px 0 rgba(255,255,255,.07);
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.logo .mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 0 3px rgba(225,15,30,.25);
}

.logo small {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .4px;
  color: var(--cream);
  opacity: .85;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; color: var(--mustard); }


/* ════════════════════════════════
   MARQUEE
   ════════════════════════════════ */
.marquee {
  background: var(--red);
  color: #fff;
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
}

.marquee-track {
  display: inline-flex;
  gap: 34px;
  animation: marquee 26s linear infinite;
}

.marquee span {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 34px;
}

.marquee span::after {
  content: '★';
  color: var(--mustard);
  font-size: 18px;
}


/* ════════════════════════════════
   CARDS DE MENÚ
   ════════════════════════════════ */
.menu-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--ink-2);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(0,0,0,.45);
}

.card-img {
  position: relative;
  aspect-ratio: 16/12;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.card:hover .card-img img { transform: scale(1.1); }

.card .badge {
  position: absolute;
  top: 13px; left: 13px;
  background: var(--mustard);
  color: var(--ink);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .5px;
  padding: 5px 11px;
  border-radius: 999px;
  text-transform: uppercase;
}

.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.card-body p {
  color: #c5b8a7;
  font-size: 14px;
  line-height: 1.45;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.card-price {
  font-family: var(--font-display);
  font-size: 24px;
}

.card-price small {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: -2px;
}


/* ════════════════════════════════
   STEPS (cómo pedir)
   ════════════════════════════════ */
.steps-sec {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.step {
  background: rgba(255,255,255,.03);
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
}

.step .big {
  font-family: var(--font-display);
  font-size: 78px;
  color: rgba(225,15,30,.22);
  position: absolute;
  top: -14px; right: 6px;
  line-height: 1;
}

.step .ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(225,15,30,.4);
}

.step h3 { font-size: 21px; font-weight: 800; margin-bottom: 7px; }
.step p   { color: #bcae9e; font-size: 15px; line-height: 1.5; }


/* ════════════════════════════════
   CTA BAND
   ════════════════════════════════ */
.cta-band {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  border-top: 4px solid #000;
}

.cta-band h2  { font-size: clamp(36px, 6vw, 76px); margin-bottom: 8px; }
.cta-band p   { font-size: 18px; font-weight: 600; margin-bottom: 30px; opacity: .92; }
.cta-band .btn { background: var(--ink); box-shadow: 0 8px 0 #000; }

.floaty {
  position: absolute;
  font-size: 60px;
  opacity: .16;
  animation: float 7s ease-in-out infinite;
}


/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
footer { background: #0c0d0b; padding: 60px 0 30px; }

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.foot-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 300px;
}

.foot-col h4 {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #cfc3b2;
  margin-bottom: 14px;
}

.foot-col a,
.foot-col span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.foot-col a:hover { color: var(--mustard); }

.socials { display: flex; gap: 10px; margin-top: 14px; }

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: background .2s, transform .2s;
}

.socials a:hover { background: var(--red); transform: translateY(-3px); }

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}


/* ════════════════════════════════
   WHATSAPP FAB
   ════════════════════════════════ */
.fab {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0;
  background: #25D366;
  color: #062a16;
  border-radius: 999px;
  padding: 14px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  overflow: hidden;
  transition: gap .3s, padding .3s, transform .2s;
}

.fab:hover { transform: scale(1.04); }

.fab svg { width: 28px; height: 28px; flex: none; }

.fab span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .4s ease, margin .3s;
  font-size: 15px;
}

.fab:hover span { max-width: 160px; margin-left: 9px; margin-right: 6px; }

.fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid #25D366;
  animation: fabring 2.4s ease-out infinite;
}


/* ════════════════════════════════
   CHIPS DE ESTADO (hours / live dot)
   ════════════════════════════════ */
.hours-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #cfc3b2;
}

.hours-chip .live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #37d36b;
  box-shadow: 0 0 0 0 rgba(55,211,107,.6);
  animation: live 2s infinite;
}
