/* ============================================================
   Restaurante Barbacoa de Boadilla — hoja de estilos compartida
   Paleta: blanco / negro con acentos terracota y oliva de marca
   ============================================================ */

:root{
  --black: #141210;
  --ink: #1C1A17;
  --white: #FFFFFF;
  --off-white: #F4F3F0;
  --line: rgba(20,18,16,.14);
  --line-soft: rgba(20,18,16,.08);
  --terracotta: #B04B2A;
  --terracotta-dark: #8F3A20;
  --olive: #4F5733;
  --text-muted: #4A4743;
  --max: 1180px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--white);
  color:var(--black);
  font-family:'Figtree', sans-serif;
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:'Fraunces', serif;
  font-weight:600;
  line-height:1.1;
  margin:0;
  color:var(--black);
}
p{margin:0;}
a{color:inherit;}
img{max-width:100%; display:block;}
.wrap{max-width:var(--max); margin:0 auto; padding:0 28px;}
section{padding:96px 0;}
@media(max-width:768px){ section{padding:60px 0;} }
.bg-off{background:var(--off-white);}
.bg-black{background:var(--black); color:var(--white);}
.bg-black h1,.bg-black h2,.bg-black h3{color:var(--white);}

a:focus-visible, button:focus-visible{outline:3px solid var(--terracotta); outline-offset:3px;}

/* ---------- NAV ---------- */
header.site-nav{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
  transition:box-shadow .25s ease;
}
header.site-nav.scrolled{ box-shadow:0 6px 18px rgba(20,18,16,0.10); }
.nav-inner{
  max-width:var(--max); margin:0 auto; padding:16px 28px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.brand{
  font-family:'Fraunces', serif; font-style:italic; font-weight:500;
  font-size:1.2rem; letter-spacing:.2px; text-decoration:none; color:var(--black);
  display:flex; align-items:center; gap:10px; white-space:nowrap;
}
.brand img{width:42px; height:42px; object-fit:contain; flex:none;}
.footer-logo{display:flex; align-items:center; gap:12px; margin-bottom:6px;}
.footer-logo img{width:48px; height:48px; object-fit:contain; flex:none;}
nav.links{display:flex; align-items:center; gap:24px; flex-wrap:wrap; justify-content:flex-end;}
nav.links a{
  text-decoration:none; font-size:.95rem; color:var(--black); opacity:.72;
  padding-bottom:3px; border-bottom:2px solid transparent;
}
nav.links a:hover{opacity:1;}
nav.links a.active{opacity:1; border-bottom-color:var(--terracotta);}
.call-pill{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--black); color:#fff !important; opacity:1 !important;
  padding:10px 18px; border-radius:100px; font-weight:600; font-size:.9rem;
  text-decoration:none; white-space:nowrap; border-bottom:none !important;
  transition:background .2s ease; margin-left:6px;
}
.call-pill:hover{background:var(--terracotta);}
.menu-toggle{display:none; background:none; border:none; cursor:pointer; padding:6px;}
.menu-toggle span{display:block; width:22px; height:2px; background:var(--black); margin:5px 0;}

@media(max-width:900px){
  nav.links{
    position:absolute; top:100%; left:0; right:0;
    background:var(--white); flex-direction:column; align-items:flex-start;
    padding:10px 28px 24px; gap:14px; border-bottom:1px solid var(--line);
    display:none;
  }
  nav.links.open{display:flex;}
  nav.links .call-pill{margin-top:6px;}
  .menu-toggle{display:block;}
}

