/*
 * Estilos de las páginas SEO estáticas (categorías, platillos, zona, FAQ).
 *
 * Deliberadamente independiente del CSS de la SPA: el bundle de React lleva
 * hash en el nombre y cambia en cada build, así que enlazarlo desde HTML
 * generado sería frágil. Este archivo es pequeño, estable y se sirve con el
 * cache de un año que ya define public/.htaccess.
 *
 * Los tokens de color son los mismos de index.html.
 */

:root {
  --primary: #d2232a;
  --primary-dark: #b81e24;
  --dark: #0d2026;
  --dark-2: #1a3a44;
  --cream: #fef9f2;
  --white: #fff;
  --gray: #666;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --gold: #f5a623;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333;
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.seo-container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; width: 100%; }

/* ---------- Header ---------- */
.seo-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--dark); color: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.seo-header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; flex-wrap: wrap; }
.seo-logo { display: flex; align-items: center; gap: .6rem; color: var(--white); font-weight: 800; letter-spacing: .5px; }
.seo-logo:hover { text-decoration: none; }
.seo-nav { display: flex; gap: 1.25rem; margin-left: auto; flex-wrap: wrap; }
.seo-nav a { color: rgba(255, 255, 255, .88); font-size: .93rem; font-weight: 500; }
.seo-nav a:hover { color: var(--white); }
.seo-header-cta { flex-shrink: 0; }

/* ---------- Botones ---------- */
.seo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem; border: none; cursor: pointer;
}
.seo-btn:hover { text-decoration: none; }
.seo-btn-primary { background: var(--primary); color: var(--white); }
.seo-btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.seo-btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--border); }
.seo-btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Migas de pan ---------- */
.seo-breadcrumb { background: var(--light-gray); border-bottom: 1px solid var(--border); font-size: .85rem; }
.seo-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: .7rem 0; }
.seo-breadcrumb li + li::before { content: '›'; margin-right: .5rem; color: var(--gray); }
.seo-breadcrumb li[aria-current] { color: var(--gray); }

/* ---------- Encabezado de página ---------- */
.seo-page-head { background: var(--cream); padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--border); }
.seo-tag {
  display: inline-block; background: var(--primary); color: var(--white);
  font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: .9rem;
}
.seo-page-head h1 { font-size: clamp(1.85rem, 5vw, 2.9rem); line-height: 1.15; font-weight: 800; color: var(--dark); max-width: 22ch; }
.seo-lead { margin-top: 1rem; font-size: 1.06rem; color: #444; max-width: 68ch; }

/* ---------- Secciones ---------- */
.seo-section { padding: 3rem 0; }
.seo-section h2 { font-size: clamp(1.35rem, 3.5vw, 1.9rem); font-weight: 700; color: var(--dark); margin-bottom: 1rem; }
.seo-section h3 { font-size: 1.12rem; font-weight: 700; color: var(--dark); margin-bottom: .4rem; }
.seo-prose p { margin-bottom: 1rem; max-width: 72ch; }
.seo-prose p:last-child { margin-bottom: 0; }

/* ---------- Grid de platillos ---------- */
.seo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.4rem; }
.seo-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.seo-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.seo-card-img { aspect-ratio: 1 / 1; background: var(--light-gray); }
.seo-card-img img { width: 100%; height: 100%; object-fit: cover; }
.seo-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.seo-card-body h3 { margin: 0; font-size: 1.02rem; }
.seo-card-body h3 a { color: var(--dark); }
.seo-card-desc { font-size: .88rem; color: var(--gray); line-height: 1.5; flex: 1; }
.seo-price { font-weight: 800; color: var(--primary); font-size: 1.12rem; }

/* ---------- Página de platillo ---------- */
.seo-dish { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.seo-dish-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--light-gray); }
.seo-dish-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.seo-dish-price { font-size: 2rem; font-weight: 800; color: var(--primary); margin: .5rem 0 1rem; }
.seo-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1.25rem; list-style: none; }
.seo-chips li {
  background: var(--light-gray); border: 1px solid var(--border);
  border-radius: 999px; padding: .3rem .8rem; font-size: .84rem; color: #444;
}
.seo-note { background: var(--cream); border-left: 3px solid var(--gold); padding: .8rem 1rem; border-radius: 0 8px 8px 0; font-size: .92rem; margin-bottom: 1.25rem; }
.seo-cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* ---------- Bloques de valor ---------- */
.seo-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.seo-feature { background: var(--light-gray); border-radius: var(--radius); padding: 1.4rem; }

/* ---------- FAQ ---------- */
.seo-faq { max-width: 78ch; }
.seo-faq details { border: 1px solid var(--border); border-radius: 10px; padding: .95rem 1.15rem; margin-bottom: .7rem; background: var(--white); }
.seo-faq details[open] { background: var(--cream); }
.seo-faq summary { font-weight: 600; cursor: pointer; color: var(--dark); list-style: none; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: '+'; float: right; font-weight: 400; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.seo-faq details[open] summary::after { content: '−'; }
.seo-faq details p { margin-top: .7rem; color: #444; font-size: .95rem; }

/* ---------- Info de contacto ---------- */
.seo-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.seo-info-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.seo-info-card h3 { margin-bottom: .5rem; }
.seo-info-card address { font-style: normal; color: #444; }

/* ---------- Footer ---------- */
.seo-footer { background: var(--dark); color: rgba(255, 255, 255, .82); margin-top: 3rem; padding: 3rem 0 1.5rem; font-size: .92rem; }
.seo-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.seo-footer h2 { font-size: .95rem; color: var(--white); margin-bottom: .8rem; font-weight: 700; }
.seo-footer ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.seo-footer a { color: rgba(255, 255, 255, .82); }
.seo-footer a:hover { color: var(--white); }
.seo-footer p { margin-bottom: .8rem; }
.seo-footer-socials { display: flex; gap: 1rem; }
.seo-address { font-style: normal; line-height: 1.9; }
.seo-footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; font-size: .85rem; opacity: .7; }

/* ---------- Botón flotante de WhatsApp ---------- */
.seo-wa-fab {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
}
.seo-wa-fab:hover { background: #1fb855; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .seo-dish { grid-template-columns: 1fr; gap: 1.5rem; }
  .seo-header-cta { display: none; }
  .seo-nav { margin-left: 0; width: 100%; padding-bottom: .7rem; gap: 1rem; }
  .seo-header-inner { padding-top: .7rem; }
  .seo-page-head { padding: 2rem 0 1.75rem; }
  .seo-section { padding: 2.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .seo-card { transition: none; }
  .seo-card:hover { transform: none; }
}
