/* ==========================================================================
   Fonda Raíces — landing de demostración (Awolkie Tech)
   Tipografía: Fraunces (display) + Work Sans (texto)
   ========================================================================== */

:root {
  --accent: #E0742A;

  --cream: #FBF3E4;
  --cream-soft: #F3E6CC;
  --ink: #2B2118;
  --ink-soft: #5A4B3B;
  --olive: #5C6B3F;
  --terracotta: #B65C38;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(43, 33, 24, 0.12);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

.section__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.section__title {
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.section__lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 560px;
}

.section__head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

section {
  padding: 72px 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(224, 116, 42, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(224, 116, 42, 0.42);
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251, 243, 228, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 33, 24, 0.08);
  transition: box-shadow 0.2s ease;
}

.nav.is-scrolled {
  box-shadow: 0 6px 18px rgba(43, 33, 24, 0.08);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav__brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__menu a {
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav__menu a:hover {
  color: var(--accent);
}

.nav__cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__social {
  display: inline-flex;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav__social:hover {
  color: var(--accent);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__video.is-hidden {
  display: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(43, 33, 24, 0.55) 0%, rgba(43, 33, 24, 0.45) 45%, rgba(43, 33, 24, 0.85) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  color: var(--cream);
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cream-soft);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  color: var(--white);
  line-height: 1.02;
  margin-bottom: 18px;
}

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: var(--cream-soft);
  max-width: 480px;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__actions .btn--ghost {
  border-color: var(--cream);
  color: var(--cream);
}

.hero__actions .btn--ghost:hover {
  background: var(--cream);
  color: var(--ink);
}

/* ==========================================================================
   Menu
   ========================================================================== */

.menu {
  background: var(--cream);
}

.menu__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.dish {
  background: var(--white);
  border: 1px solid rgba(43, 33, 24, 0.08);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dish:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(224, 116, 42, 0.35);
}

.dish__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.dish__name {
  font-size: 1.2rem;
  font-weight: 600;
}

.dish__price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 1.15rem;
  white-space: nowrap;
}

.dish__desc {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  background: var(--cream-soft);
}

.about__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.about__text p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 600px;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--terracotta);
}

.stat__label {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ==========================================================================
   Essence (Visión y Misión)
   ========================================================================== */

.essence {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.essence__inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.essence__intro {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.essence__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.essence-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}

.essence-card__mark {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.essence-card__text {
  color: var(--ink-soft);
  line-height: 1.65;
}

.essence__values {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin: 28px auto 0;
}

.essence__values li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.essence__values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.seal {
  display: none;
}

@media (min-width: 900px) {
  .essence__inner {
    padding-right: 200px;
  }

  .essence__cards {
    grid-template-columns: 1fr 1fr;
  }

  .seal {
    display: block;
    position: absolute;
    top: 4px;
    right: -10px;
    width: 172px;
    height: 172px;
  }

  .seal__svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .seal__ring {
    fill: var(--cream-soft);
    stroke: var(--accent);
    stroke-width: 1.5;
  }

  .seal__center {
    fill: var(--white);
    stroke: var(--accent);
    stroke-width: 1;
  }

  .seal__text {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 9.5px;
    letter-spacing: 0.5px;
    fill: var(--terracotta);
  }

  .seal__leaf {
    font-size: 30px;
  }
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  background: var(--cream);
}

.gallery__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   Tour (Conoce el lugar)
   ========================================================================== */

.tour {
  background: var(--cream-soft);
}

.tour__banner {
  max-width: var(--container);
  margin: 0 auto 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 21 / 9;
  cursor: zoom-in;
}

.tour__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tour__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.tour__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tour__item:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 15, 10, 0.92);
  padding: 60px 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__figure {
  margin: 0;
  max-width: min(90vw, 1100px);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__figure figcaption {
  color: var(--cream-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(251, 243, 228, 0.12);
  color: var(--cream);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox__close:hover {
  background: rgba(251, 243, 228, 0.24);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(251, 243, 228, 0.12);
  color: var(--cream);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox__nav:hover {
  background: rgba(251, 243, 228, 0.24);
}

.lightbox__nav--prev {
  left: 12px;
}

.lightbox__nav--next {
  right: 12px;
}

@media (min-width: 640px) {
  .lightbox__nav--prev {
    left: 28px;
  }

  .lightbox__nav--next {
    right: 28px;
  }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
  background: var(--ink);
  color: var(--cream);
}

.testimonials .section__eyebrow {
  color: var(--accent);
}

.testimonials .section__title {
  color: var(--cream);
}

.testimonials__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.testimonial {
  background: rgba(251, 243, 228, 0.06);
  border: 1px solid rgba(251, 243, 228, 0.14);
  border-radius: var(--radius);
  padding: 26px;
}

.testimonial__stars {
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--cream);
}

.testimonial__author {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--cream-soft);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--cream-soft);
}

.contact__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.contact__lead {
  color: var(--ink-soft);
  margin-bottom: 26px;
  max-width: 480px;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}

.contact__label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--terracotta);
}

.contact__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact__ig {
  gap: 8px;
}

.contact__ig svg {
  flex-shrink: 0;
}

.contact__card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Formulario de reserva
   ========================================================================== */

.reserva-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reserva-form__eyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.reserva-form__title {
  font-size: 1.5rem;
  margin: 0;
}

.reserva-form__lead {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 6px;
}

.reserva-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  flex: 1;
}

.reserva-form__row {
  display: flex;
  gap: 14px;
}

.reserva-form__field--narrow {
  max-width: 110px;
}

.reserva-form__field input,
.reserva-form__field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(43, 33, 24, 0.14);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.reserva-form__field input:focus,
.reserva-form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 116, 42, 0.16);
}

.reserva-form__submit {
  margin-top: 6px;
  width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--ink);
  color: var(--cream-soft);
  padding: 56px 20px 30px;
  text-align: center;
}

.footer__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--white);
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--cream-soft);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(251, 243, 228, 0.65);
}

.footer__actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__cta {
  background: var(--accent);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer__ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(251, 243, 228, 0.3);
  color: var(--cream-soft);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.footer__ig:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer__legal {
  margin-top: 18px;
  font-size: 0.76rem;
  color: rgba(251, 243, 228, 0.4);
}

/* ==========================================================================
   Revelado al hacer scroll (GSAP ScrollTrigger)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 760px) {
  .nav__menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    box-shadow: 0 12px 24px rgba(43, 33, 24, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__menu a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(43, 33, 24, 0.08);
  }

  .nav__cta {
    text-align: center;
    margin-top: 12px;
  }

  .nav__toggle {
    display: flex;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .tour__grid {
    grid-template-columns: 1fr;
  }

  .tour__banner {
    aspect-ratio: 4 / 3;
  }

  .nav__social {
    justify-content: center;
  }

  .reserva-form__row {
    flex-direction: column;
  }

  .reserva-form__field--narrow {
    max-width: none;
  }
}

@media (min-width: 640px) {
  .menu__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 900px) {
  .menu__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__inner {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .contact__inner {
    grid-template-columns: 1fr 0.9fr;
  }

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

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

@media (min-width: 1024px) {
  section {
    padding: 100px 40px;
  }
}
