/* ===================================================================
   RAÍZ DEL DISEÑO — todo el look de la página se controla desde aquí.
   Para reskinear esta plantilla para OTRO cliente, normalmente solo
   necesitas cambiar estas variables (colores y tipografías) y el
   contenido del HTML. No deberías necesitar tocar el resto del CSS.

   Identidad REAL del cliente (tomada de sus menús impresos): naranja
   quemado + negro carbón + crema, tipografía slab gruesa en mayúsculas,
   sello circular "N / CALIDAD NORTEÑA". Nada de esto se inventó — es
   la marca que Nortería ya usa en su papelería.
   =================================================================== */
:root {
  --color-bg:         #F7EFDF; /* crema — fondo general, como el papel del menú */
  --color-surface:    #FFFFFF; /* fondo de tarjetas */
  --color-ink:        #211A14; /* negro carbón — texto principal */
  --color-ink-soft:   #6B5D4F; /* texto secundario */
  --color-orange:     #D8611D; /* naranja quemado — el color de marca */
  --color-orange-dark:#AD4C15;
  --color-tan:        #B98A4E; /* dorado del wordmark impreso — acento del sello */
  --color-border:     #E7D7BC;
  --color-whatsapp:   #25D366; /* WhatsApp confirmado como activo — botón flotante */

  --font-display: 'Bevan', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius-card: 14px;
  --radius-btn: 999px;
  --shadow-card: 0 14px 34px -18px rgba(33, 26, 20, 0.4);
  --container-w: 1140px;
}

/* ===================================================================
   BASE
   =================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 0.4em; font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.2rem; text-transform: none; font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1em; color: var(--color-ink-soft); }

a { color: inherit; }
img, svg { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-orange-dark);
  margin-bottom: 0.7em;
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}

/* ===================================================================
   SELLO — motivo circular "N / CALIDAD NORTEÑA", tomado del logo real
   del cliente. Se usa en vez de foto porque no hay una imagen limpia
   disponible del local.
   =================================================================== */
.seal { color: currentColor; }
.seal-ring-text {
  font-family: var(--font-display);
  font-size: 12.5px;
}
.seal-n {
  font-family: var(--font-display);
  font-size: 74px;
}

/* ===================================================================
   BOTONES
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--color-orange); color: white; }
.btn-primary:hover { background: var(--color-orange-dark); }

.btn-ghost { background: transparent; border-color: var(--color-ink); color: var(--color-ink); }
.btn-ghost:hover { background: var(--color-ink); color: white; }

.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,0.55); color: white; }
.btn-ghost-light:hover { background: white; color: var(--color-ink); }

.btn-light { background: white; color: var(--color-orange-dark); }
.btn-light:hover { background: rgba(255,255,255,0.9); }

.btn-large { padding: 18px 38px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.icon { width: 18px; height: 18px; fill: currentColor; }

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  background: var(--color-ink);
  color: white;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0,0,0,0.5); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: white; }
.brand-seal { width: 44px; height: 44px; color: var(--color-orange); flex-shrink: 0; }
.brand-text { line-height: 1.2; }
.brand-name { display: block; font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.02em; }
.brand-sub { display: block; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; color: var(--color-orange); text-transform: uppercase; }

.main-nav { display: flex; gap: 26px; }
.main-nav a { text-decoration: none; color: rgba(255,255,255,0.82); font-weight: 600; font-size: 0.92rem; }
.main-nav a:hover { color: var(--color-orange); }

.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; }

/* ===================================================================
   HERO — sin foto: tipografía fuerte + motivo del sello
   =================================================================== */
.hero {
  background: var(--color-ink);
  color: white;
  position: relative;
  padding: 76px 0 64px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero .eyebrow { color: var(--color-orange); }
.hero h1 { color: white; margin-bottom: 0.3em; }
.hero h1 span { color: var(--color-orange); }
.hero-tagline {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-tan);
  font-size: 0.85rem;
  margin-bottom: 1.2em;
}
.hero-lead { color: rgba(255,255,255,0.78); font-size: 1.06rem; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 8px; }

.hero-seal-wrap { display: flex; justify-content: center; align-items: center; }
.hero-seal {
  width: min(280px, 80%);
  height: min(280px, 80%);
  color: var(--color-orange);
  animation: spin-slow 40s linear infinite;
}
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===================================================================
   DIVISOR "MARCA DE PARRILLA" — motivo propio de Nortería: franjas
   diagonales tipo marca de asador, en vez del arco (La Soñadora) o
   la cinta métrica (Badillo).
   =================================================================== */
.grill-divider {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-orange) 0px, var(--color-orange) 18px,
    var(--color-ink) 18px, var(--color-ink) 36px
  );
}

/* ===================================================================
   SECCIONES GENERALES
   =================================================================== */
