/* =========================================================
   Catapilcana Vegana — stylesheet
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }
body.lightbox-open,
body.nav-open { overflow: hidden; }
body.lightbox-open .side-rail,
body.lightbox-open .fab-whatsapp,
body.nav-open .fab-whatsapp { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Design tokens ---------- */
:root {
  --green: #016B01;
  --green-dark: #0D4F0D;
  --green-light: #e7f1e4;
  --orange: #EC6013;
  --purple: #863576;
  --blue: #5E8BC4;
  --gold: #96662B;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  --text: #23291f;
  --text-muted: #54595F;
  --bg: #ffffff;
  --bg-soft: #F4F5F0;
  --bg-dark: #14210f;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(20, 30, 15, 0.08);
  --shadow: 0 12px 30px rgba(20, 30, 15, 0.14);
  --shadow-lg: 0 20px 45px rgba(20, 30, 15, 0.22);

  --container: 1180px;
  --header-h: 128px;

  --font: "Montserrat", sans-serif;
}

body {
  font-family: var(--font);
  color: var(--text-muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

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

.section {
  padding: 72px 0;
}

.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--green);
  font-weight: 800;
}

.section-title strong { color: var(--gold); font-weight: 800; }

.section-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 640px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }

.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b9843f; }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-outline {
  background: transparent;
  color: var(--green);
  box-shadow: inset 0 0 0 2px var(--green);
}
.btn-outline:hover { background: var(--green); color: #fff; }

.btn-lg { padding: 20px 44px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.topbar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.topbar a { color: var(--text-muted); }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }

/* ---------- Nav ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: radial-gradient(circle at 50% 0%, var(--green) 45%, var(--green-dark) 100%);
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
.brand img { height: 34px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-menu a {
  display: block;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-menu a:hover { background: rgba(255,255,255,0.15); }
.nav-menu a.active { background: #fff; color: var(--green); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  color: #fff;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

/* Lives inside .navbar: the sticky navbar is its own stacking context, so the
   backdrop must share it to sit between the bar and the drawer. */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 6, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 605;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

/* Contact card inside the mobile drawer (replaces the topbar) */
.nav-info { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; z-index: 620; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 320px);
    height: 100vh;
    height: 100dvh;
    background: var(--green-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 110px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -12px 0 32px rgba(0,0,0,0.3);
    z-index: 610;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { border-radius: 0; padding: 20px 28px; font-size: 1.05rem; }
  .nav-menu a.active { background: rgba(255,255,255,0.12); color: #fff; }

  .nav-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: auto 20px 24px;
    padding: 20px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
  }
  .nav-menu .nav-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.4;
    color: rgba(255,255,255,0.85);
    word-break: break-word;
  }
  .nav-menu .nav-info-item:hover { background: none; color: #fff; }
  .nav-info-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

  .topbar { display: none; }
}

/* ---------- Floating WhatsApp button (all breakpoints) ---------- */
.fab-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 600;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 30px; height: 30px; }

