/* ==========================================================================
   El Sabor de Anita — hoja de estilos
   Paleta: terracota, verde aguacate, crema, maíz
   ========================================================================== */

:root {
  --green:      #3f6d24;
  --green-2:    #6a9a3b;
  --terra:      #c85a2b;
  --terra-2:    #e07a3f;
  --corn:       #e6b53c;
  --cream:      #fdf6ec;
  --cream-2:    #f6ead6;
  --ink:        #2a2118;
  --ink-soft:   #5d5245;
  --white:      #ffffff;

  --shadow:     0 18px 40px -20px rgba(63, 45, 20, .35);
  --shadow-sm:  0 8px 20px -12px rgba(63, 45, 20, .35);
  --radius:     18px;
  --radius-lg:  28px;
  --maxw:       1180px;

  --font-body:  'Poppins', system-ui, sans-serif;
  --font-head:  'Fraunces', Georgia, serif;
  --font-hand:  'Caveat', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.5px; }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--terra);
  line-height: 1;
  margin-bottom: .4rem;
}
.eyebrow--light { color: var(--corn); }

.section__head { max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); text-align: center; }
.section__sub { color: var(--ink-soft); margin-top: .8rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--bg); color: var(--white);
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: #345c1d; }
.btn--sm  { padding: .55rem 1.1rem; font-size: .85rem; }
.btn--lg  { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--green); box-shadow: none; }
.btn--ghost:hover { background: var(--green); color: var(--white); }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 246, 236, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(63, 45, 20, .08);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark { border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-head); font-size: 1.15rem; }
.brand__text em { font-style: normal; font-size: .72rem; color: var(--ink-soft); letter-spacing: .3px; }

.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { font-size: .93rem; font-weight: 500; position: relative; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--terra); transition: width .25s;
}
.nav__links a:not(.btn):hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ink); transition: .3s; border-radius: 2px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 7rem); }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(closest-side at 78% 18%, rgba(230,181,60,.35), transparent 70%),
    radial-gradient(closest-side at 12% 85%, rgba(106,154,59,.30), transparent 70%),
    linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(200,90,43,.10) 1.4px, transparent 1.4px);
  background-size: 26px 26px; opacity: .5;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__eyebrow {
  display: inline-block; background: var(--white); color: var(--green);
  font-weight: 600; font-size: .85rem; padding: .45rem 1rem; border-radius: 100px;
  box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
.hero__title { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -1.5px; }
.hero__title-accent { color: var(--terra); font-style: italic; font-weight: 400; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-soft); max-width: 540px; margin: 1.4rem 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Plataformas de entrega ---------- */
.hero__apps { margin-top: 2rem; }
.hero__apps-label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .55rem; text-transform: uppercase; letter-spacing: 1px; }
.pbadges { display: flex; flex-wrap: wrap; gap: .6rem; }
.pbadge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-body); font-weight: 700; font-size: .92rem; letter-spacing: .2px;
  padding: .5rem 1.1rem; border-radius: 100px; color: #fff;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.pbadge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pbadge b { font-weight: 700; }
