/* =========================================================
   Fono Milas — Restaurante · Pizzería · Chivitería · Parrillada
   Paleta: negro #0A0A0B · rojo #CF0815 · dorado #E7B751 · crema #F6F1EC
   ========================================================= */

:root {
  --black: #0A0A0B;
  --black-2: #141416;
  --black-3: #1E1E21;
  --red: #CF0815;
  --red-dark: #A50610;
  --red-glow: rgba(207, 8, 21, 0.35);
  --gold: #E7B751;
  --gold-soft: rgba(231, 183, 81, 0.16);
  --cream: #F6F1EC;
  --cream-2: #FDFBF8;
  --white: #FFFFFF;
  --ink: #1A1A1C;
  --muted: #6E6A65;
  --line: #E8E1D9;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(10, 10, 11, 0.25);
  --font-display: 'Anton', 'Archivo', sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-script: 'Dancing Script', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== Franja MUESTRA DEMO ===== */
.demo-bar {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
}

/* ===== Splash de bienvenida ===== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(700px 500px at 50% 38%, #17171a 0%, var(--black) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  animation: splashOut 0.7s ease 3.4s forwards;
}
.splash-logo-wrap {
  padding: 5px;
  border: 1.5px solid rgba(231, 183, 81, 0.55);
  border-radius: 22px;
  animation: splashIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.splash-logo { width: 150px; height: 150px; border-radius: 16px; display: block; }
.splash-phrase {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--gold);
  animation: splashIn 0.7s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.splash-rubro {
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  animation: splashIn 0.7s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes splashIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes splashOut {
  to { opacity: 0; visibility: hidden; }
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px -6px var(--red-glow);
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-1px); }

/* ===== Topbar ===== */
.topbar {
  background: var(--black);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 8px 0;
}
.topbar-inner { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.topbar-item { opacity: 0.9; }
.topbar-tel { font-weight: 600; }
.topbar-tel:hover { opacity: 1; color: var(--gold); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 52px; width: auto; border-radius: 12px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav a:hover { color: var(--gold); }
.nav-cta { margin-left: 6px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--black);
  color: #fff;
  overflow: hidden;
  padding: 64px 0 84px;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 20%, var(--red-glow), transparent 60%),
    radial-gradient(500px 380px at 10% 90%, var(--gold-soft), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-brand { display: flex; flex-direction: column; line-height: 1; margin-bottom: 18px; }
.hero-fono { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.35em; color: var(--gold); text-transform: uppercase; }
.hero-milas { font-family: var(--font-display); font-size: clamp(3.4rem, 8vw, 6rem); letter-spacing: 0.02em; line-height: 0.95; text-transform: uppercase; }
.hero-script { font-family: var(--font-script); font-size: 1.7rem; color: var(--gold); margin-top: 6px; }
.hero-rubro {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--red);
  border: 1px solid rgba(207, 8, 21, 0.5);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.12; letter-spacing: 0.01em; margin-bottom: 16px; }
.hero-sub { color: rgba(255, 255, 255, 0.72); font-size: 1.08rem; max-width: 46ch; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-phones { display: flex; flex-wrap: wrap; gap: 6px 12px; color: rgba(255, 255, 255, 0.8); font-weight: 600; font-size: 0.95rem; }
.hero-phones a { color: var(--gold); }
.hero-phones .dot { opacity: 0.4; }

.hero-media { position: relative; }
.hero-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* ===== Secciones ===== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--red);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--gold); }
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.section-title em { font-style: normal; color: var(--red); }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ===== Promos ===== */
.promos { padding: 84px 0 72px; background: var(--cream-2); }
.promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr));
  gap: 20px;
}
.promo-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  overflow: hidden;
}
.promo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.promo-card:hover::before { opacity: 1; }
.promo-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 10px;
}
.promo-name {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: 6px;
  min-height: 3.4em;
}
.promo-desc { color: var(--muted); font-size: 0.9rem; flex: 1; margin-bottom: 16px; }
.promo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.promo-price { font-family: var(--font-display); font-size: 1.6rem; color: var(--red); letter-spacing: 0.01em; }
.promo-price span { font-size: 0.95rem; color: var(--muted); font-family: var(--font-body); }
.promo-add {
  background: var(--black);
  color: #fff;
  border: none;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.promo-add:hover { background: var(--red); transform: translateY(-1px); }
.promo-add.added { background: var(--red); }

.promos-note { text-align: center; margin-top: 40px; color: var(--muted); font-size: 0.95rem; }
.promos-note a { color: var(--red); font-weight: 700; }

/* ===== Fiestas ===== */
.fiestas {
  background: var(--black);
  color: #fff;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.fiestas-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.fiestas .section-title { color: #fff; }
.fiestas .section-title em { color: var(--gold); }
.fiestas-text { color: rgba(255, 255, 255, 0.72); margin: 18px 0 24px; max-width: 48ch; font-size: 1.05rem; }
.fiestas-points { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.fiestas-points span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.fiestas-media { position: relative; }
.fiestas-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.fiestas-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

/* ===== Info ===== */
.info { padding: 84px 0; background: var(--cream-2); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
}
.info-ico { font-size: 2rem; display: block; margin-bottom: 12px; }
.info-card h3 { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; color: var(--ink); }
.info-card p { color: var(--muted); font-size: 0.95rem; }

/* ===== CTA final ===== */
.cta-final {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  padding: 72px 0;
}
.cta-final-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-final .section-title { color: #fff; }
.cta-final .section-title em { color: var(--gold); }
.cta-sub { color: rgba(255, 255, 255, 0.85); margin-top: 10px; font-size: 1.05rem; }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-final .btn-ghost { border-color: rgba(255, 255, 255, 0.5); }

/* ===== Footer ===== */
.footer { background: var(--black); color: rgba(255, 255, 255, 0.78); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
.footer-logo { height: 72px; width: auto; border-radius: 14px; margin-bottom: 14px; }
.footer-rubro { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); max-width: 26ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: var(--gold); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; margin-bottom: 4px; }
.footer-col a { font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.6); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-credit { font-size: 0.8rem; opacity: 0.7; }

/* ===== Cart bar ===== */
.cart-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-bar.open { transform: translateY(0); }
.cart-inner { display: flex; align-items: center; gap: 16px; padding: 12px 24px; }
.cart-toggle {
  position: relative;
  background: var(--red);
  color: #fff;
  border: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--gold);
  color: var(--black);
  font-weight: 800;
  font-size: 0.72rem;
  min-width: 20px; height: 20px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.cart-summary { display: flex; flex-direction: column; flex: 1; }
.cart-label { font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }
.cart-total { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); line-height: 1.1; }
.cart-send { flex-shrink: 0; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 11, 0.7); backdrop-filter: blur(4px); }
.modal-panel {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 20px;
  width: min(480px, calc(100vw - 32px));
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px 28px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  font-size: 1.8rem; line-height: 1;
  cursor: pointer; color: var(--muted);
}
.modal-panel h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-bottom: 16px; }
.modal-items { list-style: none; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.modal-items li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 12px; background: var(--cream); border-radius: 10px; font-size: 0.92rem;
}
.modal-items li .mi-name { font-weight: 600; }
.modal-items li .mi-qty { color: var(--muted); font-size: 0.82rem; }
.modal-items li .mi-price { font-weight: 700; white-space: nowrap; }
.modal-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.1rem; padding: 12px 0; border-top: 1px solid var(--line); margin-bottom: 16px;
}
.modal-total strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--red); }
.modal form label { display: block; font-size: 0.82rem; font-weight: 700; margin: 12px 0 4px; color: var(--ink); }
.modal form input, .modal form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
}
.modal form input:focus, .modal form textarea:focus { outline: none; border-color: var(--red); }
.modal-note { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 12px; }

/* ===== Animaciones de entrada ===== */
.reveal { opacity: 0; transform: translateY(24px); animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }
.reveal:nth-child(5) { animation-delay: 0.32s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid, .fiestas-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 48px 0 64px; }
  .hero-media { order: -1; }
  .hero-photo img { aspect-ratio: 16/11; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cta-final-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav-cta { margin-left: auto; }
  .header-inner { gap: 12px; }
  .hero-milas { font-size: 3.2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .promos-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 14px; }
  .promo-card { padding: 20px 16px; }
  .promo-name { font-size: 0.98rem; min-height: 3.6em; }
  .promo-price { font-size: 1.3rem; }
  .topbar-inner { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