.section { padding: 84px 0; }
.section-alt { background: var(--color-surface); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.align-center { align-items: center; }
.align-start { align-items: start; }

/* ===================================================================
   BARRA DE CONFIANZA
   =================================================================== */
.trust-bar { background: var(--color-ink); color: white; padding: 30px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.trust-item strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--color-orange); }
.trust-item span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ===================================================================
   TARJETAS
   =================================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 30px 26px;
}
.card-icon { font-size: 1.7rem; margin-bottom: 12px; }

/* ===================================================================
   MENÚ — tarjetas de categorías insignia
   =================================================================== */
.menu-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.menu-card-head {
  background: var(--color-ink);
  color: white;
  padding: 18px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.menu-card-head h3 { color: white; margin: 0; text-transform: uppercase; font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em; }
.menu-card-head span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-tan); text-transform: uppercase; letter-spacing: 0.08em; }
.menu-card-body { padding: 22px 24px; }
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-border);
}
.menu-item:last-child { border-bottom: none; padding-bottom: 0; }
.menu-item-name { font-weight: 600; color: var(--color-ink); }
.menu-item-desc { display: block; font-size: 0.82rem; color: var(--color-ink-soft); font-weight: 400; margin-top: 2px; }
.menu-item-price { font-family: var(--font-mono); font-weight: 600; color: var(--color-orange-dark); white-space: nowrap; }

.menu-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 44px; }

/* ===================================================================
   DESAYUNOS — sección propia, horario distinto
   =================================================================== */
.breakfast-hours {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-ink);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.breakfast-hours strong { color: var(--color-orange); }

/* ===================================================================
   SERVICIOS
   =================================================================== */
.service-card { text-align: center; }
.service-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-orange);
  color: var(--color-orange);
  display: flex; align-items: center; justify-content: center;
}

/* ===================================================================
   UBICACIÓN Y HORARIO
   =================================================================== */
.address { font-size: 1.05rem; color: var(--color-ink); }
.hours-table { border-collapse: collapse; margin: 18px 0 24px; width: 100%; max-width: 420px; font-family: var(--font-mono); font-size: 0.92rem; }
.hours-table th, .hours-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--color-border); font-weight: 400; vertical-align: top; }
.hours-table th { color: var(--color-ink-soft); font-weight: 500; white-space: nowrap; padding-right: 16px; }
.hours-note { font-size: 0.85rem; color: var(--color-ink-soft); margin-top: -8px; }

.map-frame { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--color-border); }
.map-frame iframe { width: 100%; height: 360px; border: 0; }

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-ink);
}
.badge svg { width: 15px; height: 15px; color: var(--color-orange); }

/* ===================================================================
   REDES SOCIALES
   =================================================================== */
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.social-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.social-card:hover { transform: translateY(-3px); }
.social-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-orange);
  color: white;
  display: flex; align-items: center; justify-content: center;
}
.social-icon svg { width: 26px; height: 26px; }
.social-card strong { display: block; color: var(--color-ink); font-size: 1.02rem; }
.social-card span { color: var(--color-ink-soft); font-size: 0.88rem; }

/* ===================================================================
   CTA FINAL
   =================================================================== */
.cta-final {
  background: var(--color-orange);
  color: white;
  text-align: center;
  padding: 66px 0;
}
.cta-final h2 { color: white; }
.cta-final p { color: rgba(255,255,255,0.92); margin-bottom: 26px; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: var(--color-ink); color: rgba(255,255,255,0.8); padding: 50px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-seal { width: 40px; height: 40px; color: var(--color-orange); flex-shrink: 0; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { text-decoration: none; color: white; }
.footer-contact a:hover { color: var(--color-orange); }
.footer-credit { text-align: center; font-size: 0.8rem; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); }
.footer-credit a { text-decoration: underline; }

/* ===================================================================
   WHATSAPP FLOTANTE (número confirmado como WhatsApp activo)
   =================================================================== */
.call-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.45);
  z-index: 60;
  transition: transform 0.15s ease;
}
.call-float:hover { transform: scale(1.08); }
.call-float svg { width: 28px; height: 28px; fill: white; }

/* ===================================================================
   ANIMACIÓN AL HACER SCROLL (respeta reduced-motion)
   =================================================================== */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .call-float:hover, .social-card:hover { transform: none; }
  .hero-seal { animation: none; }
}

/* ===================================================================
   RESPONSIVE — mobile first desde 860px hacia abajo
   =================================================================== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-seal-wrap { order: -1; }
  .hero-seal { width: 180px; height: 180px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }

  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  }
  .nav-toggle span { width: 100%; height: 2px; background: white; border-radius: 2px; }
  .main-nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-ink);
    padding: 20px 24px 28px;
    gap: 18px;
  }
  .header-inner { position: relative; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
}
