:root{
  --green:#173126;
  --green-2:#244637;
  --cream:#f6f0e5;
  --cream-2:#eadfcb;
  --ink:#1f201c;
  --muted:#66685f;
  --gold:#b9894d;
  --white:#fff;
  --border:rgba(23,49,38,.16);
  --shadow:0 20px 55px rgba(18,33,26,.13);
  --radius:18px;
  --max:1180px;
  --serif:Georgia,"Times New Roman",serif;
  --sans:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

/* =========================
   BASE
========================= */

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--sans);
  line-height:1.65;
}

img{
  display:block;
  max-width:100%;
  height:auto;
}

a{
  color:inherit;
}

button,
input,
textarea,
select{
  font:inherit;
}

address{
  font-style:normal;
}

.container{
  width:min(calc(100% - 36px),var(--max));
  margin-inline:auto;
}

.skip-link{
  position:absolute;
  top:0;
  left:-9999px;
}

.skip-link:focus{
  left:16px;
  top:16px;
  z-index:999;
  padding:10px 14px;
  background:var(--white);
}

/* =========================
   HEADER / NAVEGACIÓN
========================= */

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(246,240,229,.94);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(14px);
}

.header-inner{
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand img{
  width:150px;
  max-height:68px;
  object-fit:contain;
}

.nav-wrap{
  display:flex;
  align-items:center;
  gap:22px;
}

.main-nav{
  display:flex;
  align-items:center;
  gap:20px;
}

.main-nav a{
  text-decoration:none;
  font-size:.96rem;
  font-weight:650;
}

.main-nav a:hover,
.main-nav a[aria-current="page"]{
  color:var(--gold);
}

.lang-switch{
  display:flex;
  gap:7px;
  font-size:.86rem;
  font-weight:800;
}

.lang-switch a{
  padding:5px 7px;
  border-radius:7px;
  text-decoration:none;
}

.lang-switch a[aria-current="true"]{
  background:var(--green);
  color:var(--white);
}

.menu-toggle{
  display:none;
  border:0;
  background:transparent;
  font-size:1.45rem;
}

/* =========================
   BOTONES
========================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 20px;
  border:1px solid transparent;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  transition:transform .2s ease,background-color .2s ease,border-color .2s ease;
}

.btn:hover{
  transform:translateY(-2px);
}

.btn-primary{
  background:var(--green);
  color:var(--white);
}

.btn-secondary{
  border-color:rgba(255,255,255,.5);
  background:rgba(255,255,255,.08);
  color:var(--white);
}

.btn-outline{
  border-color:var(--green);
  color:var(--green);
}

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

/* =========================
   HERO DE INICIO
========================= */

.hero{
  position:relative;
  z-index:0;
  min-height:860px;
  display:grid;
  place-items:center;
  overflow:hidden;
  color:var(--white);
}

.hero::before{
  content:"";
  position:absolute;
  inset:-8%;
  z-index:-1;
  background:
    linear-gradient(
      90deg,
      rgba(12,24,18,.88) 0%,
      rgba(12,24,18,.62) 45%,
      rgba(12,24,18,.30) 100%
    ),
    url("../images/hero-parrilla.jpg") center/cover no-repeat;
  transform:translate3d(0,var(--hero-offset,0),0) scale(1.08);
  will-change:transform;
}

.hero-inner{
  max-width:770px;
  margin-right:auto;
  padding:110px 0;
}

.eyebrow{
  color:var(--gold);
  font-size:.78rem;
  font-weight:850;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.hero h1,
.page-hero h1,
.history-intro h1{
  margin:.2em 0;
  font-family:var(--serif);
  font-size:clamp(3rem,7vw,6rem);
  line-height:.98;
}

.hero p{
  max-width:660px;
  color:#f0eadf;
  font-size:1.18rem;
}

/* =========================
   SECCIONES GENERALES
========================= */

.section{
  padding:92px 0;
}

.section-alt{
  background:#efe5d4;
}

.section-dark{
  background:var(--green);
  color:var(--white);
}

.section-head{
  max-width:760px;
  margin-bottom:40px;
}

.section-head h2,
.content h2{
  margin:.15em 0 .3em;
  font-family:var(--serif);
  font-size:clamp(2.2rem,4.7vw,4rem);
  line-height:1.05;
}

.section-head p,
.card p{
  color:var(--muted);
}

.section-dark .section-head p{
  color:#d8dfda;
}

.grid{
  display:grid;
  gap:24px;
}

.grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.split{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:62px;
}

.split img{
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.quote{
  padding-left:22px;
  border-left:4px solid var(--gold);
  font-family:var(--serif);
  font-size:1.8rem;
  line-height:1.35;
}

/* =========================
   TARJETAS
========================= */

.card{
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.54);
  box-shadow:var(--shadow);
}

.card-body{
  padding:24px;
}

.card h3{
  margin:0 0 8px;
  font-family:var(--serif);
  font-size:1.65rem;
}

.media-card img{
  aspect-ratio:3/2;
  object-fit:cover;
}

/* =========================
   HERO DE PÁGINAS INTERIORES
========================= */

.page-hero{
  position:relative;
  z-index:0;
  min-height:420px;
  display:flex;
  align-items:center;
  overflow:hidden;
  padding:105px 0 70px;
  background-color:var(--green);
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  color:var(--white);
}

.page-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(
    90deg,
    rgba(12,24,18,.88) 0%,
    rgba(12,24,18,.62) 45%,
    rgba(12,24,18,.30) 100%
  );
}

.page-hero .container{
  position:relative;
  z-index:1;
}

.page-hero h1{
  max-width:820px;
}

.page-hero p{
  max-width:700px;
  color:#dce5df;
}

.page-hero--carta{
  background-image:url("../images/hero-carta.webp");
}

.page-hero--vinos{
  background-image:url("../images/restaurante-ponchos-vinos-2-1920w.jpg");
}

.page-hero--galeria{
  background-image:url("../images/hero-galeria.jpg");
}

.page-hero--contacto{
  background-image:url("../images/hero-contacto.webp");
}

/* ======================================
   HISTORIA: INTRODUCCIÓN
====================================== */

.history-intro{
  padding:70px 0 58px;
  background:var(--cream);
}

.history-intro .breadcrumbs{
  margin-bottom:28px;
  color:var(--muted);
}

.history-intro .breadcrumbs a:hover{
  color:var(--green);
}

.history-intro h1{
  max-width:900px;
  margin:.12em 0 .24em;
  color:var(--green);
  font-family:var(--serif);
  font-size:clamp(3.6rem,7vw,6.5rem);
  line-height:.95;
}

.history-intro__lead{
  max-width:760px;
  margin:0;
  color:var(--muted);
  font-size:1.18rem;
  line-height:1.7;
}

/* ======================================
   HISTORIA: IMAGEN PARALLAX
====================================== */

.history-banner{
  width:100%;
  min-height:580px;

  background-image:
    linear-gradient(
      rgba(12,24,18,.12),
      rgba(12,24,18,.12)
    ),
    url("../images/Nuestra-historia.jpg");

  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  background-attachment:fixed;
}

/* Contenido posterior */

.history-content{
  padding-top:100px;
}

/* =========================
   BREADCRUMBS
========================= */

.breadcrumbs{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:18px;
  color:#c8d2cc;
  font-size:.9rem;
}

.breadcrumbs a{
  color:inherit;
  text-decoration:none;
}

.breadcrumbs a:hover{
  color:var(--white);
}

/* =========================
   CONTENIDO
========================= */

.content{
  max-width:820px;
}

.content h2{
  margin-top:1.6em;
  font-size:2.4rem;
}

.content h3{
  font-family:var(--serif);
  font-size:1.7rem;
}

/* =========================
   CARTA
========================= */

.menu-nav{
  position:sticky;
  top:86px;
  z-index:20;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:14px 0;
  border-bottom:1px solid var(--border);
  background:var(--cream);
}

.menu-nav a{
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  text-decoration:none;
  font-weight:750;
}

.menu-section{
  padding-top:38px;
  scroll-margin-top:150px;
}

.menu-section h2{
  padding-bottom:12px;
  border-bottom:1px solid var(--border);
  font-family:var(--serif);
  font-size:2.7rem;
}

.menu-items{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 34px;
}

.menu-item{
  padding:18px 0;
  border-bottom:1px dashed rgba(23,49,38,.25);
}

.menu-item-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
}

