/* ============================================================
   ASADOR LAS PALMERAS — réplica del diseño "palmeras-tasty-hub"
   Tokens de color extraídos 1:1 del proyecto original (oklch)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@400;500;600;700&display=swap');

:root{
  --radius: 0.75rem;
  --background: oklch(0.985 0.011 78);
  --foreground: oklch(0.24 0.035 45);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.24 0.035 45);
  --primary: oklch(0.585 0.168 46);
  --primary-foreground: oklch(0.99 0.008 80);
  --secondary: oklch(0.95 0.028 76);
  --secondary-foreground: oklch(0.35 0.09 45);
  --muted: oklch(0.955 0.018 78);
  --muted-foreground: oklch(0.5 0.035 60);
  --accent: oklch(0.93 0.045 74);
  --accent-foreground: oklch(0.35 0.09 45);
  --border: oklch(0.9 0.025 74);
  --ring: oklch(0.585 0.168 46);
  --ember: oklch(0.42 0.13 42);
  --charcoal: oklch(0.24 0.03 50);

  --font-display: "Bebas Neue", sans-serif;
  --font-sans: "Barlow", sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }

h1,h2,h3{
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  font-weight: 400;
  margin: 0;
  line-height: 1.02;
}

.wrap{ max-width: 1152px; margin: 0 auto; padding: 0 16px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  justify-content:center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor:pointer;
  white-space: nowrap;
  transition: background-color .15s ease, opacity .15s ease, transform .1s ease;
}
.btn svg{ width:20px; height:20px; flex-shrink:0; }
.btn-lg{ padding: 14px 28px; font-size: 1.05rem; }
.btn-primary{
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover{ background: color-mix(in oklch, var(--primary) 90%, black); }
.btn-secondary{
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.btn-secondary:hover{ background: color-mix(in oklch, var(--secondary) 90%, black); }
.btn-outline{
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}
.btn-outline:hover{ background: var(--accent); }
.btn-shadow{ box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.25); }
.btn:active{ transform: scale(0.98); }

.icon-btn{
  width: 36px; height:36px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px;
  color: var(--muted-foreground);
  transition: background-color .15s ease, color .15s ease;
}
.icon-btn:hover{ background: var(--accent); color: var(--primary); }
.icon-btn svg{ width:18px; height:18px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index:40;
  background: color-mix(in oklch, var(--background) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
}
.header-row{
  display:grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  padding: 12px 16px;
  max-width: 1152px;
  margin: 0 auto;
}
.header-row img.logo{ height: 44px; width:auto; }
.header-actions{ display:flex; align-items:center; gap:6px; flex-shrink:0; }
.social-row{ display:none; align-items:center; gap:4px; margin-right:4px; }
.phone-btn{ display:none; }

.texto-movil {
    display: none;
}

@media(min-width: 640px){
  .header-row img.logo{ height:48px; }
}
@media(min-width: 1024px){
  .social-row{ display:flex; }
}
@media(min-width: 640px){
  .phone-btn{ display:inline-flex; }
}

@media (max-width: 454px) {
    .texto-completo {
        display: none;
    }

    .texto-movil {
        display: inline;
    }
    
    .btn-lg {
        padding: 14px 28px;
    }
}

@media (max-width: 400px) {    
    .btn-lg {
        padding: 10px 13px;
    }
    .shop-icon {
        display: none;
    }
}

/* ---------- Hero ---------- */
.hero{ position:relative; }
.hero-img{
  width:100%;
  height: 68vh;
  min-height: 420px;
  object-fit: cover;
}
.hero-gradient{
  position:absolute; inset:0;
  background: linear-gradient(to top, color-mix(in oklch, var(--charcoal) 90%, transparent), color-mix(in oklch, var(--charcoal) 55%, transparent) 55%, color-mix(in oklch, var(--charcoal) 20%, transparent));
}
.hero-content-wrap{
  position:absolute; inset:0;
  display:flex; align-items:flex-end;
}
.hero-content{
  max-width: 1152px;
  margin:0 auto;
  padding: 0 16px 40px;
  width:100%;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  border-radius:999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge svg{ width:16px; height:16px; }
.hero-content h1{
  margin-top: 16px;
  max-width: 32ch;
  font-size: 2.6rem;
  color: var(--primary-foreground);
}
.hero-sub{
  margin-top: 16px;
  max-width: 34ch;
  color: color-mix(in oklch, var(--primary-foreground) 85%, transparent);
  font-size: 1rem;
}
.hero-sub .big{
  display:block;
  font-family: var(--font-sans);
  font-weight:700;
  font-size: 1.3rem;
  color: var(--primary-foreground);
}
.hero-sub .small{ display:block; margin-top:4px; }
.hero-actions{ margin-top: 24px; display:flex; flex-wrap:wrap; gap:12px; }

@media(min-width: 640px){
  .hero-content h1{ font-size: 4.2rem; }
  .hero-sub{ font-size: 1.125rem; }
  .hero-sub .big{ font-size: 1.5rem; }
}

/* ---------- Section shells ---------- */
section{ padding: 56px 0; }
.eyebrow{
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  display:block;
}
.section-head h2{ margin-top: 8px; font-size: 2.4rem; }
.section-head p{ margin-top: 8px; max-width: 42ch; color: var(--muted-foreground); }

@media(min-width: 640px){
  section{ padding: 80px 0; }
  .section-head h2{ font-size: 3rem; }
}

/* ---------- Carta / filters ---------- */
.filter-row{
  margin-top: 32px;
  display:flex;
  gap: 8px;
  overflow-x:auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar{ display:none; }
.filter-btn{
  flex-shrink:0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  cursor:pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter-btn:hover{ background: var(--accent); }
.filter-btn.active{
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.menu-grid{
  margin-top: 32px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media(min-width: 640px){ .menu-grid{ grid-template-columns: 1fr 1fr; } }
@media(min-width: 1024px){ .menu-grid{ grid-template-columns: 1fr 1fr 1fr; } }

.carta-embed{
  margin-top: 32px;
  width: 100%;
  height: 85vh;
  min-height: 560px;
  max-height: 900px;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.2);
}
.carta-embed iframe{ width:100%; height:100%; border:0; display:block; }

.carta-group-title{
  margin-top: 48px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--foreground);
}
.carta-group-title:first-of-type{ margin-top: 32px; }

.menu-card{
  display:flex; flex-direction:column;
  overflow:hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
  transition: box-shadow .2s ease;
}
.menu-card:hover{ box-shadow: 0 18px 32px -14px rgb(0 0 0 / 0.22); }
.menu-card.hidden{ display:none; }
.menu-card-media{
  position:relative;
  aspect-ratio: 4/3;
  overflow:hidden;
  background: var(--muted);
}
.menu-card-media img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .5s ease;
}
.menu-card:hover .menu-card-media img{ transform: scale(1.05); }
.price-badge{
  position:absolute; top:12px; right:12px;
  background: color-mix(in oklch, var(--background) 95%, transparent);
  color: var(--primary);
  font-weight:700;
  font-size:0.9rem;
  border-radius:999px;
  padding: 5px 12px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.15);
}
.tag-badge{
  position:absolute; top:12px; left:12px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight:700;
  font-size:0.72rem;
  border-radius:999px;
  padding: 5px 12px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.15);
}
.menu-card-body{ padding: 20px; display:flex; flex-direction:column; flex:1; }
.menu-card-body h3{ font-size: 1.5rem; }
.menu-card-body p{ margin: 8px 0 0; font-size: 0.9rem; color: var(--muted-foreground); }
.menu-card-body .btn{ margin-top: 16px; width:100%; }

