/* =========================================================
   El Solar – Cocina de Autor
   Tipografía: Cormorant Garamond (títulos) + DM Sans (texto)
   Paleta: amarillo solar, carbón, marfil y tierra
   ========================================================= */
:root {
  --yellow: #FFE21A;
  --yellow-dark: #E8C900;
  --charcoal: #171717;
  --charcoal-2: #221D18;
  --ivory: #F8F5ED;
  --cream: #F1EADB;
  --earth: #806044;
  --earth-light: #B89A7A;
  --text: #2A2520;
  --muted: #6B6158;
  --radius: 18px;
  --shadow: 0 18px 40px -20px rgba(23, 23, 23, .35);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--earth); }
p { margin: 0 0 1em; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.5em;
  border-radius: 999px;
  font: 600 14px/1 var(--sans);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1em 1.8em; font-size: 15px; }
.btn--yellow { background: var(--yellow); color: var(--charcoal); box-shadow: 0 10px 24px -12px rgba(232, 201, 0, .9); }
.btn--yellow:hover { background: #fff04f; }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
.btn--outline { border-color: var(--charcoal); color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: var(--ivory); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { background: rgba(23, 23, 23, .94); backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.header__inner {
  width: min(1240px, 100% - 40px); margin-inline: auto; height: 100%;
  display: flex; align-items: center; gap: 32px;
}
.header__logo { align-self: flex-start; flex-shrink: 0; }
.header__logo img {
  width: 116px; height: 116px; object-fit: cover;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.5);
  transition: width .3s ease, height .3s ease;
}
.header.is-scrolled .header__logo img { width: 84px; height: 84px; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 500;
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--yellow); transition: width .25s ease;
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--yellow); }
.nav__mobile-only { display: none; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff; background: var(--charcoal);
  padding: calc(var(--header-h) + 70px) 0 90px;
  min-height: 92vh; display: flex; align-items: center;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(23,23,23,.97) 0%, rgba(23,23,23,.88) 42%, rgba(23,23,23,.55) 100%),
    url("img/hero-barril.jpg") center/cover no-repeat;
  transform: scale(1.04);
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(46px, 6.4vw, 84px); margin: 18px 0 24px; }
.hero h1 em { color: var(--yellow); }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.85); max-width: 32em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero__plate {
  margin: 0; justify-self: end;
  width: min(420px, 100%); aspect-ratio: 4 / 5;
  border-radius: 220px 220px var(--radius) var(--radius);
  overflow: hidden;
  border: 6px solid rgba(255, 226, 26, .9);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.8);
}
.hero__plate img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  margin: 0;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--earth-light); }
.status.is-open .status__dot { background: #5BD47A; box-shadow: 0 0 0 4px rgba(91,212,122,.2); }

/* ---------- Franja de valores ---------- */
.values { background: var(--charcoal-2); color: #fff; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.06); }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value { display: flex; align-items: center; gap: 16px; justify-content: center; padding: 6px 20px; }
.value + .value { border-left: 1px solid rgba(255,255,255,.14); }
.value svg { width: 38px; height: 38px; color: var(--yellow); flex-shrink: 0; stroke-width: 1.3; }
.value p { margin: 0; font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.4; }
.value strong { display: block; color: #fff; font-weight: 600; font-size: 15px; }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--ivory { background: var(--ivory); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--charcoal); color: #fff; }
.section--dark h2 em { color: var(--yellow); }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section__head--split .section__sub { max-width: 380px; margin: 0; }
.section h2 { font-size: clamp(38px, 4.6vw, 58px); }
.section__sub { font-size: 17px; color: var(--muted); margin-top: 18px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; color: var(--earth);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--yellow-dark); }
.eyebrow--light { color: var(--yellow); }
.eyebrow--light::before { background: var(--yellow); }

/* ---------- Momentos ---------- */
.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.moment {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4.3; color: #fff; box-shadow: var(--shadow);
}
.moment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.moment:hover img { transform: scale(1.06); }
.moment::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,23,23,0) 35%, rgba(23,23,23,.88) 100%);
}
.moment__body { position: absolute; inset: auto 0 0; padding: 22px; z-index: 1; }
.moment__time {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--yellow); color: var(--charcoal); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.moment h3 { font-size: 30px; margin-bottom: 6px; }
.moment p { font-size: 14px; color: rgba(255,255,255,.85); margin: 0; line-height: 1.45; }