.menu-item h3{
  margin:0;
  font-family:var(--serif);
  font-size:1.28rem;
}

.menu-item p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:.95rem;
}

.price{
  color:var(--green);
  font-weight:850;
  white-space:nowrap;
}

.notice{
  padding:18px 20px;
  border:1px solid #d9bd85;
  border-radius:14px;
  background:#fff7e8;
}

/* =========================
   BLOG
========================= */

.blog-card time{
  color:var(--muted);
  font-size:.84rem;
}

.blog-card a{
  text-decoration:none;
}

.blog-card a:hover h3{
  color:var(--gold);
}

.article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  color:var(--muted);
  font-size:.92rem;
}

.article-cover{
  margin:30px 0;
  border-radius:var(--radius);
}

/* =========================
   CONTACTO / MAPA
========================= */

.contact-grid{
  display:grid;
  grid-template-columns:.82fr 1.18fr;
  align-items:stretch;
  gap:34px;
}

.contact-card{
  padding:28px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--white);
}

.contact-info{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.contact-address{
  display:grid;
  gap:3px;
  margin:10px 0 24px;
}

.contact-links{
  display:grid;
  gap:12px;
  margin-bottom:28px;
}

.contact-links a{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:12px;
  text-decoration:none;
  transition:transform .2s ease,border-color .2s ease,background-color .2s ease;
}

.contact-links a:hover{
  transform:translateY(-2px);
  border-color:var(--gold);
  background:var(--cream);
}

.contact-links strong{
  color:var(--green);
}

.contact-links span{
  overflow-wrap:anywhere;
  color:var(--muted);
}

.map-card{
  display:flex;
  flex-direction:column;
}

.map-wrapper{
  flex:1;
  min-height:500px;
  margin-top:20px;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:var(--shadow);
}

.map-wrapper iframe{
  display:block;
  width:100%;
  height:100%;
  min-height:500px;
  border:0;
}

.form-grid{
  display:grid;
  gap:15px;
}

label{
  font-weight:750;
}

input,
textarea,
select{
  width:100%;
  padding:13px 14px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--white);
}

textarea{
  min-height:145px;
  resize:vertical;
}

/* =========================
   FOOTER
========================= */

.site-footer{
  padding:65px 0 22px;
  background:#0f2119;
  color:#e8eee9;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:36px;
}

.site-footer h2,
.site-footer h3{
  font-family:var(--serif);
}

.site-footer a{
  color:#d7dfd9;
  text-decoration:none;
}

.site-footer ul{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}

.footer-logo{
  width:170px;
  opacity:.93;
  filter:brightness(0) invert(1);
}

.footer-bottom{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:20px;
  margin-top:44px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.16);
  color:#bfcac3;
  font-size:.88rem;
}

.cookie-note{
  color:var(--muted);
  font-size:.86rem;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:900px){
  .menu-toggle{
    display:block;
  }

  .nav-wrap{
    position:absolute;
    top:86px;
    left:0;
    right:0;
    display:none;
    flex-direction:column;
    align-items:stretch;
    padding:22px;
    border-bottom:1px solid var(--border);
    background:var(--cream);
  }

  .nav-wrap.open{
    display:flex;
  }

  .main-nav{
    flex-direction:column;
    align-items:flex-start;
  }

  .grid-2,
  .grid-3,
  .split,
  .contact-grid,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .menu-items{
    grid-template-columns:1fr;
  }

  .hero{
    min-height:630px;
  }

  .history-banner{
    min-height:460px;
    background-attachment:scroll;
  }

  .history-cta .actions{
    justify-content:flex-start;
  }

  .map-wrapper,
  .map-wrapper iframe{
    min-height:380px;
  }
}

@media(max-width:620px){
  .header-inner{
    min-height:76px;
  }

  .brand img{
    width:120px;
  }

  .nav-wrap{
    top:76px;
  }

  .section{
    padding:68px 0;
  }

  .hero-inner{
    padding:75px 0;
  }

  .hero h1,
  .page-hero h1,
  .history-intro h1{
    font-size:3rem;
  }

  .menu-nav{
    top:76px;
    flex-wrap:nowrap;
    overflow-x:auto;
  }
}

@media(prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto;
  }

  .hero::before{
    transform:scale(1.08);
  }

  .btn,
  .contact-links a{
    transition:none;
  }
}