/* ---------- Floating side rail (desktop) ---------- */
.side-rail {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-rail a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.side-rail a:hover { transform: scale(1.1); }
.side-rail a svg { width: 20px; height: 20px; }
.side-rail .ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.side-rail .wa { background: var(--whatsapp); }
.side-rail .loc { background: var(--orange); }

@media (max-width: 860px) { .side-rail { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(244,245,240,0.65), rgba(244,245,240,0.95)), url("../img/fondo-2.jpg");
  background-size: cover;
  background-position: center;
  padding: 56px 0 48px;
  text-align: center;
}
.hero-logo { width: 220px; margin: 0 auto 8px; }
.hero-title { width: min(560px, 80%); margin: 0 auto; }
.hero-subtitle { width: min(340px, 60%); margin: 10px auto 18px; }
.hero-tagline {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Carousel ---------- */
.carousel-wrap { position: relative; max-width: 900px; margin: 0 auto; }
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 16px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel img {
  scroll-snap-align: center;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.carousel img:hover { transform: translateY(-4px); }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn.prev { left: -6px; }
.carousel-btn.next { right: -6px; }
@media (max-width: 640px) { .carousel-btn { display: none; } }

/* ---------- About / Plant Based ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-badge { width: 130px; margin-bottom: 24px; }
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; text-align: center; }
  .about-badge { margin-left: auto; margin-right: auto; }
  .about-photo { max-width: 380px; margin: 0 auto; }
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  text-align: center;
  padding: 8px;
}
.feature-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.feature-icon svg { width: 30px; height: 30px; }
.feature h2 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { font-size: 0.88rem; line-height: 1.5; }

@media (max-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(1,107,1,0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover::after { opacity: 1; }

@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(10, 16, 8, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(900px, 92vw);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

/* ---------- Menu CTA ---------- */
.menu-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.menu-cta-bottle {
  width: 130px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 20px 25px rgba(0,0,0,0.18));
}
.menu-cta .btn { margin-top: 20px; }

/* ---------- Reserve CTA ---------- */
.reserve-cta { text-align: center; }
.reserve-cta .btn { margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 4px 24px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 20px; line-height: 1.7; }

/* ---------- Delivery dark section ---------- */
.delivery {
  background: radial-gradient(circle at 50% 0%, #1c3016, var(--bg-dark) 80%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.delivery h2 { color: #fff; font-size: 1.7rem; margin-bottom: 24px; }
.delivery-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.delivery-badges a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--text);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.delivery-badges a:hover { transform: translateY(-4px); }
.delivery-badges img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }

/* ---------- Footer cards ---------- */
.footer-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -56px;
  position: relative;
  z-index: 2;
}
.fcard {
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}
.fcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.fcard-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fcard-icon svg { width: 26px; height: 26px; }
.fcard h3 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.fcard p, .fcard a { color: rgba(255,255,255,0.92); font-size: 0.9rem; line-height: 1.6; }
.fcard--green { background: linear-gradient(160deg, var(--green), var(--green-dark)); }
.fcard--orange { background: linear-gradient(160deg, #f0783a, var(--orange)); }
.fcard--purple { background: linear-gradient(160deg, #9c4a8c, var(--purple)); }
.fcard--blue { background: linear-gradient(160deg, #7ba3d6, var(--blue)); }

@media (max-width: 900px) {
  .footer-cards { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
}
@media (max-width: 560px) {
  .footer-cards { grid-template-columns: 1fr; }
}

footer {
  background: var(--bg-soft);
  padding-top: 120px;
}
.footer-bottom {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 30px 0 20px;
  margin-top: 56px;
  font-size: 0.85rem;
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.8rem;
  opacity: 0.45;
  transition: opacity 0.25s ease;
}
.footer-bottom a:hover,
.footer-bottom a:focus-visible { opacity: 1; }
.footer-bottom svg { width: 16px; height: 16px; }

@media (max-width: 900px) { footer { padding-top: 90px; } }

/* ---------- Simple content card (Reserva / Contacto pages) ---------- */
.page-hero {
  background: var(--bg-soft);
  padding: 56px 0 72px;
  text-align: center;
}
.page-hero h1 { color: var(--green); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.page-hero p { max-width: 560px; margin: 12px auto 0; font-size: 1rem; line-height: 1.7; }

.cta-card {
  max-width: 640px;
  margin: -40px auto 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.cta-card h2 { color: var(--green); font-size: 1.4rem; margin-bottom: 10px; }
.cta-card p { margin-bottom: 28px; line-height: 1.7; }
.cta-card .btn { width: 100%; max-width: 380px; }
.cta-card .contact-alt {
  margin-top: 22px;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cta-card .contact-alt a { color: var(--green); font-weight: 600; }

.map-embed {
  max-width: 900px;
  margin: 40px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- PDF viewer (Carta) ---------- */
.pdf-toolbar {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.pdf-viewer {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #2c2c2c;
}
.pdf-viewer iframe {
  width: 100%;
  height: 82vh;
  min-height: 520px;
  border: 0;
  display: block;
}
@media (max-width: 640px) {
  .pdf-viewer iframe { height: 70vh; }
}

/* ---------- Full text menu (SEO / AI-readable) ---------- */
.menu-text { max-width: 880px; margin: 0 auto; }
.menu-note { text-align: center; margin: -8px auto 8px; font-size: 0.85rem; }

.menu-group {
  background: var(--bg-soft);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.menu-group summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--green);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.menu-group summary::-webkit-details-marker { display: none; }
.menu-group summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.menu-group[open] summary::after { transform: rotate(45deg); }
.menu-group .menu-body { padding: 0 24px 24px; }

.menu-subhead {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 20px 0 10px;
}
.menu-subhead:first-child { margin-top: 0; }
.menu-caption { font-size: 0.85rem; font-style: italic; margin-bottom: 12px; }

.menu-list { display: flex; flex-direction: column; }
.menu-item {
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.menu-item:last-child { border-bottom: none; }
.menu-item .name { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.menu-item .desc { display: block; font-size: 0.8rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }
