/* =========================================================
   O LAR DE NICO — Estilos
   Paleta inspirada en el logo: verde oliva profundo + crema
========================================================= */

:root{
  --olive-900: #2c3818;
  --olive-800: #37461f;
  --olive-700: #46592a;
  --olive-600: #58703a;
  --olive-500: #758f4d;
  --cream-50:  #fdfbf4;
  --cream-100: #f7f1e2;
  --cream-200: #efe6cf;
  --gold-400:  #c69a3e;
  --gold-500:  #ad8231;
  --ink-900:   #22271a;
  --ink-600:   #4d5240;

  --font-script: 'Caveat', cursive;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Jost', sans-serif;

  --ease: cubic-bezier(.22,1,.36,1);
  --container: 1180px;
}

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

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg{ display:block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
button{ font-family: inherit; cursor: pointer; }

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

/* subtle paper grain overlay for warmth */
.grain{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   NAV
========================================================= */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo{
  display: flex;
  flex-direction: column;
  line-height: .78;
  color: var(--cream-50);
  transition: color .4s var(--ease);
}
.nav__logo-script{
  font-family: var(--font-script);
  font-size: 15px;
  font-weight: 600;
  margin-left: 4px;
}
.nav__logo-bold{
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 1px;
}
.nav__links{
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__link{
  font-size: 14.5px;
  font-weight: 500;
  color: var(--cream-100);
  position: relative;
  padding-bottom: 3px;
  transition: color .3s;
}
.nav__link::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1.5px;
  background: var(--gold-400);
  transition: width .35s var(--ease);
}
.nav__link:hover{ color: var(--gold-400); }
.nav__link:hover::after{ width: 100%; }
.nav__link.is-current{ color: var(--gold-400); }
.nav__link.is-current::after{ width: 100%; }

.nav__cta{
  background: var(--gold-400);
  color: var(--olive-900);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 30px;
  transition: transform .3s var(--ease), background .3s;
}
.nav__cta:hover{ transform: translateY(-2px); background: var(--cream-50); }

.nav__burger{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  z-index: 110;
}
.nav__burger span{
  width: 24px; height: 2px;
  background: var(--cream-50);
  transition: transform .3s, opacity .3s, background .3s;
}

/* scrolled state */
.nav.is-scrolled{
  padding: 12px 0;
  background: rgba(253, 251, 244, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(44,56,24,.08);
}
.nav.is-scrolled .nav__logo,
.nav.is-scrolled .nav__link{ color: var(--olive-900); }
.nav.is-scrolled .nav__burger span{ background: var(--olive-900); }

/* =========================================================
   HERO
========================================================= */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(117,143,77,.35), transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(198,154,62,.18), transparent 50%),
    linear-gradient(160deg, var(--olive-800), var(--olive-900) 70%);
  overflow: hidden;
  padding: 120px 24px 60px;
}

.hero__leaves{ position: absolute; inset: 0; color: var(--olive-500); opacity: .5; pointer-events:none; }
.leaf-branch{ position: absolute; width: 220px; height: 220px; }
.leaf-branch--1{ top: 12%; left: 6%; transform: rotate(-8deg); }
.leaf-branch--2{ bottom: 8%; right: 5%; transform: rotate(10deg) scaleX(-1); }
.leaf-draw{
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 2.6s var(--ease) forwards;
  animation-delay: .4s;
}
.leaf-draw--d1{ animation-delay: 1.1s; }
.leaf-draw--d2{ animation-delay: 1.5s; }
@keyframes draw{ to{ stroke-dashoffset: 0; } }

.hero__content{ position: relative; z-index: 2; }

.hero__eyebrow{
  color: var(--gold-400);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 18px;
}

.hero__title{ margin: 0; }
.hero__title-script{
  display: block;
  font-family: var(--font-script);
  font-size: clamp(32px, 5.5vw, 58px);
  color: var(--cream-100);
  font-weight: 600;
  margin-bottom: -0.35em;
}
.hero__title-bold{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(90px, 20vw, 220px);
  letter-spacing: 4px;
  color: var(--cream-50);
  line-height: .92;
}

.hero__tagline{
  margin: 18px 0 40px;
  font-size: clamp(15px, 2vw, 19px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream-200);
  font-weight: 500;
}
.hero__tagline .dot{ color: var(--gold-400); margin: 0 6px; }

.hero__actions{
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), background .35s, color .35s, box-shadow .35s, border-color .35s;
  white-space: nowrap;
}
.btn--ghost-light{
  color: var(--cream-50);
  border-color: rgba(253,251,244,.45);
}
.btn--ghost-light:hover{
  background: rgba(253,251,244,.1);
  border-color: var(--cream-50);
  transform: translateY(-3px);
}
.btn--ghost-dark{
  color: var(--olive-800);
  border-color: var(--olive-700);
}
.btn--ghost-dark:hover{
  background: var(--olive-800);
  color: var(--cream-50);
  transform: translateY(-3px);
}
.btn--solid{
  background: var(--gold-400);
  color: var(--olive-900);
  box-shadow: 0 10px 24px rgba(198,154,62,.25);
}
.btn--solid:hover{
  background: var(--gold-500);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(198,154,62,.35);
}
.btn--full{ width: 100%; justify-content: center; }
.btn__wa-icon{ width: 18px; height: 18px; }