/* ---------- Menú ---------- */
.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dish { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dish__img { aspect-ratio: 4 / 3; overflow: hidden; }
.dish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dish:hover .dish__img img { transform: scale(1.05); }
.dish__body { padding: 22px 24px 26px; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--earth); }
.dish h3 { font-size: 28px; margin: 8px 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price { font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--charcoal); white-space: nowrap; }
.dish p { font-size: 14.5px; color: var(--muted); margin: 0; }

.carta {
  margin-top: 56px; padding: 48px clamp(24px, 4vw, 56px);
  background: var(--charcoal); color: #fff; border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 64px;
}
.carta__title {
  font-size: 26px; font-style: italic; color: var(--yellow);
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.carta__col ul + .carta__title { margin-top: 32px; }
.carta ul { list-style: none; margin: 0; padding: 0; }
.carta li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.carta__name { font-weight: 600; font-size: 16px; }
.carta__dots { border-bottom: 1px dotted rgba(255,255,255,.3); transform: translateY(-4px); }
.carta__price { font-weight: 700; color: var(--yellow); }
.carta li p { grid-column: 1 / -1; margin: 2px 0 0; font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.5; }
.menu__cta { text-align: center; margin-top: 40px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }
.fine a { color: var(--earth); font-weight: 600; }

/* ---------- Guarapo ---------- */
.guarapo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.guarapo__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.guarapo__imgs figure { margin: 0; }
.guarapo__imgs figure:first-child { margin-top: 60px; }
.guarapo__imgs img { border-radius: var(--radius); aspect-ratio: 3 / 4.2; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.flavors { list-style: none; padding: 0; margin: 28px 0 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.flavors li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; background: #fff;
  font-size: 14.5px; font-weight: 500; box-shadow: 0 6px 16px -10px rgba(23,23,23,.4);
}

/* ---------- Banda de sabor ---------- */
.flavor { position: relative; overflow: hidden; color: #fff; padding: clamp(90px, 12vw, 150px) 0; text-align: center; }
.flavor__bg {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(23,23,23,.78), rgba(23,23,23,.82)), url("img/bowl2.jpg") center/cover fixed no-repeat;
}
.flavor__inner { position: relative; max-width: 760px; }
.flavor h2 { font-size: clamp(44px, 6vw, 78px); margin-bottom: 22px; }
.flavor h2 em { color: var(--yellow); }
.flavor p { font-size: 18px; color: rgba(255,255,255,.85); }

/* ---------- Historia ---------- */
.story__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.story__img { margin: 0; position: relative; isolation: isolate; }
.story__img img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.story__img::before {
  content: ""; position: absolute; inset: -18px 18px 18px -18px;
  border: 2px solid var(--yellow-dark); border-radius: var(--radius); z-index: -1;
}
.story__img figcaption { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--earth); margin-top: 14px; }
.story__text h2 { margin-bottom: 26px; }
.story__text p { color: var(--muted); font-size: 16.5px; }
.story__text strong { color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 34px 0 0; padding-top: 28px; border-top: 1px solid rgba(128,96,68,.25); }
.facts dt { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--charcoal); }
.facts dd { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Domicilios ---------- */
.delivery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.delivery__text p { color: rgba(255,255,255,.78); font-size: 17px; margin-top: 22px; }
.checks { list-style: none; padding: 0; margin: 26px 0 34px; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--yellow); color: var(--charcoal);
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.delivery__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.delivery__imgs figure { margin: 0; }
.delivery__imgs figure:last-child { margin-top: 60px; }
.delivery__imgs img { border-radius: var(--radius); aspect-ratio: 3 / 4.2; object-fit: cover; width: 100%; }
.delivery__imgs figcaption { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--yellow); margin-top: 10px; }

