/* ============================================================
   LAYOUT – Secciones de página, grid, nav, hero, footer
   Breakpoints: mobile-first → tablet (768px) → desktop (1024px)
============================================================ */

/* ── PÁGINAS SPA ── */
[data-page] { display: none; }

/* ── NAV ── */
.nav {
  background: rgba(2, 20, 4, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
  padding: 0 var(--space-lg);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease;
}
.nav.scrolled {
  background: rgba(3, 20, 2, 0.82);
}

.nav__brand {
  flex: 1;
  min-width: 0;
}

.nav__logo {
  display: flex;
  align-items: center;
  justify-content: left;
  text-decoration: none;
  line-height: 1;
}

.nav__logo img {
  height: 180px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav__logo-title {
  font-family: var(--font-display);
  color: var(--color-caramel);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.nav__logo-subtitle {
  font-family: var(--font-body);
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1;
}
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-caramel);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* Menú desplegable móvil */
.nav__menu {
  position: fixed;
  top: 0; right: -100%;
  width: 78%;
  max-width: 700px;
  height: 100vh;
  background: var(--color-cacao);
  z-index: 200;
  padding: 90px var(--space-xl) var(--space-xl);
  transition: right var(--transition-slow);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav__menu.open { right: 0; }

.nav__links {
  display: flex;
  flex-direction: row;
  gap: var(--space-md);
  flex-wrap: wrap;
}


/* Links del menú móvil */
.nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
  width: 100%;
  transition: color 0.2s, padding-left 0.2s;
}
.nav__link:hover {
  color: var(--color-caramel);
  padding-left: 6px;
}
.nav__link::after {
  content: '›';
  font-size: 20px;
  color: var(--color-caramel);
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s;
}
.nav__link:hover::after { opacity: 1; }
.nav__close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 24px;
  color: rgba(255,255,255,0.6);
  background: none;
  border: none;
}

.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: 150;
}
.nav__overlay.visible { display: block; }

/* Desktop nav */
@media (min-width: 768px) {
  .nav {
    padding: 0 var(--space-2xl);
    height: 75px;
  }

  .nav__hamburger { display: none; }
  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
  }

  .nav__links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
  }

  /* Links en desktop: texto limpio con subrayado dorado al hover */
  .nav__link {
    display: inline-block;
    width: auto;
    padding: 4px 0;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.4px;
    border-bottom: none;
    position: relative;
  }
  .nav__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1.5px;
    background: var(--color-caramel);
    transition: width 0.25s ease;
    opacity: 1;
    font-size: 0;
    margin-left: 0;
  }
  .nav__link:hover {
    color: var(--color-caramel);
    padding-left: 0;
  }
  .nav__link:hover::after { width: 100%; }
  .nav__link--active {
    color: var(--color-caramel);
  }
  .nav__link--active::after { width: 100%; }
  .nav__close { display: none; }
}

/* ── HERO: compensar nav fijo ── */

/* ── HERO ── */
.hero {
  background: var(--color-cacao);
  padding: calc(70px + var(--space-2xl)) var(--space-lg) 56px;
  position: relative;
  overflow: hidden;
}

/* Slides de fondo */
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero__slide.active { opacity: 1; }

/* Overlay oscuro para que el texto se lea bien */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(30,12,4,0.35) 0%,
    rgba(20,8,2,0.20) 50%,
    rgba(30,12,4,0.45) 100%
  );
}

/* Todo lo demás va sobre el overlay */
.hero > *:not(.hero__slideshow):not(.hero__overlay) {
  position: relative;
  z-index: 2;
}

.hero__deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
.hero__deco--lg {
  width: 260px; height: 260px;
  right: -60px; bottom: -50px;
  background: rgba(200,131,42,0.07);
  border: 1px solid rgba(200,131,42,0.1);
}
.hero__deco--sm {
  width: 130px; height: 130px;
  right: 60px; bottom: 40px;
  background: rgba(200,131,42,0.05);
}
.hero__badge { margin-bottom: var(--space-lg); }
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}
.hero__title em { color: var(--color-caramel); font-style: italic; }
.hero__subtitle {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  font-weight: 300;
  max-width: 500px;
}
.hero__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.hero__scroll-hint {
  margin-top: var(--space-xl);
  text-align: center;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  animation: bounceY 2s infinite;
}

@media (min-width: 768px) {
  .hero { padding: calc(75px + 60px) var(--space-2xl) 80px; }
  .hero__title { font-size: var(--text-3xl); }
}

/* ── STATS ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
}
.stats-row__item {
  background: var(--color-surface);
  padding: 20px var(--space-md);
  text-align: center;
}
.stats-row__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-chocolate);
  font-weight: 700;
}
.stats-row__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
}

/* ── SECTION WRAPPER ── */
.section {
  padding: var(--space-xl) var(--space-lg);
}
.section--dark {
  background: var(--color-cacao);
}
.section--dark .tag-label  { color: var(--color-caramel); }
.section--dark .section-title { color: #fff; }

@media (min-width: 1024px) {
  .section { padding: 60px var(--space-2xl); }
}

/* ── SCROLL HORIZONTAL (productos / testimonios) ── */
.scroll-row {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
  margin-top: var(--space-lg);
}
.scroll-row::-webkit-scrollbar { display: none; }

/* Desktop: wrap en grid */
@media (min-width: 1024px) {
  .scroll-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    overflow-x: visible;
  }
}

/* ── MAP CTA ── */
.map-cta {
  background: var(--color-leaf);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: 0 var(--space-lg) var(--space-xl);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.map-cta__icon { font-size: 30px; flex-shrink: 0; }
.map-cta__title { color: #fff; font-size: var(--text-base); font-weight: 500; margin-bottom: 4px; }
.map-cta__desc  { color: rgba(255,255,255,0.7); font-size: 13px; line-height: 1.55; }

/* ── CONTACTO / RESERVA ── */
.contact-section {
  background: var(--color-surface);
  padding: var(--space-xl) var(--space-lg);
  border-top: 0.5px solid var(--color-border);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}
.form-success.visible { display: block; }
.form-success__icon { font-size: 48px; margin-bottom: var(--space-md); }
.form-success__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-cacao);
  margin-bottom: var(--space-sm);
}
.form-success__desc { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ── FOOTER ── */
.footer {
  background: var(--color-cacao);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}
.footer__logo {
  margin-bottom: 4px;
}
.footer__logo-img {
  height: 256px;
  width: auto;
  object-fit: contain;
}
.footer__tagline {
  color: rgba(255,255,255,0.45);
  font-size: var(--text-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--color-caramel); }
.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.footer__social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}
.footer__social-btn:hover {
  border-color: var(--color-caramel);
  color: var(--color-caramel);
}
.footer__bottom {
  border-top: 0.5px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}

@media (min-width: 768px) {
  .footer { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .footer__bottom { grid-column: 1 / -1; }
}
