/* =============================================
   TERMAS DE OURENSE — Estilos principales
   ============================================= */

/* --- Variables --- */
:root {
  --stone-dark:   #1c1a17;
  --stone:        #2e2b26;
  --stone-mid:    #4a453c;
  --stone-light:  #8a8070;
  --stone-pale:   #c8bfb0;
  --cream:        #f5f0e8;
  --cream-warm:   #ede5d5;
  --water-deep:   #2d4a52;
  --water-mid:    #3d6b76;
  --water-light:  #6fa3ad;
  --water-pale:   #a8cdd3;
  --gold:         #a08050;
  --gold-light:   #c9a96e;
  --steam:        rgba(255,255,255,0.06);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Lato', 'Helvetica Neue', sans-serif;

  --max-width: 1200px;
  --section-pad: clamp(80px, 10vw, 140px);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--stone-dark);
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* =============================================
   NAVEGACIÓN
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(28, 26, 23, 0.94);
  backdrop-filter: blur(12px);
  padding: 16px 48px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.nav__links {
  list-style: none;
  display: flex;
  gap: 40px;
}
.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.75);
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--gold-light); }
.nav__private {
  color: rgba(245,240,232,0.3) !important;
  border: 1px solid rgba(245,240,232,0.15);
  padding: 6px 14px;
}
.nav__private:hover {
  color: var(--gold-light) !important;
  border-color: rgba(201,169,110,0.4);
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--stone-dark);
}

/* Fondo con gradiente de agua profunda */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(45,74,82,0.8) 0%, transparent 70%),
    radial-gradient(ellipse 100% 50% at 30% 100%, rgba(30,50,55,0.9) 0%, transparent 60%),
    linear-gradient(170deg, #0f1a1c 0%, #1c1a17 40%, #2d3830 70%, #1a2820 100%);
  z-index: 0;
}

/* Textura sutil */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.012) 2px,
      rgba(255,255,255,0.012) 4px
    );
  z-index: 0;
}

/* Ondas de agua */
.hero__water {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 300px;
  z-index: 1;
}
.hero__ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(100,180,200,0.15);
  animation: ripple 6s ease-out infinite;
}
.hero__ripple--1 { width: 400px; height: 120px; bottom: -30px; left: 10%; animation-delay: 0s; }
.hero__ripple--2 { width: 600px; height: 160px; bottom: -50px; left: 30%; animation-delay: 2s; }
.hero__ripple--3 { width: 300px; height: 80px;  bottom: -20px; right: 15%; animation-delay: 4s; }

@keyframes ripple {
  0%   { transform: scale(0.8); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Vapor */
.hero__steam { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.steam {
  position: absolute;
  bottom: 0;
  width: 3px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(to top, rgba(255,255,255,0.18), transparent);
  animation: steamRise var(--duration, 6s) ease-in infinite;
  animation-delay: var(--delay, 0s);
  filter: blur(6px);
}
.steam--1 { left: 15%; height: 280px; width: 40px; --duration: 7s; --delay: 0s; }
.steam--2 { left: 30%; height: 200px; width: 30px; --duration: 5s; --delay: 1.5s; }
.steam--3 { left: 50%; height: 320px; width: 50px; --duration: 8s; --delay: 0.5s; }
.steam--4 { left: 68%; height: 240px; width: 35px; --duration: 6s; --delay: 2s; }
.steam--5 { left: 82%; height: 180px; width: 25px; --duration: 5.5s; --delay: 3s; }

@keyframes steamRise {
  0%   { transform: translateY(0) scaleX(1); opacity: 0; }
  10%  { opacity: 0.6; }
  60%  { transform: translateY(-60%) scaleX(1.5); opacity: 0.3; }
  100% { transform: translateY(-120%) scaleX(2.5); opacity: 0; }
}

/* Contenido hero */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.hero__pretitle {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--water-pale);
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 28px;
}
.hero__title em {
  display: block;
  font-style: italic;
  color: var(--gold-light);
}
.hero__subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: rgba(245,240,232,0.65);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.8;
}
.hero__cta {
  display: inline-block;
  padding: 16px 44px;
  border: 1px solid rgba(201,169,110,0.6);
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.hero__cta:hover {
  background: var(--gold-light);
  color: var(--stone-dark);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(245,240,232,0.35);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(245,240,232,0.35), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* =============================================
   ESTRUCTURA BASE DE SECCIONES
   ============================================= */
.section { padding: var(--section-pad) 0; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}
.container--narrow { max-width: 900px; }

.section__label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone-light);
  margin-bottom: 20px;
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 28px;
  color: var(--stone-dark);
}
.section__title em {
  font-style: italic;
  display: block;
  color: var(--water-mid);
}
.divider {
  width: 48px;
  height: 1px;
  background: var(--stone-pale);
  margin-bottom: 48px;
}

/* =============================================
   TERMALISMO
   ============================================= */
.termalismo { background: var(--cream); }
.termalismo__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.termalismo__col p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--stone-mid);
  line-height: 1.9;
}

