:root {
  --bg: #faf6ee;
  --bg-alt: #f1ead9;
  --green: #2f4a3a;
  --green-dark: #22362a;
  --wood: #a36f45;
  --wood-dark: #8a5a34;
  --ink: #2b2621;
  --muted: #6d6257;
  --white: #ffffff;
  --wa: #25d366;
  --shadow: 0 12px 40px rgba(34, 54, 42, 0.14);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: rgba(250, 246, 238, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(34, 54, 42, 0.12);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.nav-brand strong { font-weight: 700; }
.nav.scrolled .nav-brand { color: var(--ink); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.nav-cta) {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}
.nav.scrolled .nav-links a:not(.nav-cta) { color: var(--ink); }
.nav-links a:not(.nav-cta):hover { opacity: 0.75; }
.nav-cta {
  background: var(--wa);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

.nav-toggle { display: none; }

/* ---------- Hero / Carrusel ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: kenburns 9s ease forwards;
}
.hero-slide.active img { animation: kenburns 9s ease forwards; }
@keyframes kenburns {
  from { transform: scale(1.06); }
  to { transform: scale(1.14); }
}
.hero-slides::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34, 54, 42, 0.45) 0%, rgba(34, 54, 42, 0.25) 45%, rgba(20, 28, 22, 0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  padding-top: 40px;
}
.hero-eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: #ffd9a0; }
.hero-sub {
  max-width: 520px;
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 34px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }
.btn-outline {
  border: 1.5px solid var(--green);
  color: var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-lg { padding: 18px 40px; font-size: 1.08rem; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero-dots {
  position: absolute;
  bottom: 90px; left: 0; right: 0;
  z-index: 6;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.hero-dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}
.hero-dots button.active { background: var(--white); transform: scale(1.25); }

.hero-scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: 26px; height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero-scroll span {
  width: 4px; height: 9px;
  border-radius: 999px;
  background: var(--white);
  animation: scroll 1.8s ease infinite;
}
@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Secciones generales ---------- */
.section { padding: 96px 24px; scroll-margin-top: 60px; }
.section.alt { background: var(--bg-alt); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wood-dark);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-dark);
  margin-bottom: 48px;
  max-width: 620px;
}

/* ---------- Sobre ---------- */
.sobre-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}
.sobre-text p { margin-bottom: 18px; color: var(--muted); font-size: 1.05rem; }
.sobre-facts {
  display: grid;
  gap: 18px;
}
.fact {
  background: var(--white);
  padding: 24px 30px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--wood);
}
.fact-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
}
.fact-label { color: var(--muted); font-size: 0.95rem; }

/* ---------- Servicios ---------- */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.servicio {
  background: var(--white);
  border-radius: 18px;
  padding: 36px 30px;
  color: var(--green);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.servicio:hover { transform: translateY(-6px); }
.servicio svg { margin-bottom: 20px; }
.servicio h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.servicio p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Galería ---------- */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
  height: 320px;
}
.galeria-large { height: 400px; }
.galeria-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.galeria-item:hover img { transform: scale(1.06); }

/* ---------- Ubicación ---------- */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.mapa {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 380px;
}
.mapa iframe { width: 100%; height: 100%; border: 0; }
.ubicacion-info h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.ubicacion-info p { color: var(--muted); margin-bottom: 20px; }
.ubicacion-list { margin-bottom: 28px; display: grid; gap: 10px; }
.ubicacion-list li { color: var(--muted); font-size: 0.98rem; }
.ubicacion-list strong { color: var(--green-dark); }

/* ---------- CTA final ---------- */
.cta { padding: 0; }
.cta-inner {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: var(--white);
  text-align: center;
  padding: 88px 24px;
}
.cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-inner p { max-width: 460px; margin: 0 auto 34px; opacity: 0.9; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 56px 24px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-wa {
  display: inline-block;
  margin-top: 12px;
  color: #ffd9a0;
  font-weight: 600;
}
.footer-note { margin-top: 24px; font-size: 0.85rem; opacity: 0.6; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--wa);
  color: var(--white);
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float svg { flex-shrink: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(18, 22, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 30px;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sobre-grid, .ubicacion-grid { grid-template-columns: 1fr; gap: 36px; }
  .galeria-grid { grid-template-columns: 1fr; }
  .galeria-item, .galeria-large { height: 300px; }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav-toggle span {
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  }
  .nav.scrolled .nav-toggle span { background: var(--ink); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding: 48px 40px;
    background: var(--green-dark);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a:not(.nav-cta) { color: var(--white) !important; font-size: 1.15rem; }
  .section { padding: 72px 20px; }
}