.pbadge--uber { background: #06110a; }
.pbadge--uber b { color: #06c167; }
.pbadge--didi { background: #ff7510; }
.pbadge--didi b { color: #ffe1c7; }
.pbadge--rappi { background: #ff441f; }
.pbadges--note { justify-content: center; margin-top: 1rem; }
.pbadges--note .pbadge { background-clip: padding-box; }
.pbadges--sm .pbadge { font-size: .78rem; padding: .38rem .85rem; }

/* ---------- Selector de idioma ---------- */
.lang { display: inline-flex; gap: .25rem; margin-left: .8rem; background: var(--cream-2); border-radius: 100px; padding: .22rem; }
.lang__btn {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .5px;
  color: var(--ink-soft); padding: .32rem .55rem; border-radius: 100px; transition: .2s;
}
.lang__btn:hover { color: var(--green); }
.lang__btn.is-active { background: var(--green); color: #fff; }

.hero__rating { display: flex; align-items: center; gap: .55rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero__rating .stars { color: var(--corn); letter-spacing: 1px; font-size: 1.05rem; }
.hero__rating strong { font-family: var(--font-head); font-size: 1.3rem; }
.hero__rating-txt { font-size: .82rem; color: var(--ink-soft); }

/* hero photo collage */
.hero__gallery { position: relative; min-height: 440px; }
.hero__img {
  position: absolute; border-radius: var(--radius); box-shadow: var(--shadow);
  object-fit: cover; border: 5px solid var(--white);
  transition: scale .35s ease, box-shadow .35s ease;
}
.hero__img:hover { scale: 1.05; box-shadow: 0 26px 50px -18px rgba(63,45,20,.5); z-index: 6; }
.hero__img--1 { width: 66%; aspect-ratio: 3/4; top: 0; right: 4%; z-index: 2; rotate: 1.2deg;  animation: floaty 7s ease-in-out infinite; }
.hero__img--2 { width: 50%; aspect-ratio: 1/1; bottom: 2%; left: 0; z-index: 3; rotate: -1.6deg; animation: floaty 8.5s ease-in-out 1.2s infinite; }
.hero__img--3 { width: 42%; aspect-ratio: 1/1; top: 12%; left: 2%; z-index: 1; rotate: -.8deg;  animation: floaty 9.5s ease-in-out 2.1s infinite; }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -13px; }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { background: var(--green); color: var(--cream); padding: .9rem 0; overflow: hidden; }
.marquee__track { display: flex; gap: 1.5rem; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-size: 1.1rem; font-style: italic; }
.marquee__track span:nth-child(even) { color: var(--corn); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   NOSOTROS
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__media { position: relative; padding-bottom: 2rem; }
.about__img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  object-fit: cover; aspect-ratio: 4/3;
  transition: scale .45s ease, rotate .45s ease, box-shadow .45s ease;
}
.about__media:hover .about__img { scale: 1.02; rotate: -.7deg; box-shadow: 0 28px 55px -20px rgba(63,45,20,.5); }
.about__img--small {
  position: absolute; bottom: 0; left: -1.2rem; width: 46%; aspect-ratio: 4/3;
  border: 5px solid var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.about__badge {
  position: absolute; bottom: 1rem; left: 1rem;
  background: var(--white); border-radius: var(--radius); padding: 1rem 1.3rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: .7rem;
}
.about__badge strong { font-family: var(--font-head); font-size: 2.4rem; color: var(--terra); line-height: 1; }
.about__badge span { font-size: .8rem; color: var(--ink-soft); }
.about__text p { color: var(--ink-soft); margin-top: 1rem; }
.about__text h2 { margin-top: .3rem; }
.about__list { list-style: none; margin: 1.5rem 0; display: grid; gap: .6rem; }
.about__list li { font-weight: 500; }

/* ==========================================================================
   MENÚ
   ========================================================================== */
.menu { background: var(--cream-2); }
.menu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.menu__card {
  background: var(--white); border-radius: var(--radius-lg); padding: 1.8rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(63,45,20,.06);
  transition: transform .25s, box-shadow .25s;
}
.menu__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.menu__card--feature { grid-row: span 2; background: linear-gradient(180deg,#fff, #fffaf1); border-color: var(--corn); }
.menu__card-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 2px dotted var(--cream-2); }
.menu__card-head span { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--terra); font-weight: 600; }

.dishlist { list-style: none; display: grid; gap: 1rem; }
.dishlist li { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.dish { display: flex; flex-direction: column; }
.dish strong { font-weight: 600; font-size: .98rem; }
.dish em { font-style: normal; font-size: .82rem; color: var(--ink-soft); }
.dish em:empty { display: none; }
.tag { color: var(--corn); font-size: .8rem; }
.price { font-family: var(--font-head); font-weight: 600; color: var(--green); white-space: nowrap; }

.menu__card--note { display: flex; background: var(--green); color: var(--cream); align-items: center; text-align: center; }
.menu__note { width: 100%; }
.menu__note-ic { font-size: 2rem; }
.menu__note h3 { color: var(--white); margin: .4rem 0; }
.menu__note p { font-size: .9rem; opacity: .92; }
.menu__note-price { font-family: var(--font-head); font-size: 2.4rem; font-weight: 900; color: var(--corn); margin: .6rem 0 1rem; }
.menu__note-price span { font-family: var(--font-body); font-size: .8rem; opacity: .8; display: block; }

/* ==========================================================================
   GALERÍA
   ========================================================================== */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.gcard { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .4s; }
.gcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s; }
.gcard:hover { box-shadow: var(--shadow); }
.gcard:hover img { transform: scale(1.09) rotate(.6deg); filter: saturate(1.12) brightness(1.03); }
/* entrada escalonada al hacer scroll */
.gallery__grid .gcard:nth-child(1) { transition-delay: 0ms; }
.gallery__grid .gcard:nth-child(2) { transition-delay: 90ms; }
.gallery__grid .gcard:nth-child(3) { transition-delay: 180ms; }
.gallery__grid .gcard:nth-child(4) { transition-delay: 270ms; }
.gallery__grid .gcard:nth-child(5) { transition-delay: 360ms; }
.gallery__grid .gcard:nth-child(6) { transition-delay: 450ms; }
.gallery__grid .gcard.reveal:not(.is-visible) img { transform: scale(1.06); }
.gcard figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.4rem .9rem .8rem; color: #fff; font-size: .85rem; font-weight: 500;
  background: linear-gradient(to top, rgba(20,14,8,.8), transparent);
}
.gcard--big { grid-column: span 2; grid-row: span 2; }
.gcard--wide { grid-column: span 2; }

/* ==========================================================================
   EVENTOS
   ========================================================================== */
.events { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.events::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(230,181,60,.10) 1.4px, transparent 1.4px);
  background-size: 30px 30px;
}
.events__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.events__img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  object-fit: cover; aspect-ratio: 4/3; border: 5px solid var(--white);
  transition: scale .45s ease, rotate .45s ease;
}
.events__img:hover { scale: 1.025; rotate: .7deg; }
.events__text h2 { color: var(--white); }
.events__text p { color: rgba(253,246,236,.75); margin: 1rem 0 1.5rem; }
.events__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.4rem; margin-bottom: 2rem; }
.events__list li { padding-left: 1.4rem; position: relative; font-size: .92rem; }
.events__list li::before { content: "🌿"; position: absolute; left: 0; }
.events__list strong { color: var(--corn); font-weight: 600; }

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.testi__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testi__card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(63,45,20,.06); }
.stars { color: var(--corn); letter-spacing: 2px; margin-bottom: .8rem; }
.testi__card blockquote { font-family: var(--font-head); font-size: 1.15rem; font-style: italic; line-height: 1.4; }
.testi__card figcaption { margin-top: 1rem; font-weight: 600; color: var(--terra); font-size: .9rem; }

/* ==========================================================================
   UBICACIÓN
   ========================================================================== */
.location__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,3.5rem); align-items: center; }
.location__list { list-style: none; display: grid; gap: 1.3rem; margin: 1.5rem 0 2rem; }
.location__list li { display: flex; gap: 1rem; align-items: flex-start; }
.location__ic { font-size: 1.4rem; flex-shrink: 0; }
.location__list strong { font-family: var(--font-head); }
.location__list p { color: var(--ink-soft); font-size: .95rem; }
.location__list a { color: var(--green); font-weight: 600; }
.location__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--white); }
.location__map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact { background: var(--green); color: var(--cream); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.contact__intro h2 { color: var(--white); }
.contact__intro p { color: rgba(253,246,236,.8); margin-top: 1rem; }
.contact__social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.contact__social a { border: 1px solid rgba(253,246,236,.4); padding: .5rem 1.1rem; border-radius: 100px; font-size: .85rem; transition: .2s; }
.contact__social a:hover { background: var(--corn); border-color: var(--corn); color: var(--ink); }

.contact__form { background: var(--white); color: var(--ink); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .95rem; padding: .75rem .9rem;
  border: 1.5px solid var(--cream-2); border-radius: 12px; background: var(--cream);
  transition: border .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(106,154,59,.18);
}
.form__note { font-size: .85rem; margin-top: .8rem; text-align: center; min-height: 1.2em; color: var(--green); font-weight: 600; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: var(--cream); padding-top: 3.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand { display: flex; flex-direction: column; gap: .8rem; max-width: 320px; }
.footer__brand p { color: rgba(253,246,236,.65); font-size: .9rem; }
.footer h4 { font-family: var(--font-head); margin-bottom: 1rem; color: var(--corn); }
.footer__nav { display: flex; flex-direction: column; gap: .5rem; }
.footer__nav a { color: rgba(253,246,236,.8); font-size: .92rem; transition: .2s; }
.footer__nav a:hover { color: var(--corn); padding-left: 4px; }
.footer__contact p { color: rgba(253,246,236,.7); font-size: .9rem; margin-bottom: .5rem; }
.footer__contact a { color: var(--corn); }
.footer__bar {
  border-top: 1px solid rgba(253,246,236,.12); padding: 1.3rem 0; text-align: center;
  display: flex; flex-direction: column; gap: .3rem;
}
.footer__bar p { font-size: .8rem; color: rgba(253,246,236,.6); }
.footer__disclaimer { font-style: italic; opacity: .55; }

/* ==========================================================================
   REVEAL animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 940px) {
  .hero__inner, .about__grid, .events__grid, .location__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__gallery { min-height: 340px; max-width: 460px; margin-top: 1rem; }
  .menu__grid, .testi__grid { grid-template-columns: 1fr 1fr; }
  .menu__card--feature { grid-row: auto; }
  .about__media { max-width: 480px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gcard--big, .gcard--wide { grid-column: span 2; }
  .gcard--big { grid-row: span 1; }
  .events__media, .location__map { order: -1; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 62px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); padding: 1rem 1.25rem 1.5rem;
    box-shadow: var(--shadow); border-bottom: 1px solid rgba(63,45,20,.08);
    transform: translateY(-140%); transition: transform .35s ease; height: auto;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { width: 100%; padding: .8rem 0; border-bottom: 1px solid rgba(63,45,20,.07); }
  .nav__links a.btn { margin-top: .8rem; justify-content: center; }
  .nav__links .lang { margin: .9rem 0 0; align-self: flex-start; }
  .nav__toggle { display: flex; }
  .menu__grid, .testi__grid, .gallery__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-auto-rows: 220px; }
  .gcard--big, .gcard--wide { grid-column: auto; grid-row: auto; }
  .field-row, .events__list { grid-template-columns: 1fr; }
  .about__badge { right: 0; }
  .about__img--small { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
