/* =========================================================
   Termas de Federación — hoja de estilos
   ========================================================= */

:root {
  --color-primary: #0f8b8d;
  --color-primary-dark: #0b6b6d;
  --color-primary-light: #e6f5f4;
  --color-accent: #f2a71b;
  --color-accent-dark: #d38e0c;
  --color-ink: #1c2b2b;
  --color-ink-soft: #4b5f5f;
  --color-bg: #fbfaf6;
  --color-surface: #ffffff;
  --color-border: #e4e0d6;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(15, 60, 60, 0.08);
  --shadow-hover: 0 16px 40px rgba(15, 60, 60, 0.14);
  --max-width: 1180px;
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--color-primary-dark);
}

h2.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: .3em;
}

p.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--color-ink-soft);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  background: #fff3de;
  padding: .35em .9em;
  border-radius: 999px;
  margin-bottom: 1em;
}

section { padding: 5rem 0; }
section.tight { padding: 3.5rem 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #2b1b02;
  box-shadow: 0 8px 20px rgba(242, 167, 27, .35);
}
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.btn-ghost {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.btn-ghost:hover { background: #d7efee; }
.btn-sm { padding: .55em 1.1em; font-size: .82rem; }
.btn-wp {
  background: #25D366;
  color: #fff;
}
.btn-wp:hover { background: #1eb857; transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.site-header.scrolled {
  background: rgba(251, 250, 246, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(15,60,60,.08);
  padding: 8px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  flex: none;
  transition: color .25s ease;
}
.site-header.scrolled .brand { color: var(--color-primary-dark); }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  color: #2b1b02;
  font-weight: 800;
  font-family: var(--font-body);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 1.7rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
  opacity: .92;
  position: relative;
  padding-bottom: 4px;
  transition: opacity .2s ease, color .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
  transition: right .2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { right: 0; }
.site-header.scrolled .nav-links a { color: var(--color-ink); }
.nav-cta { display: flex; align-items: center; gap: 1rem; flex: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 4px;
}
.site-header.scrolled .nav-toggle { color: var(--color-ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-slides {
  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;
}
.hero-slide.active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,40,42,.55) 0%, rgba(10,40,42,.45) 45%, rgba(8,30,32,.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 90px;
}
.hero-content .eyebrow { background: rgba(255,255,255,.15); color: #fff; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  margin-bottom: .35em;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.92);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 760px;
  backdrop-filter: blur(4px);
}
.hero-stat {
  background: rgba(10,40,42,.35);
  padding: 1.1rem 1rem;
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent);
}
.hero-stat span { font-size: .78rem; opacity: .85; }

/* ---------- Intro / About ---------- */
.about {
  background: var(--color-surface);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-gallery img {
  border-radius: var(--radius-md);
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.about-gallery .tall { grid-row: span 2; height: 100%; aspect-ratio: 3/4.4; }
.about-gallery .short { aspect-ratio: 4/3; }
.about-text h2 { text-align: left; }
.about-text p { color: var(--color-ink-soft); margin-bottom: 1.1em; }
.about-facts {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: .8rem;
}
.about-facts li {
  display: flex;
  gap: .8em;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--color-ink);
}
.about-facts .ico {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
}

/* ---------- Park / Termas features ---------- */
.park {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-card .ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: .4em; }
.feature-card p { color: var(--color-ink-soft); font-size: .92rem; margin: 0; }

/* ---------- Gallery (Parque Termal) ---------- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 2.5rem;
}
.gallery-strip .g-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
}
.gallery-strip .g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.gallery-strip .g-item:hover img { transform: scale(1.08); }
.gallery-strip .g-item.wide { grid-column: span 2; grid-row: span 2; }

/* ---------- Alojamientos ---------- */
.stays { background: var(--color-surface); }
.stays-toolbar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  margin-bottom: 2rem;
}
.search-box {
  flex: 1 1 260px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: .85em 1em .85em 2.6em;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: .95rem;
  font-family: var(--font-body);
  background: #fff;
}
.search-box input:focus { outline: 2px solid var(--color-primary); }
.search-box .icon {
  position: absolute; left: 1em; top: 50%; transform: translateY(-50%);
  color: var(--color-ink-soft);
}
.filter-chips {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--color-border);
  background: #fff;
  padding: .5em 1.1em;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-ink-soft);
  transition: all .15s ease;
}
.chip:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.results-meta {
  font-size: .9rem;
  color: var(--color-ink-soft);
  margin-bottom: 1.2rem;
}
.results-meta strong { color: var(--color-primary-dark); }

.stays-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.stay-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.stay-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stay-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .6rem;
}
.stay-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: .35em .8em;
  border-radius: 999px;
  white-space: nowrap;
}
.stay-stars { color: var(--color-accent-dark); font-size: .85rem; white-space: nowrap; }
.stay-card h3 { font-size: 1.15rem; margin-bottom: .35em; }
.stay-addr {
  display: flex;
  gap: .5em;
  font-size: .88rem;
  color: var(--color-ink-soft);
  margin-bottom: .5rem;
}
.stay-addr svg { flex: none; margin-top: .15em; }
.stay-web {
  display: flex;
  gap: .5em;
  align-items: center;
  font-size: .88rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}
.stay-web svg { flex: none; color: var(--color-ink-soft); }
.stay-web a {
  text-decoration: none;
  color: var(--color-primary-dark);
  font-weight: 600;
  word-break: break-all;
}
.stay-web a:hover { text-decoration: underline; }
.stay-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding-top: .8rem;
  border-top: 1px dashed var(--color-border);
}
.stay-actions a {
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4em;
}
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-ink-soft);
  display: none;
}
.no-results.show { display: block; }
.load-more-wrap { text-align: center; margin-top: 2.5rem; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 2.5rem auto 0;
  display: grid;
  gap: 1rem;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent-dark);
  flex: none;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: .8rem 0 0;
  color: var(--color-ink-soft);
  font-size: .95rem;
}

/* Tarjetas ocultas por el buscador/filtro (progressive enhancement:
   sin JS, todas las tarjetas quedan visibles) */
.stay-card.is-hidden { display: none; }

/* ---------- Map ---------- */
.map-section { background: var(--color-primary-light); }
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}
.map-wrap iframe { width: 100%; height: 460px; border: 0; display: block; }
.map-note {
  text-align: center;
  font-size: .88rem;
  color: var(--color-ink-soft);
  margin-top: 1rem;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 3.5rem 2rem;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); max-width: 520px; margin: 0 auto 1.8rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: #0b2a2b;
  color: rgba(255,255,255,.75);
  padding: 3.5rem 0 1.5rem;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .brand { color: #fff; margin-bottom: .8rem; }
.footer-brand p { font-size: .9rem; max-width: 320px; }
footer h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.1rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: .92rem; }
footer a { text-decoration: none; color: inherit; }
footer a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  font-size: .82rem;
}
.social-row { display: flex; gap: .8rem; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--color-primary); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,20,20,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(90vw, 1000px); max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.8rem;
  background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}
.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 90;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px; left: 24px;
  background: #25D366;
  color: #fff;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 90;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
/* El menú completo (6 links + logo + botón) necesita bastante ancho;
   pasamos a menú hamburguesa antes de que llegue a apretarse o partir
   los textos en dos líneas. */
@media (max-width: 1240px) {
  .site-header nav, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stays-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .gallery-strip .g-item.wide { grid-column: span 1; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .stays-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .about-gallery { grid-template-columns: 1fr 1fr; }
  section { padding: 3.5rem 0; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-primary-dark);
  z-index: 99;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
  font-family: var(--font-heading);
}
.mobile-nav-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
}