/* ---------- HERO (home) ---------- */
.hero{position:relative; aspect-ratio:16/9; max-height:800px; min-height:520px; overflow:hidden; display:flex; align-items:flex-end; padding:0; margin:0;}
@media(max-width:700px){ .hero{ aspect-ratio:3/4; min-height:560px; } }
.hero-media{position:absolute; top:0; right:0; bottom:0; left:0; overflow:hidden;}
.hero-media img{
  width:100%; height:100%; object-fit:cover; object-position:center 30%;
  transform:scale(1.08);
  animation:kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns{
  0%{ transform:scale(1.08) translate(0,0); }
  100%{ transform:scale(1.16) translate(-1.5%, -1%); }
}
.hero-scrim{
  position:absolute; top:0; right:0; bottom:0; left:0;
  background:linear-gradient(180deg, rgba(10,9,8,.18) 0%, rgba(10,9,8,.4) 55%, rgba(8,7,6,.9) 100%);
}
.hero-content{position:relative; z-index:2; color:#fff; padding:0 28px 72px; max-width:var(--max); margin:0 auto; width:100%;}
.hero-content h1{color:#fff; font-size:clamp(2.4rem, 5.6vw, 4.3rem); max-width:15ch;}
.hero-content p.lead{color:rgba(255,255,255,.86); font-size:1.12rem; max-width:46ch; margin-top:20px;}
.hero-ctas{display:flex; flex-wrap:wrap; gap:14px; margin-top:32px;}

/* ---------- PAGE BANNER (subpáginas) ---------- */
.page-banner{position:relative; aspect-ratio:21/9; max-height:420px; min-height:260px; overflow:hidden; display:flex; align-items:flex-end;}
@media(max-width:700px){ .page-banner{aspect-ratio:4/3; min-height:280px;} }
.page-banner img{width:100%; height:100%; object-fit:cover; position:absolute; top:0; left:0;}
.page-banner .hero-scrim{background:linear-gradient(180deg, rgba(10,9,8,.25) 0%, rgba(10,9,8,.55) 70%, rgba(8,7,6,.86) 100%);}
.page-banner .banner-content{position:relative; z-index:2; padding:0 28px 40px; max-width:var(--max); margin:0 auto; width:100%;}
.page-banner h1{color:#fff; font-size:clamp(2rem, 4.4vw, 3.1rem);}
.page-banner p{color:rgba(255,255,255,.85); margin-top:10px; max-width:52ch;}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px; border-radius:100px; text-decoration:none;
  font-weight:600; font-size:1rem; border:2px solid transparent; cursor:pointer;
  transition:transform .18s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:var(--terracotta); color:#fff;}
.btn-primary:hover{background:var(--terracotta-dark);}
.btn-ghost{background:transparent; color:#fff; border-color:rgba(255,255,255,.65);}
.btn-ghost:hover{background:rgba(255,255,255,.12); border-color:#fff;}
.btn-outline-dark{background:transparent; color:var(--black); border-color:var(--black);}
.btn-outline-dark:hover{background:var(--black); color:#fff;}
.btn-dark{background:var(--black); color:#fff;}
.btn-dark:hover{background:var(--terracotta);}

/* ---------- SECTION HEADS ---------- */
.section-head{max-width:640px; margin-bottom:48px;}
.section-head h2{font-size:clamp(1.9rem, 3.2vw, 2.5rem); max-width:17ch;}
.section-head p{margin-top:16px; color:var(--text-muted); font-size:1.03rem; max-width:56ch;}
.bg-black .section-head p{color:rgba(255,255,255,.72);}

/* ---------- ABOUT / layered photo ---------- */
.about{display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center;}
.about-copy p{margin-top:16px; color:var(--text-muted); font-size:1.03rem;}
.about-copy p:first-of-type{margin-top:0;}
.layered-photo{position:relative; padding:0 24px 24px 0;}
.layered-photo::before{content:''; position:absolute; top:24px; left:24px; right:0; bottom:0; background:var(--black);}
.layered-photo.accent::before{background:var(--terracotta);}
.layered-photo img{position:relative; width:100%; height:100%; object-fit:cover; aspect-ratio:4/5;}
@media(max-width:860px){
  .about{grid-template-columns:1fr; gap:40px;}
  .layered-photo{max-width:420px; margin:0 auto;}
}

/* ---------- HIGHLIGHT CARDS (home) ---------- */
.highlights{display:grid; grid-template-columns:repeat(auto-fit, minmax(230px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line);}
.highlight-card{background:var(--white); padding:40px 34px;}
.highlight-card h3{font-size:1.25rem; margin-bottom:10px;}
.highlight-card p{color:var(--text-muted); font-size:.97rem; margin-bottom:18px;}
.highlight-card a{font-weight:600; color:var(--terracotta-dark); text-decoration:none; font-size:.94rem;}
.highlight-card a:hover{text-decoration:underline;}
@media(max-width:768px){ .highlights{grid-template-columns:1fr;} }

/* ---------- MENU (carta) ---------- */
.menu-intro{margin-bottom:8px;}
.menu-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px 64px;}
.menu-cat{margin-bottom:8px;}
.menu-cat h3{font-size:1.35rem; color:var(--black); margin-bottom:4px; text-transform:uppercase; letter-spacing:.03em;}
.menu-cat .cat-rule{width:34px; height:2px; background:var(--terracotta); margin-bottom:20px;}
.menu-cat .cat-note{display:block; font-style:italic; color:var(--text-muted); font-size:.85rem; margin:2px 0 14px;}
.dish-row{display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; padding:11px 0; border-bottom:1px solid var(--line-soft);}
.dish-row:first-of-type{padding-top:0;}
.dish-name{font-family:'Fraunces', serif; font-weight:500; font-size:1.02rem; white-space:normal;}
.dish-leader{flex:1 1 40px; min-width:20px; border-bottom:1.5px dotted rgba(20,18,16,.35); position:relative; top:-4px;}
.dish-price{font-weight:600; font-size:.98rem; white-space:nowrap;}
.gf-tag{
  display:inline-block; font-size:.68rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:var(--olive); border:1px solid var(--olive); border-radius:100px; padding:2px 8px; margin-left:8px;
  white-space:nowrap; vertical-align:1px;
}
.dish-desc{display:block; width:100%; color:var(--text-muted); font-size:.88rem; margin-top:2px; font-style:italic;}
@media(max-width:480px){
  .dish-row{flex-direction:column; align-items:flex-start; gap:2px;}
  .dish-leader{display:none;}
  .dish-price{font-size:.95rem; color:var(--terracotta-dark);}
}
.menu-note{margin-top:44px; border-top:1px solid var(--line); padding-top:24px; font-size:.95rem; color:var(--text-muted);}
.menu-season-tag{
  display:inline-block; font-size:.8rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--terracotta-dark); border:1px solid var(--terracotta-dark); border-radius:100px;
  padding:5px 14px; margin-bottom:18px;
}
@media(max-width:768px){ .menu-grid{grid-template-columns:1fr; gap:38px;} }

/* ---------- GALLERY (masonry) ---------- */
.masonry{column-count:3; column-gap:16px;}
.masonry img{width:100%; margin-bottom:16px; display:block; transition:transform .35s ease; filter:grayscale(0);}
.masonry .gitem{break-inside:avoid; margin-bottom:16px; overflow:hidden;}
.masonry .gitem:hover img{transform:scale(1.045);}
@media(max-width:860px){ .masonry{column-count:2;} }
@media(max-width:520px){ .masonry{column-count:1;} }

/* ---------- EVENTS (alternating bands) ---------- */
.event-band{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;}
.event-band + .event-band{margin-top:76px;}
.event-band.reverse .event-copy{order:2;}
.event-band.reverse .event-photo{order:1;}
.event-photo{position:relative; padding:24px 0 24px 24px;}
.event-photo::before{content:''; position:absolute; top:0; left:0; right:24px; bottom:0; background:var(--olive);}
.event-photo img{position:relative; width:100%; aspect-ratio:5/4; object-fit:cover;}
.event-band.reverse .event-photo{padding:24px 24px 24px 0;}
.event-band.reverse .event-photo::before{left:24px; right:0;}
.event-copy h3{font-size:1.6rem; margin-bottom:14px;}
.event-copy p{color:var(--text-muted); font-size:1.01rem;}
.event-tags{display:flex; flex-wrap:wrap; gap:10px; margin-top:20px;}
.event-tags span{background:var(--off-white); border:1px solid var(--line); border-radius:100px; padding:7px 16px; font-size:.87rem; color:var(--black);}
@media(max-width:860px){
  .event-band, .event-band.reverse{grid-template-columns:1fr;}
  .event-band.reverse .event-copy, .event-band.reverse .event-photo{order:initial;}
  .event-band + .event-band{margin-top:50px;}
}

/* ---------- RESERVAS ---------- */
.reserva-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:28px;}
.reserva-card{background:var(--black); color:var(--white); border-radius:4px; padding:44px; display:flex; flex-direction:column; justify-content:center; gap:16px;}
.reserva-card h3{color:var(--white); font-size:1.5rem;}
.reserva-card p{color:rgba(255,255,255,.76); font-size:1rem;}
.phone-link{font-family:'Fraunces', serif; font-size:2rem; color:#fff !important; text-decoration:none; display:inline-block; margin-top:2px; border-bottom:2px solid var(--terracotta);}
.wa-line{display:flex; align-items:center; gap:8px; margin-top:16px; font-size:1.02rem; font-weight:600; color:rgba(255,255,255,.88) !important; text-decoration:none; width:fit-content;}
.wa-line svg{flex:none;}
.wa-line:hover{color:var(--terracotta) !important;}
.reserva-side{background:var(--off-white); border:1px solid var(--line); border-radius:4px; padding:36px; display:flex; flex-direction:column; gap:14px; justify-content:center;}
.reserva-side h3{font-size:1.2rem;}
.reserva-side p{color:var(--text-muted); font-size:.96rem;}
.ig-link{display:inline-flex; align-items:center; gap:10px; font-weight:600; color:var(--terracotta-dark) !important; text-decoration:none; margin-top:2px;}
@media(max-width:860px){ .reserva-grid{grid-template-columns:1fr;} }

/* ---------- LOCATION ---------- */
.loc-grid{display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:stretch;}
.map-frame{overflow:hidden; border:1px solid var(--line); min-height:340px;}
.map-frame iframe{width:100%; height:100%; min-height:340px; border:0; display:block; filter:grayscale(35%);}
.loc-info h3{font-size:1.2rem; margin-bottom:10px;}
.loc-info .addr{font-size:1.03rem; color:var(--black); margin-bottom:26px;}
.hours-table{width:100%; border-collapse:collapse; margin-top:6px;}
.hours-table tr{border-bottom:1px solid var(--line);}
.hours-table td{padding:12px 0; font-size:.97rem; color:var(--black);}
.hours-table td:first-child{font-weight:600; padding-right:16px; white-space:nowrap;}
.hours-note{margin-top:16px; font-size:.89rem; color:var(--text-muted); font-style:italic;}
.hours-season{font-weight:700; font-size:.92rem; letter-spacing:.02em; color:var(--terracotta-dark); margin:0 0 6px;}
@media(max-width:860px){ .loc-grid{grid-template-columns:1fr;} }

/* ---------- FOOTER ---------- */
footer{background:var(--black); color:rgba(255,255,255,.82); padding:56px 0 30px;}
.footer-grid{display:flex; flex-wrap:wrap; justify-content:space-between; gap:30px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,.15);}
.footer-brand{font-family:'Fraunces', serif; font-style:italic; font-size:1.25rem; color:var(--white);}
.footer-col a{display:block; color:rgba(255,255,255,.76); text-decoration:none; margin-top:10px; font-size:.94rem;}
.footer-col a:hover{color:var(--terracotta);}
.footer-bottom{padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.84rem; color:rgba(255,255,255,.48);}

.sr-only{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);}
@media (prefers-reduced-motion: reduce){
  .hero-media img{animation:none; transform:scale(1);}
  html{scroll-behavior:auto;}
}
