/* Püra catering UI kit — local CSS */
@import url('../colors_and_type.css');

:root {
  --navy:      #1e2a3a;
  --navy-900:  #141c27;
  --navy-700:  #2a3b50;
  --navy-600:  #384a63;
  --cream:     #d4bc94;
  --cream-50:  #f7f1e6;
  --cream-100: #ece1cb;
  --cream-300: #b69e76;
  --cream-400: #8c7754;
  --muted:     #a89274;
  --burgundy:  #6b2a2a;
  --rule:      rgba(212,188,148,0.14);
  --border:    rgba(212,188,148,0.22);
  --border-strong: rgba(212,188,148,0.45);
  --font-display: "Josefin Sans", "Helvetica Neue", system-ui, sans-serif;
  --font-script:  "Smooch", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .h-hero  { font-size: clamp(44px, 13vw, 80px); letter-spacing: 0.2em; }
  .h-1     { font-size: 26px; letter-spacing: 0.12em; }
  .h-2     { font-size: 20px; letter-spacing: 0.1em; }
  .lead    { font-size: 16px; }
  .section { padding: 56px 0; }
  .container { padding: 0 24px; }
  .btn     { padding: 12px 16px; font-size: 11px; letter-spacing: 0.16em; }

  /* Nav: hide links, show only logo + CTA */
  .nav-links { display: none !important; }

  /* Grids → single column */
  .pura-grid-2 { grid-template-columns: 1fr !important; gap: 40px !important; }
  .pura-grid-3 { grid-template-columns: 1fr !important; }
  .pura-grid-4 { grid-template-columns: 1fr 1fr !important; }

  /* Image heights */
  .pura-portrait { height: 400px !important; }

  /* Footer grid */
  .pura-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }

  /* Year section big numbers */
  .pura-year-num { font-size: 140px !important; }
  .pura-year-grid { grid-template-columns: 1fr !important; gap: 40px !important; }

  /* Menu mega title — shrink so it never overflows the viewport */
  .menu-mega { font-size: 40px !important; letter-spacing: 0.22em !important; padding-left: 0.22em !important; }
  .menu-title-box-inner { padding: 12px 22px 9px !important; }

  /* Menu: flatten 2 columns into one and reorder for mobile */
  .menu-grid { display: flex !important; flex-direction: column; gap: 40px !important; }
  .menu-col  { display: contents !important; }
  .mo-entradas   { order: 1; }
  .mo-principal  { order: 2; }
  .mo-sopas      { order: 3; }
  .mo-sandwichs  { order: 4; }
  .mo-postres    { order: 5; }
  .mo-bocadillos { order: 6; }
  .mo-invierno   { order: 7; }
}

/* Type primitives */
.tiny      { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.eyebrow   { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--cream); }
.h-hero    { font-weight: 300; font-size: clamp(64px, 9vw, 120px); letter-spacing: 0.35em; line-height: 1; text-transform: uppercase; padding-left: 0.35em; }
.h-1       { font-weight: 700; font-size: 44px; letter-spacing: 0.2em; line-height: 1.1; text-transform: uppercase; }
.h-2       { font-weight: 700; font-size: 30px; letter-spacing: 0.2em; line-height: 1.15; text-transform: uppercase; }
.h-3       { font-weight: 700; font-size: 18px; letter-spacing: 0.18em; line-height: 1.2; text-transform: uppercase; }
.lead      { font-size: 22px; line-height: 1.55; }
.body      { font-size: 16px; line-height: 1.55; }
.body-sm   { font-size: 14px; line-height: 1.5; }
.script    { font-family: var(--font-script); font-size: 56px; line-height: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 120ms ease, color 120ms ease, opacity 120ms ease;
}
.btn-filled { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn-filled:hover { background: var(--cream-300); border-color: var(--cream-300); }
.btn-outline { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--navy); }
.btn-text { background: transparent; color: var(--cream); padding: 8px 0; border: 0; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.btn-text:hover { color: var(--cream-300); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Form */
.field { display: block; }
.field-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.field-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  color: var(--cream);
  font-family: inherit;
  font-size: 18px;
  padding: 10px 0;
  outline: none;
  transition: border-color 120ms ease;
}
.field-input:focus { border-color: var(--cream); }
.field-input::placeholder { color: var(--cream-400); }

/* Section padding */
.section { padding: 96px 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 48px; }

/* Bordered title device */
.menu-title-box {
  display: inline-block;
  border: 1.5px solid var(--cream);
  padding: 5px;
}
.menu-title-box-inner {
  border: 1.5px solid var(--cream);
  padding: 18px 56px 14px;
}

/* 3D scene — hidden on mobile, visible on desktop */
.hero-3d-scene { display: none; }
@media (min-width: 1100px) {
  .hero-3d-scene { display: block; }
}

/* Puro Invierno — pulsing gold glow (border fijo) */
@keyframes puroGlow {
  0%, 100% {
    box-shadow: 0 16px 46px rgba(0,0,0,0.38), 0 0 14px rgba(212,188,148,0.06), inset 0 0 26px rgba(212,188,148,0.03);
  }
  50% {
    box-shadow: 0 16px 46px rgba(0,0,0,0.38), 0 0 46px rgba(212,188,148,0.34), inset 0 0 46px rgba(212,188,148,0.12);
  }
}
.puro-frame { animation: puroGlow 3.2s ease-in-out infinite; }

/* Watermark utility */
.watermark {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}

/* ── PERFORMANCE: stop costly infinite box-shadow loops on phones ──
   Both .puro-frame (puroGlow) and .arroz-pura-aura (arrozGlow) animate
   box-shadow forever, which forces a full repaint every frame even when
   offscreen — the main cause of jank/scroll-lag on mobile. We freeze them
   to a static glow on touch / small screens and for reduce-motion users.
   The look is identical at rest; only the pulsing is removed. */
@media (max-width: 900px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .puro-frame {
    animation: none !important;
    box-shadow: 0 16px 46px rgba(0,0,0,0.38), 0 0 30px rgba(212,188,148,0.2), inset 0 0 36px rgba(212,188,148,0.08) !important;
  }
  .arroz-pura-aura {
    animation: arrozReveal 1.8s cubic-bezier(0.2,0.7,0.2,1) forwards !important;
    box-shadow: 0 0 22px rgba(212,188,148,0.18) !important;
  }
}

/* ── Nav responsive ── */
@media (max-width: 900px) {
  nav .container { padding: 16px 24px !important; }
  .nav-links { gap: 16px !important; }
  .nav-links a { font-size: 10px !important; letter-spacing: 0.14em !important; }
  .nav-links .btn { padding: 8px 12px !important; font-size: 10px !important; }
}
@media (max-width: 680px) {
  .nav-links a:not(.btn) { display: none !important; }
  nav .container { padding: 14px 20px !important; }
}