/* =============================================
   OURENSE
   ============================================= */
.ourense {
  position: relative;
  background: var(--water-deep);
  overflow: hidden;
}
.ourense::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 90%, rgba(15,30,35,0.6) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(45,80,90,0.4) 0%, transparent 60%);
}
.ourense .container { position: relative; z-index: 1; }
.ourense__intro {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(245,240,232,0.75);
  max-width: 680px;
  line-height: 1.85;
  margin-bottom: 64px;
}
.ourense__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  text-align: center;
  gap: 10px;
  background: rgba(15,30,35,0.3);
  transition: background 0.3s;
}
.stat:hover { background: rgba(15,30,35,0.55); }
.stat__number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--gold-light);
  line-height: 1;
}
.stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.55);
}

/* =============================================
   MANANTIALES
   ============================================= */
.manantiales { background: var(--cream-warm); }
.manantiales__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--stone-pale);
}
.manantial {
  background: var(--cream);
  padding: 48px 40px;
  transition: background 0.4s;
}
.manantial:hover { background: var(--cream-warm); }
.manantial__temp {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--water-light);
  margin-bottom: 8px;
  line-height: 1;
}
.manantial__name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--stone-dark);
  margin-bottom: 16px;
}
.manantial__desc {
  font-size: 0.92rem;
  color: var(--stone-mid);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 28px;
}
.manantial__line {
  width: 30px;
  height: 1px;
  background: var(--stone-pale);
  margin-bottom: 14px;
}
.manantial__zona {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-light);
}

/* =============================================
   BENEFICIOS
   ============================================= */
.beneficios { background: var(--cream); }
.beneficios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 60px;
}
.beneficio { display: flex; flex-direction: column; gap: 14px; }
.beneficio__icon {
  width: 48px;
  height: 48px;
  color: var(--water-mid);
}
.beneficio__icon svg { width: 100%; height: 100%; }
.beneficio__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--stone-dark);
}
.beneficio__text {
  font-size: 0.92rem;
  color: var(--stone-mid);
  line-height: 1.8;
  font-weight: 300;
}

/* =============================================
   CITA
   ============================================= */
.cita {
  position: relative;
  background: var(--stone-dark);
  overflow: hidden;
}
.cita::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(45,74,82,0.4) 0%, transparent 70%);
}
.cita .container { position: relative; z-index: 1; }
.cita__content {
  text-align: center;
  padding: 40px 0;
}
.cita__ornament {
  font-size: 2rem;
  color: var(--gold-light);
  opacity: 0.5;
  margin-bottom: 24px;
  line-height: 1;
}
.cita__text {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 24px;
}
.cita__author {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone-light);
}

/* =============================================
   ATMÓSFERA / GALERÍA
   ============================================= */
.atmosfera { background: var(--cream-warm); }
.atmosfera__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px 240px;
  gap: 3px;
}
.atmosfera__card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.atmosfera__card--tall { grid-row: span 2; }
.atmosfera__card--wide { grid-column: span 2; }