.hero__scroll{
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--cream-200);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .85;
  transition: opacity .3s;
}
.hero__scroll:hover{ opacity: 1; }
.hero__scroll span{
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold-400), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse{
  0%,100%{ transform: scaleY(1); opacity: .6; }
  50%{ transform: scaleY(1.3); opacity: 1; }
}

/* =========================================================
   SECTION HEAD (shared)
========================================================= */
.eyebrow{
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-500);
  margin: 0 0 10px;
}
.eyebrow--light{ color: var(--gold-400); }

.section-head{ max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-title{
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: .5px;
  margin: 0 0 16px;
  color: var(--olive-900);
  line-height: 1;
}
.section-sub{
  color: var(--ink-600);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* =========================================================
   MENU / CARTA
========================================================= */
.menu{ padding: 130px 0 120px; background: var(--cream-50); }

.menu__tabs{
  position: sticky;
  top: 84px;
  z-index: 40;
  display: inline-flex;
  gap: 4px;
  margin: 0 auto 56px;
  padding: 6px;
  background: var(--cream-200);
  border-radius: 40px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  box-shadow: 0 8px 20px rgba(44,56,24,.10);
}
.menu__tab{
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-600);
  border-radius: 30px;
  transition: color .35s;
  white-space: nowrap;
}
.menu__tab.is-active{ color: var(--cream-50); }
.menu__tabs-indicator{
  position: absolute;
  z-index: 1;
  top: 6px; left: 6px;
  height: calc(100% - 12px);
  background: var(--olive-700);
  border-radius: 30px;
  transition: transform .45s var(--ease), width .45s var(--ease);
}

.menu__grid{
  display: none;
  gap: 24px;
}
.menu__grid.is-active{ display: grid; grid-template-columns: repeat(3, 1fr); animation: fadeUp .5s var(--ease); }
.menu__grid--list.is-active{ display: block; max-width: 760px; margin: 0 auto; }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(14px);} to{opacity:1; transform:none;} }

/* ---------- Apartados dentro de cada categoría (Desayunos / Cenas) ---------- */
.menu__group{ margin-bottom: 52px; }
.menu__group:last-child{ margin-bottom: 0; }

.menu__group-title{
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: .5px;
  color: var(--olive-900);
  margin: 0 0 4px;
}
.menu__group-note{
  font-size: 13.5px;
  color: var(--ink-600);
  margin: 0 0 20px;
}

.menu-list{ display: flex; flex-direction: column; gap: 18px; }
.menu-list__item{ border-bottom: 1px dashed var(--cream-200); padding-bottom: 18px; }
.menu-list__item:last-child{ border-bottom: none; padding-bottom: 0; }

.menu-list__row{
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.menu-list__name{
  font-weight: 600;
  color: var(--olive-900);
  font-size: 16.5px;
}
.menu-list__dots{
  flex: 1;
  border-bottom: 1px dotted var(--cream-200);
  height: 0;
  transform: translateY(-4px);
}
.menu-list__price{
  font-family: var(--font-display);
  font-size: 16.5px;
  letter-spacing: .3px;
  color: var(--gold-500);
  white-space: nowrap;
}
.menu-list__desc{
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-600);
  max-width: 60ch;
}

.menu-list--tight{ gap: 10px; }
.menu-list--tight .menu-list__item{ border-bottom: none; padding-bottom: 0; }

.menu__toppings{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.menu__topping-pill{
  font-size: 13px;
  color: var(--olive-800);
  background: var(--cream-200);
  border-radius: 20px;
  padding: 6px 14px;
}

@media (max-width: 640px){
  .menu-list__name{ font-size: 15.5px; }
  .menu-list__price{ font-size: 15.5px; }
}

/* =========================================================
   GALERÍA / CARRUSEL DE PLATOS (home)
========================================================= */
.gallery{ padding: 120px 0 130px; background: var(--cream-50); overflow: hidden; }
.gallery__head{ max-width: 640px; margin: 0 auto 52px; text-align: center; }

.gallery__track-wrap{ position: relative; }

.gallery__track{
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 6px 10px;
  margin: 0 -6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar{ display: none; }

.gallery__item{
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  margin: 0;
  background: var(--cream-200);
  box-shadow: 0 14px 32px rgba(44,56,24,.10);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.gallery__item:hover{ transform: translateY(-6px); box-shadow: 0 24px 44px rgba(44,56,24,.18); }

.gallery__item picture{ display: block; width: 100%; height: 100%; }
.gallery__item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
.gallery__item:hover img{ transform: scale(1.06); }

.gallery__item::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(34,39,26,.72) 0%, rgba(34,39,26,.12) 42%, transparent 62%);
  pointer-events: none;
}

.gallery__item figcaption{
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: var(--cream-50);
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .4px;
  line-height: 1.15;
}

.gallery__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--olive-700);
  background: var(--cream-50);
  color: var(--olive-800);
  font-size: 22px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(44,56,24,.16);
  transition: background .3s, color .3s, transform .3s;
}
.gallery__nav:hover{ background: var(--olive-700); color: var(--cream-50); }
.gallery__nav--prev{ left: -8px; }
.gallery__nav--next{ right: -8px; }

.gallery__dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.gallery__dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cream-200);
  border: none;
  padding: 0;
  transition: background .3s, transform .3s;
}
.gallery__dot.is-active{ background: var(--olive-700); transform: scale(1.25); }

@media (max-width: 900px){
  .gallery__nav{ display: none; }
}
@media (max-width: 640px){
  .gallery{ padding: 90px 0 100px; }
  .gallery__item{ width: 240px; }
  .gallery__item figcaption{ font-size: 16.5px; }
}

/* =========================================================
   PAGE HERO (cabecera de páginas internas, ej. carta.html)
========================================================= */
.page-hero{
  position: relative;
  padding: 170px 24px 90px;
  text-align: center;
  color: var(--cream-50);
  background:
    radial-gradient(ellipse at 20% 15%, rgba(117,143,77,.35), transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(198,154,62,.18), transparent 50%),
    linear-gradient(160deg, var(--olive-800), var(--olive-900) 70%);
  overflow: hidden;
}
.page-hero .hero__leaves{ opacity: .35; }
.page-hero .leaf-branch{ width: 160px; height: 160px; }
.page-hero .leaf-branch--1{ top: 8%; left: 4%; }
.page-hero__content{ position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.page-hero__eyebrow{
  color: var(--gold-400);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 16px;
}
.page-hero__title{
  font-family: var(--font-display);
  font-size: clamp(52px, 10vw, 120px);
  letter-spacing: 2px;
  margin: 0;
  color: var(--cream-50);
  line-height: 1;
}
.page-hero__sub{
  margin: 20px auto 0;
  max-width: 560px;
  color: var(--cream-200);
  font-size: 16px;
  line-height: 1.7;
}
.page-hero__back{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--cream-100);
  font-size: 13.5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(253,251,244,.4);
  padding-bottom: 3px;
  transition: border-color .3s, color .3s;
}
.page-hero__back:hover{ color: var(--gold-400); border-color: var(--gold-400); }

/* =========================================================
   CTA AL FINAL DE LA CARTA (carta.html)
========================================================= */
.menu-cta{
  background: var(--olive-900);
  color: var(--cream-50);
  text-align: center;
  padding: 90px 24px;
}
.menu-cta__inner h2{
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  letter-spacing: 1px;
  margin: 0 0 14px;
}
.menu-cta__inner p{
  color: var(--cream-200);
  font-size: 15.5px;
  margin: 0 0 30px;
}

/* =========================================================
   STORY
========================================================= */
.story{
  position: relative;
  background: var(--olive-900);
  color: var(--cream-100);
  padding: 130px 0;
  overflow: hidden;
  text-align: center;
}
.story__leaf{
  position: absolute;
  width: 340px; height: 340px;
  color: var(--olive-600);
  opacity: .4;
  top: -40px; right: -60px;
  transform: rotate(15deg);
}
.story__inner{ position: relative; z-index: 2; max-width: 780px; }
.story__quote{
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.5;
  color: var(--cream-50);
  margin: 0 0 26px;
}
.story__quote-script{
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 700;
  color: var(--gold-400);
  font-size: 1.25em;
  padding: 0 4px;
}
.story__text{
  font-size: 16px;
  line-height: 1.8;
  color: var(--cream-200);
  max-width: 620px;
  margin: 0 auto;
}

/* =========================================================
   CONTACT
========================================================= */
.contact{ padding: 130px 0; background: var(--cream-100); }

.map-wrap{
  margin-top: 64px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--cream-200);
  box-shadow: 0 24px 60px rgba(44,56,24,.12);
  aspect-ratio: 21 / 8;
}
.map-wrap iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(.15) sepia(.06);
}
.map-directions{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--olive-800);
  border-bottom: 1px solid var(--olive-700);
  padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.map-directions:hover{ color: var(--gold-500); border-color: var(--gold-500); }
.contact__inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.contact__list{ margin: 34px 0 26px; display: flex; flex-direction: column; gap: 20px; }
.contact__list li{ display: flex; gap: 16px; align-items: flex-start; }
.contact__icon{
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cream-50);
  color: var(--olive-700);
  display: flex; align-items: center; justify-content: center;
}
.contact__icon svg{ width: 19px; height: 19px; }
.contact__list strong{ display: block; font-size: 15px; color: var(--olive-900); margin-bottom: 4px; }
.contact__list span, .contact__list a{ font-size: 14.5px; color: var(--ink-600); }

.hours-list{ display: flex; flex-direction: column; gap: 3px; }
.hours-list li{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--ink-600);
  padding: 2px 0;
}
.hours-list li span:first-child{ color: var(--olive-800); font-weight: 500; }
.hours-list li span:last-child{ white-space: nowrap; }
.contact__list a:hover{ color: var(--gold-500); }

.contact__socials{ display: flex; gap: 12px; }
.social-icon{
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--olive-700);
  color: var(--olive-700);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, color .3s, transform .3s;
}
.social-icon svg{ width: 18px; height: 18px; }
.social-icon:hover{ background: var(--olive-700); color: var(--cream-50); transform: translateY(-3px); }

.reserve-form{
  background: var(--cream-50);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 24px 60px rgba(44,56,24,.1);
  border: 1px solid var(--cream-200);
}
.reserve-form__row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field{ margin-bottom: 18px; }
.field label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--olive-800);
  margin-bottom: 7px;
}
.field input, .field textarea{
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--cream-200);
  background: var(--cream-50);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink-900);
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus{
  outline: none;
  border-color: var(--olive-600);
  box-shadow: 0 0 0 4px rgba(117,143,77,.15);
}
.field textarea{ resize: vertical; min-height: 80px; }

.reserve-form__note{
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ink-600);
  text-align: center;
}

/* =========================================================
   FOOTER
========================================================= */
.footer{ background: var(--olive-900); color: var(--cream-200); padding: 54px 0 34px; text-align: center; }
.footer__inner{ display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nav__logo--footer{ color: var(--cream-50); margin-bottom: 6px; }
.footer__tagline{ font-size: 13.5px; letter-spacing: 1px; margin: 0; }
.footer__legal{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 12.5px;
}
.footer__legal a,
.footer__legal-btn{
  color: var(--cream-200);
  transition: color .3s;
}
.footer__legal a:hover,
.footer__legal-btn:hover{ color: var(--gold-400); }
.footer__legal-btn{
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.footer__legal-dot{ opacity: .5; }
.footer__credits{ font-size: 12px; opacity: .55; margin: 18px 0 0; }

/* =========================================================
   WHATSAPP FLOATING BUTTON
========================================================= */
.wa-float{
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height: 58px;
  background: var(--olive-700);
  color: var(--cream-50);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(44,56,24,.35);
  z-index: 90;
  transition: transform .35s var(--ease), background .35s;
}
.wa-float:hover{ background: var(--gold-400); color: var(--olive-900); transform: scale(1.08); }
.wa-float svg{ width: 26px; height: 26px; }
.wa-float::after{
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  box-shadow: 0 10px 34px rgba(198,154,62,.5);
  opacity: 0;
  z-index: -1;
  animation: waPulse 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes waPulse{
  0%,100%{ opacity: 0; }
  50%{ opacity: 1; }
}

/* =========================================================
   SCROLL REVEAL
========================================================= */
[data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
[data-reveal].is-visible{ opacity: 1; transform: none; }

.btn--text{
  background: none;
  color: var(--ink-600);
  border: none;
  padding: 15px 18px;
}
.btn--text:hover{ color: var(--olive-800); }

/* =========================================================
   PÁGINA LEGAL (política de cookies, etc.)
========================================================= */
.page-hero--compact{ padding: 160px 24px 70px; }
.page-hero__title--small{ font-size: clamp(38px, 7vw, 72px); }

.legal{ padding: 90px 0 120px; background: var(--cream-50); }
.legal__inner{ max-width: 760px; margin: 0 auto; }
.legal__block{ margin-bottom: 44px; }
.legal__block h2{
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: .5px;
  color: var(--olive-900);
  margin: 0 0 14px;
}
.legal__block p{
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-600);
  margin: 0 0 12px;
}
.legal__block a{ color: var(--olive-700); text-decoration: underline; text-underline-offset: 2px; }
.legal__block a:hover{ color: var(--gold-500); }
.legal__list{ padding-left: 20px; margin: 0; }
.legal__list li{ font-size: 15px; line-height: 2; color: var(--ink-600); list-style: disc; }
.legal__inline-btn{
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--olive-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.legal__inline-btn:hover{ color: var(--gold-500); }

.legal__table-wrap{ overflow-x: auto; margin-top: 20px; }
.legal__table{
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--cream-100);
  border-radius: 14px;
  overflow: hidden;
  font-size: 14px;
}
.legal__table th, .legal__table td{
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--cream-200);
  vertical-align: top;
  line-height: 1.6;
  color: var(--ink-600);
}
.legal__table th{
  background: var(--olive-800);
  color: var(--cream-50);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3px;
}
.legal__table tr:last-child td{ border-bottom: none; }

/* =========================================================
   BANNER DE COOKIES
========================================================= */
.cookie-banner{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: var(--olive-900);
  color: var(--cream-100);
  box-shadow: 0 -12px 30px rgba(44,56,24,.25);
  animation: cookieSlideUp .5s var(--ease);
}
.cookie-banner[hidden]{ display: none; }
@keyframes cookieSlideUp{
  from{ transform: translateY(100%); }
  to{ transform: translateY(0); }
}
.cookie-banner__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cookie-banner__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream-200);
  flex: 1;
  min-width: 240px;
}
.cookie-banner__text a{ color: var(--gold-400); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cookie-banner .btn{ padding: 11px 20px; font-size: 13.5px; }
.cookie-banner .btn--text{ color: var(--cream-200); }
.cookie-banner .btn--text:hover{ color: var(--gold-400); }
.cookie-banner .btn--ghost-dark{
  background: var(--cream-100);
  color: var(--olive-900);
  border-color: var(--cream-100);
  font-weight: 600;
}
.cookie-banner .btn--ghost-dark:hover{
  background: var(--cream-50);
  color: var(--olive-900);
  border-color: var(--cream-50);
}

/* =========================================================
   MODAL DE PREFERENCIAS DE COOKIES
========================================================= */
.cookie-modal{ position: fixed; inset: 0; z-index: 320; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal[hidden]{ display: none; }
.cookie-modal__backdrop{
  position: absolute; inset: 0;
  background: rgba(34,39,26,.55);
  backdrop-filter: blur(3px);
  animation: fadeIn .3s var(--ease);
}
@keyframes fadeIn{ from{ opacity:0; } to{ opacity:1; } }
.cookie-modal__panel{
  position: relative;
  z-index: 2;
  background: var(--cream-50);
  border-radius: 22px;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 30px 70px rgba(44,56,24,.3);
  animation: modalPop .35s var(--ease);
}
@keyframes modalPop{
  from{ opacity: 0; transform: translateY(16px) scale(.98); }
  to{ opacity: 1; transform: none; }
}
.cookie-modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cookie-modal__header h2{
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: .5px;
  color: var(--olive-900);
  margin: 0;
}
.cookie-modal__close{
  background: var(--cream-200);
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--ink-900);
  transition: background .3s, color .3s;
}
.cookie-modal__close:hover{ background: var(--olive-800); color: var(--cream-50); }
.cookie-modal__intro{
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-600);
  margin: 0 0 24px;
}

.cookie-category{
  padding: 18px 0;
  border-top: 1px solid var(--cream-200);
}
.cookie-category:last-of-type{ border-bottom: 1px solid var(--cream-200); margin-bottom: 26px; }
.cookie-category__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cookie-category__head strong{ font-size: 15px; color: var(--olive-900); }
.cookie-category p{ margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-600); }

.cookie-toggle{
  position: relative;
  width: 44px; height: 26px;
  border-radius: 20px;
  background: var(--cream-200);
  border: none;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .3s;
}
.cookie-toggle__dot{
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cream-50);
  box-shadow: 0 2px 6px rgba(44,56,24,.25);
  transition: transform .3s var(--ease);
}
.cookie-toggle[aria-checked="true"]{ background: var(--olive-700); }
.cookie-toggle[aria-checked="true"] .cookie-toggle__dot{ transform: translateX(18px); }
.cookie-toggle--locked{
  background: var(--olive-700);
  opacity: .55;
  cursor: not-allowed;
}
.cookie-toggle--locked .cookie-toggle__dot{ transform: translateX(18px); }

.cookie-modal__actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.cookie-modal__actions .btn{ padding: 12px 20px; font-size: 13.5px; }
.cookie-modal__actions .btn--ghost-dark{ padding: 11px 19px; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px){
  .contact__inner{ grid-template-columns: 1fr; gap: 50px; }
  .map-wrap{ aspect-ratio: 16 / 9; }
}

@media (max-width: 480px){
  .container{ padding: 0 20px; }
  .hours-list li{ flex-direction: column; gap: 1px; }
  .hours-list li span:last-child{ white-space: normal; color: var(--ink-600); font-size: 13px; }
  .map-wrap{ aspect-ratio: 4 / 5; margin-top: 46px; }
}

@media (max-width: 640px){
  /* pestañas en scroll horizontal: evita que salten de línea y descoloquen el indicador */
  .menu__tabs{
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 10px;
    padding-right: 10px;
    max-width: calc(100% + 16px);
  }
  .menu__tabs::-webkit-scrollbar{ display: none; }
}

/* nombre y precio de cada plato: en pantallas muy estrechas, el precio
   baja a su propia línea en vez de comprimir el nombre del plato */
@media (max-width: 480px){
  .menu-list__row{ flex-wrap: wrap; row-gap: 4px; }
  .menu-list__dots{ display: none; }
  .menu-list__price{ margin-left: auto; }
}

/* altura de hero fiable en navegadores móviles con barra de direcciones dinámica */
@supports (height: 100svh){
  .hero{ min-height: 100svh; }
}

/* zona de toque más cómoda para el botón de menú móvil */
.nav__burger{ padding: 10px; margin: -10px; }

@media (max-width: 640px){
  .cookie-banner__inner{ flex-direction: column; align-items: stretch; text-align: center; padding: 20px 22px; }
  .cookie-banner__actions{ justify-content: center; }
  .cookie-banner__actions .btn{ flex: 1; justify-content: center; }
  .cookie-modal__panel{ padding: 26px 22px; }
  .cookie-modal__actions{ justify-content: stretch; }
  .cookie-modal__actions .btn{ flex: 1; justify-content: center; }
}

@media (max-width: 760px){
  .nav__links{
    position: fixed;
    top: 0; right: 0;
    height: 100vh; /* fallback para navegadores sin soporte de dvh */
    height: 100dvh; /* altura real visible: evita que la barra de direcciones del móvil corte el menú */
    width: min(78vw, 320px);
    background: var(--olive-900);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
  }
  .nav__links.is-open{ transform: translateX(0); }
  .nav__links .nav__link, .nav__links .nav__cta{ color: var(--cream-50); font-size: 18px; }
  .nav__burger{ display: flex; }
  .nav.is-scrolled .nav__burger span{ background: var(--olive-900); }
  .nav__burger.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2){ opacity: 0; }
  .nav__burger.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .nav.is-scrolled .nav__burger.is-open span{ background: var(--cream-50); }

  .reserve-form__row{ grid-template-columns: 1fr; }
  .leaf-branch{ width: 140px; height: 140px; }
  .hero__title-bold{ letter-spacing: 1px; }
}
/* ===== OCULTAR BADGE "POWERED BY NETLIFY" (plan gratuito) ===== */
#__netlify-badge,
.netlify-badge,
[id*="netlify-badge"] {
  display: none !important;
  visibility: hidden !important;
}