/* ---------- Alérgenos ---------- */
.allergen-row{
  display:flex;
  flex-wrap:wrap;
  gap: 6px;
  margin-top: 12px;
}
.allergen-pill{
  display:inline-flex;
  align-items:center;
  gap: 4px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.allergen-pill svg{ width: 13px; height: 13px; flex-shrink:0; }

/* ---------- Video ---------- */
.video-frame{
  margin-top: 32px;
  max-width: 860px;
  margin-left:auto; margin-right:auto;
  border-radius: 24px;
  overflow:hidden;
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.3);
  border: 1px solid var(--border);
  background: var(--charcoal);
}
.video-frame video{ width:100%; display:block; max-height: 70vh; background:#000; }

/* ---------- Churros (solo fin de semana, solo en tienda) ---------- */
.churros{
  background: var(--secondary);
}
.churros-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items:center;
}
@media(min-width: 900px){ .churros-grid{ grid-template-columns: 1fr 1fr; } }
.churros-grid img{
  width:100%;
  border-radius: 24px;
  object-fit:cover;
  aspect-ratio: 4/3;
  box-shadow: 0 14px 30px -12px rgb(0 0 0 / 0.25);
}
.churros-badge{
  display:inline-flex; align-items:center; gap:8px;
  border-radius:999px;
  background: var(--charcoal);
  color: var(--primary-foreground);
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.churros-badge svg{ width:14px; height:14px; }
.churros-text p{ margin-top: 14px; color: var(--muted-foreground); }
.churros-when{
  margin-top: 22px;
  display:flex;
  align-items:center;
  gap:12px;
  background: var(--card);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
  max-width: fit-content;
}
.churros-when svg{ width:22px; height:22px; color: var(--primary); flex-shrink:0; }
.churros-when strong{ display:block; font-size:0.95rem; }
.churros-when span{ display:block; font-size:0.82rem; color: var(--muted-foreground); }

/* ---------- Sobre el asador ---------- */
.about{ background: color-mix(in oklch, var(--secondary) 60%, transparent); }
.about-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items:center;
}
@media(min-width: 1024px){ .about-grid{ grid-template-columns: 1fr 1fr; } }
.about-grid img{
  width:100%;
  border-radius: 24px;
  object-fit:cover;
  box-shadow: 0 14px 30px -12px rgb(0 0 0 / 0.25);
  aspect-ratio: 4/3;
}
.about-text p{ margin-top: 16px; color: var(--muted-foreground); }
.stat-row{
  margin-top: 24px;
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:16px;
}
.stat-card{
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  text-align:center;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}
.stat-card .k{ font-family: var(--font-display); font-size: 1.5rem; color: var(--primary); }
.stat-card .v{ font-size: 0.72rem; color: var(--muted-foreground); margin-top:2px; }

/* ---------- Horarios / contacto ---------- */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media(min-width: 1024px){ .contact-grid{ grid-template-columns: 1fr 1fr; } }

.hours-list{
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  background: var(--card);
}
.hours-list li{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.hours-list li:last-child{ border-bottom:none; }
.hours-list li .day{ font-weight:600; }
.hours-list li .hrs{ color: var(--muted-foreground); }

.info-lines{ margin-top: 24px; display:flex; flex-direction:column; gap:12px; font-size:0.92rem; }
.info-lines p{ display:flex; align-items:flex-start; gap:12px; margin:0; }
.info-lines svg{ width:20px; height:20px; color: var(--primary); flex-shrink:0; margin-top:2px; }

.contact-actions{ margin-top: 24px; display:flex; flex-wrap:wrap; gap:12px; }

.map-embed{
  border-radius: 24px;
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}
.map-embed iframe{ width:100%; height:100%; min-height:380px; border:0; display:block; }

/* ---------- Footer ---------- */
footer{
  background: var(--charcoal);
  color: var(--primary-foreground);
  padding: 40px 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media(min-width: 640px){
  .footer-grid{ grid-template-columns: minmax(0,1fr) auto; align-items:center; }
}
.footer-grid img.logo{ height:48px; width:auto; filter: brightness(0) invert(1); }
.footer-grid .addr{ margin-top:12px; font-size:0.9rem; color: color-mix(in oklch, var(--primary-foreground) 70%, transparent); }
.footer-social{ margin-top:16px; display:flex; align-items:center; gap:8px; }
.footer-social a{
  width:40px; height:40px;
  border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
  background: color-mix(in oklch, var(--primary-foreground) 10%, transparent);
  transition: background-color .15s ease, color .15s ease;
}
.footer-social a:hover{ background: var(--primary); }
.footer-social svg{ width:20px; height:20px; }
.footer-meta{ font-size:0.9rem; color: color-mix(in oklch, var(--primary-foreground) 60%, transparent); }
.footer-meta a{ text-underline-offset:4px; }
.footer-meta a:hover{ text-decoration:underline; color: var(--primary-foreground); }
.footer-meta p{ margin-top:8px; }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:40;
  display:grid; grid-template-columns:1fr 1fr; gap:8px;
  padding:12px;
  background: color-mix(in oklch, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}
.mobile-bar .btn{ width:100%; }
.mobile-spacer{ height:80px; }
@media(min-width: 640px){
  .mobile-bar, .mobile-spacer{ display:none; }
}

/* ---------- Legal page ---------- */
.legal-header{
  border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  background: color-mix(in oklch, var(--background) 90%, transparent);
}
.legal-header .wrap{
  max-width: 768px;
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding: 16px;
}
.legal-main{ max-width: 768px; margin:0 auto; padding: 48px 16px; }
.legal-main h1{ font-size: 2.4rem; }
.legal-main .updated{ margin-top:12px; font-size:0.9rem; color: var(--muted-foreground); }
.legal-section{ margin-top: 40px; }
.legal-section h2{ font-size: 1.5rem; font-family: var(--font-sans); font-weight:700; letter-spacing:0; }
.legal-section .body{ margin-top:12px; font-size:0.95rem; line-height:1.7; color: var(--muted-foreground); }
.legal-section .body p{ margin:0 0 12px; }
.legal-section .body ul{ list-style:disc; padding-left:20px; display:flex; flex-direction:column; gap:6px; margin:0 0 12px; }
.legal-section .body strong{ color: var(--foreground); }
.legal-section h3{
  margin: 24px 0 0;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--foreground);
}
.legal-toc{
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.legal-toc p{ margin:0 0 8px; font-weight:700; font-size:0.9rem; }
.legal-toc ol{ margin:0; padding-left: 20px; display:flex; flex-direction:column; gap:4px; font-size:0.88rem; color: var(--muted-foreground); }