/* Gradientes diferentes para cada tarjeta */
.atmosfera__card:nth-child(1) { background: linear-gradient(135deg, #1a3038 0%, #2d5a6a 40%, #3d7a8a 100%); }
.atmosfera__card:nth-child(2) { background: linear-gradient(160deg, #2a3a2a 0%, #3d5a3a 50%, #5a7a50 100%); }
.atmosfera__card:nth-child(3) { background: linear-gradient(200deg, #3a3028 0%, #5a4a38 50%, #7a6048 100%); }
.atmosfera__card:nth-child(4) { background: linear-gradient(120deg, #0f2028 0%, #1e3848 40%, #2d5060 100%); }
.atmosfera__card:nth-child(5) { background: linear-gradient(150deg, #282020 0%, #403530 50%, #604a40 100%); }

/* Efecto de agua / textura */
.atmosfera__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.02) 60px,
      rgba(255,255,255,0.02) 61px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.015) 40px,
      rgba(255,255,255,0.015) 41px
    );
}

.atmosfera__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(15,20,20,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}
.atmosfera__card:hover .atmosfera__overlay { opacity: 1; }
.atmosfera__overlay span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}

/* =============================================
   CÓMO LLEGAR
   ============================================= */
.llegar { background: var(--cream); }
.llegar__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.llegar__info {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.llegar__item h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--stone-dark);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.llegar__item p {
  font-size: 0.92rem;
  color: var(--stone-mid);
  font-weight: 300;
  line-height: 1.8;
}
.llegar__mapa { position: sticky; top: 120px; }
.mapa__placeholder {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(45,74,82,0.15) 0%, transparent 70%),
    linear-gradient(160deg, #ddd5c5 0%, #ccc0aa 50%, #bfb09a 100%);
  border: 1px solid var(--stone-pale);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.mapa__pin {
  width: 40px; height: 40px;
  color: var(--water-mid);
}
.mapa__pin svg { width: 100%; height: 100%; }
.mapa__label {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--stone-dark);
}
.mapa__coords {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--stone-light);
  text-transform: uppercase;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  position: relative;
  background: var(--stone-dark);
  overflow: hidden;
  padding: 60px 0 40px;
}
.footer__steam {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  pointer-events: none;
  opacity: 0.4;
}
.footer .container { position: relative; z-index: 1; }
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}
.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 6px;
}
.footer__tagline {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-light);
}
.footer__nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer__nav a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.45);
  transition: color 0.3s;
}
.footer__nav a:hover { color: var(--gold-light); }
.footer__divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 32px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(245,240,232,0.3);
  letter-spacing: 0.05em;
}

/* =============================================
   ANIMACIONES DE ENTRADA (SCROLL)
   ============================================= */
.fade-in, .fade-up {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in { transform: none; }
.fade-up { transform: translateY(30px); }

.fade-in.visible  { opacity: 1; }
.fade-up.visible  { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .ourense__stats { grid-template-columns: repeat(2, 1fr); }
  .manantiales__grid { grid-template-columns: repeat(2, 1fr); }
  .beneficios__grid { grid-template-columns: repeat(2, 1fr); }
  .atmosfera__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .atmosfera__card--tall,
  .atmosfera__card--wide { grid-row: auto; grid-column: auto; }
  .llegar__grid { grid-template-columns: 1fr; gap: 48px; }
  .llegar__mapa { position: static; }
  .mapa__placeholder { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  :root { --section-pad: clamp(56px, 8vw, 80px); }
  .container { padding: 0 24px; }
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 14px 24px; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .termalismo__cols { grid-template-columns: 1fr; gap: 28px; }
  .ourense__stats { grid-template-columns: 1fr 1fr; }
  .manantiales__grid { grid-template-columns: 1fr; }
  .beneficios__grid { grid-template-columns: 1fr; gap: 32px; }
  .atmosfera__grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__nav { justify-content: flex-start; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .hero__subtitle br { display: none; }
}

@media (max-width: 480px) {
  .ourense__stats { grid-template-columns: 1fr; }
  .hero__cta { padding: 14px 32px; }
}
