:root {
  --rojo-dragon: #FF6347;
  --dorado-chifa: #FFD700;
  --rojo-oscuro: #800000;
  --rojo-carmesi: #A52A2A;
  --negro-rico: #1A1A1A;
  --crema: #FFF8EE;
  --gris-texto: #4a4038;

  --font-display: 'Dancing Script', cursive;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gris-texto);
  background: var(--crema);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-heading); margin: 0 0 .5em; color: var(--negro-rico); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: var(--negro-rico);
  border-bottom: 1px solid rgba(255,215,0,.15);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-symbol {
  width: 42px; height: 42px; flex: none;
  object-fit: contain;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--dorado-chifa);
  letter-spacing: .5px;
}
.brand-divider { width: 1px; height: 34px; background: var(--dorado-chifa); opacity: .6; }
.nav { display: flex; gap: 28px; }
.nav a {
  font-family: var(--font-heading); font-weight: 500; font-size: 14px;
  color: var(--crema); opacity: .85; transition: opacity .15s, color .15s;
}
.nav a:hover { opacity: 1; color: var(--dorado-chifa); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border: none; border-radius: 4px;
  background: transparent; color: var(--dorado-chifa); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle:hover { background: rgba(255,215,0,.1); }

/* --- Hero --- */
.hero {
  background:
    radial-gradient(120% 140% at 50% -10%, rgba(128,0,0,.75) 0%, rgba(26,26,26,.88) 65%),
    url('img/hero-food.webp') center / cover no-repeat;
  color: var(--crema);
  text-align: center;
  padding: 96px 24px 84px;
}
.hero-symbol { width: 96px; height: 96px; margin: 0 auto 20px; object-fit: contain; display: block; }
.hero h1 {
  font-family: var(--font-display);
  color: var(--dorado-chifa);
  font-size: clamp(48px, 9vw, 88px);
  margin: 0;
}
.hero p.tag {
  font-family: var(--font-heading); font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase; font-size: 13px;
  color: var(--crema); opacity: .75; margin: 10px 0 30px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px; border-radius: 3px;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  letter-spacing: .5px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-icon { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { background: var(--dorado-chifa); color: var(--negro-rico); }
.btn-primary:hover { background: #ffdf33; }
.btn-outline { border-color: var(--dorado-chifa); color: var(--dorado-chifa); }
.btn-outline:hover { background: var(--dorado-chifa); color: var(--negro-rico); }
/* Variante para fondos claros (fuera del hero): borde/texto oscuro en vez de dorado. */
.btn-outline-dark { border-color: var(--rojo-carmesi); color: var(--rojo-carmesi); }
.btn-outline-dark:hover { background: var(--rojo-carmesi); color: #fff; }

/* --- Secciones --- */
.section { padding: 72px 24px; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title .eyebrow {
  display: block; font-family: var(--font-heading); font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; font-size: 12px;
  color: var(--rojo-carmesi); margin-bottom: 10px;
}
.section-title h2 { font-size: clamp(26px, 4vw, 36px); }
.section-alt { background: #fff; }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-grid p { margin: 0 0 14px; }
.about-card {
  background: linear-gradient(160deg, var(--rojo-oscuro), var(--negro-rico));
  color: var(--crema); border-radius: 8px; padding: 34px;
}
.about-card h3 { color: var(--dorado-chifa); font-family: var(--font-display); font-size: 30px; }
.about-card .stats { display: flex; gap: 28px; margin-top: 22px; }
.about-card .stat b { display: block; font-size: 26px; color: var(--dorado-chifa); font-family: var(--font-heading); }
.about-card .stat span { font-size: 12px; opacity: .8; }

/* --- Categorías --- */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.cat-card {
  position: relative; border-radius: 8px; overflow: hidden; min-height: 150px;
  background: linear-gradient(160deg, var(--rojo-carmesi), var(--negro-rico));
  display: flex; align-items: flex-end; padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cat-card-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; }
.cat-card-nombre { color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 18px; }
.cat-card-desc { color: rgba(255,255,255,.8); font-size: 12px; line-height: 1.35; }
.cat-empty { text-align: center; opacity: .6; padding: 40px 0; }
.cat-skeleton {
  background: linear-gradient(100deg, rgba(0,0,0,.06) 30%, rgba(0,0,0,.12) 50%, rgba(0,0,0,.06) 70%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* --- Destacados --- */
.dish-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.dish-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.05);
}
.dish-img { height: 150px; background: linear-gradient(160deg, #f1e6d2, #e6d7bd); }
.dish-img img { width: 100%; height: 100%; object-fit: cover; }
.dish-body { padding: 16px 18px; }
.dish-body .cat-label {
  font-family: var(--font-heading); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--rojo-carmesi); font-weight: 600;
}
.dish-body h4 { margin: 6px 0 4px; font-family: var(--font-heading); font-size: 17px; color: var(--negro-rico); }
.dish-body .price { color: var(--rojo-dragon); font-weight: 700; font-family: var(--font-heading); }

/* --- Contacto / horario --- */
.contact-wrap {
  background: linear-gradient(160deg, var(--rojo-oscuro), var(--negro-rico));
  border-radius: 10px; color: var(--crema); overflow: hidden;
  display: grid; grid-template-columns: 1fr; align-items: stretch;
}
.contact-wrap.has-map { grid-template-columns: 1.1fr .9fr; }
.contact-info {
  padding: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 30px; align-content: center;
}
.contact-item .label {
  font-family: var(--font-heading); font-weight: 600; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--dorado-chifa); margin-bottom: 8px;
}
.contact-item .value { font-size: 16px; }
.contact-item a.value { color: var(--crema); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,248,238,.35); transition: color .15s; }
.contact-item a.value:hover { color: var(--dorado-chifa); }
.contact-map { width: 100%; height: 100%; min-height: 260px; border: none; filter: grayscale(.15) contrast(1.05); }

/* --- Footer --- */
.site-footer {
  background: var(--negro-rico); color: var(--crema); opacity: .85;
  text-align: center; padding: 26px; font-size: 13px;
}
.site-footer a { color: var(--dorado-chifa); }

/* --- Responsive --- */
@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-map { min-height: 220px; }

  .nav-toggle { display: inline-flex; }
  .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--negro-rico); border-bottom: 1px solid rgba(255,215,0,.15);
    max-height: 0; overflow: hidden; transition: max-height .2s ease;
  }
  .nav.is-open { max-height: 260px; }
  .nav a { padding: 14px 24px; border-top: 1px solid rgba(255,215,0,.08); opacity: 1; }
}