/* ---------- Visítanos ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.info { list-style: none; padding: 0; margin: 32px 0; }
.info li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.info svg { color: var(--earth); flex-shrink: 0; margin-top: 2px; }
.info strong { display: block; font-weight: 600; }
.info strong a { text-decoration: none; }
.info span { color: var(--muted); font-size: 14.5px; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__media { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.visit__photo { margin: 0; }
.visit__photo img, .visit__map { border-radius: var(--radius); height: 440px; width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.visit__map { overflow: hidden; background: var(--cream); }
.visit__map iframe { border: 0; width: 100%; height: 100%; filter: grayscale(.35) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: #000; color: rgba(255,255,255,.75); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: auto 1fr auto auto; gap: 48px; align-items: center; }
.footer__logo { width: 120px; height: 120px; border-radius: 14px; }
.footer__col p { margin: 0 0 6px; font-size: 14.5px; }
.footer__col a { color: var(--yellow); text-decoration: none; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); color: #fff; transition: background .2s, color .2s;
}
.footer__social a:hover { background: var(--yellow); color: var(--charcoal); border-color: var(--yellow); }
.footer__social svg { width: 20px; height: 20px; }
.footer__sign { font-family: var(--serif); font-style: italic; font-size: 28px; color: #fff; margin: 0; transform: rotate(-4deg); }
.footer__sign em { color: var(--yellow); }
.footer__legal { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.4); margin: 44px 0 0; }

/* ---------- Barra móvil ---------- */
.mobilebar { display: none; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .moments { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .header { background: rgba(23,23,23,.96); }
  .header__logo img, .header.is-scrolled .header__logo img { width: 76px; height: 76px; }
  .header__cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
  .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); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    flex-direction: column; gap: 0; padding: 12px 24px 24px;
    background: var(--charcoal); border-top: 1px solid rgba(255,255,255,.08);
    transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a::after { display: none; }
  .nav__mobile-only { display: block; color: var(--yellow) !important; }

  .hero { min-height: auto; padding: calc(var(--header-h) + 48px) 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__plate { justify-self: center; width: min(320px, 80%); }
  .values__grid { grid-template-columns: 1fr; gap: 14px; }
  .value { justify-content: flex-start; padding: 4px 0; }
  .value + .value { border-left: 0; }

  .section__head--split { flex-direction: column; align-items: start; gap: 0; }
  .section__head--split .section__sub { margin-top: 18px; }
  .featured { grid-template-columns: 1fr; }
  .carta { grid-template-columns: 1fr; }
  .flavor__bg { background-attachment: scroll; }
  .story__grid, .delivery, .visit, .guarapo__grid { grid-template-columns: 1fr; }
  .guarapo__imgs { order: 2; }
  .story__img { max-width: 440px; }
  .delivery__imgs figure:last-child { margin-top: 36px; }
  .visit__photo img, .visit__map { height: 320px; }

  .footer { padding-bottom: 100px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; text-align: center; justify-items: center; }

  .mobilebar {
    display: flex; gap: 10px; position: fixed; z-index: 60;
    left: 12px; right: 12px; bottom: 12px; padding: 8px;
    background: rgba(23,23,23,.96); border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
  }
  .mobilebar a {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff; flex-shrink: 0;
  }
  .mobilebar a svg { width: 22px; height: 22px; }
  .mobilebar .mobilebar__main {
    flex: 1; width: auto; border-radius: 999px; background: var(--yellow); color: var(--charcoal);
    font-weight: 700; font-size: 15px; text-decoration: none;
  }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .moments { grid-template-columns: 1fr; }
  .moment { aspect-ratio: 4 / 3.6; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .facts dt { font-size: 38px; }
  .visit__media { grid-template-columns: 1fr; }
  .visit__actions .btn { width: 100%; justify-content: center; }
}

/* Ajustes de encuadre */
.guarapo__imgs figure:last-child img { object-position: center 85%; }
