/* ==========================================================
   Aire Libre · Centro de Naturaleza La Rosa
   Hoja de estilos principal
   ========================================================== */

:root {
  --pinar: #1f4d2e;        /* verde pino oscuro */
  --pinar-2: #2f6b3f;
  --hoja: #8fb339;         /* verde lima del logo */
  --mar: #2a6f97;          /* azul del logo */
  --sol: #f2c230;          /* amarillo del logo */
  --tierra: #b5532c;       /* rojo volcánico */
  --arena: #f6f1e4;        /* fondo cálido */
  --arena-2: #ebe3cc;
  --noche: #10202b;        /* cielo nocturno */
  --texto: #23302a;
  --texto-suave: #5b6a61;
  --blanco: #ffffff;
  --radio: 18px;
  --sombra: 0 10px 30px rgba(16, 32, 43, .12);
  --ancho: 1160px;
  --titulos: "Fraunces", Georgia, serif;
  --cuerpo: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--cuerpo);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texto);
  background: var(--arena);
}

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

a { color: var(--pinar-2); }
a:hover { color: var(--tierra); }

h1, h2, h3 {
  font-family: var(--titulos);
  font-weight: 600;
  line-height: 1.15;
  color: var(--pinar);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.contenedor {
  width: min(var(--ancho), 100% - 2.5rem);
  margin-inline: auto;
}

.saltar {
  position: absolute; left: -999px; top: 0;
  background: var(--pinar); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.saltar:focus { left: 1rem; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--arena-2);
}
.cabecera .contenedor {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 78px;
}
.logo img { height: 54px; width: auto; }

.menu { display: flex; align-items: center; gap: .3rem; }
.menu a {
  text-decoration: none; color: var(--texto);
  font-weight: 700; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .55rem .85rem; border-radius: 999px;
  transition: background .2s, color .2s;
}
.menu a:hover { background: var(--arena); color: var(--pinar); }
.menu a[aria-current="page"] { background: var(--pinar); color: #fff; }

.redes { display: flex; gap: .4rem; margin-left: .6rem; }
.redes a {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border-radius: 50%; background: var(--arena); color: var(--pinar);
}
.redes a:hover { background: var(--pinar); color: #fff; }
.redes svg { width: 18px; height: 18px; fill: currentColor; }

.boton-menu {
  display: none; background: none; border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 12px; color: var(--pinar);
}
.boton-menu svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .boton-menu { display: grid; place-items: center; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--arena-2);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .menu.abierto { display: flex; }
  .menu a { padding: .9rem .5rem; border-radius: 10px; }
  .redes { margin: .6rem 0 0; }
}

/* ---------- Portada (hero) ---------- */
.hero {
  position: relative; color: #fff;
  min-height: min(88vh, 760px);
  display: grid; align-items: end;
  background: var(--noche) center/cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16,32,43,.15) 0%, rgba(16,32,43,.35) 45%, rgba(16,32,43,.85) 100%);
}
.hero .contenedor { padding: 6rem 0 4.5rem; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lema {
  font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 42ch; opacity: .95;
}
.etiqueta {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px;
  background: var(--sol); color: var(--noche); margin-bottom: 1rem;
}

.hero-pagina { min-height: 46vh; }
.hero-pagina .contenedor { padding: 5rem 0 3rem; }

/* ---------- Botones ---------- */
.botones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.boton {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; text-decoration: none; letter-spacing: .02em;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--hoja); color: var(--noche);
  transition: transform .15s, background .2s, color .2s;
}
.boton:hover { transform: translateY(-2px); background: var(--sol); color: var(--noche); }
.boton.secundario { background: transparent; border-color: currentColor; color: inherit; }
.boton.secundario:hover { background: #fff; color: var(--pinar); border-color: #fff; }
.boton.oscuro { background: var(--pinar); color: #fff; }
.boton.oscuro:hover { background: var(--tierra); color: #fff; }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.seccion.blanca { background: #fff; }
.seccion.noche { background: var(--noche); color: #dfe8e3; }
.seccion.noche h2, .seccion.noche h3 { color: #fff; }

.intro { max-width: 720px; margin-bottom: 2.5rem; }
.intro p { color: var(--texto-suave); font-size: 1.08rem; }
.seccion.noche .intro p { color: #b8c7c0; }
.centrado { text-align: center; margin-inline: auto; }

/* ---------- Tarjetas ---------- */
.rejilla {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.tarjeta {
  background: #fff; border-radius: var(--radio); overflow: hidden;
  box-shadow: var(--sombra); display: flex; flex-direction: column;
  transition: transform .2s;
}
.tarjeta:hover { transform: translateY(-4px); }
.tarjeta img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.tarjeta .cuerpo { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.tarjeta p { color: var(--texto-suave); }
.tarjeta .boton { margin-top: auto; align-self: flex-start; }

/* ---------- Bloques imagen + texto ---------- */
.bloque {
  display: grid; gap: clamp(1.8rem, 5vw, 4rem); align-items: center;
  grid-template-columns: 1fr 1fr;
}
.bloque + .bloque { margin-top: clamp(3rem, 7vw, 5.5rem); }
.bloque.invertido .bloque-img { order: 2; }
.bloque-img img {
  border-radius: var(--radio); box-shadow: var(--sombra);
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}
.nota { font-size: .9rem; color: var(--texto-suave); font-style: italic; }
@media (max-width: 820px) {
  .bloque { grid-template-columns: 1fr; }
  .bloque.invertido .bloque-img { order: 0; }
}

/* ---------- Cifras / puntos ---------- */
.puntos {
  display: grid; gap: 1rem; padding: 0; margin: 1.5rem 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.puntos li {
  background: #fff; border-radius: 14px; padding: 1rem 1.1rem;
  border-left: 5px solid var(--hoja); box-shadow: 0 4px 14px rgba(16,32,43,.06);
}
.seccion.blanca .puntos li { background: var(--arena); }

/* ---------- Avisos y precios ---------- */
.aviso {
  background: #fff6d6; border: 2px solid var(--sol); border-radius: var(--radio);
  padding: 1.3rem 1.5rem; margin-bottom: 2rem;
}
.aviso strong { color: var(--tierra); }
.estado {
  display: inline-block; background: var(--pinar); color: #fff; font-weight: 800;
  letter-spacing: .08em; padding: .35rem .9rem; border-radius: 999px; font-size: .85rem;
}
.precios { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 1.5rem 0; }
.precio {
  background: var(--pinar); color: #fff; border-radius: var(--radio);
  padding: 1.5rem; text-align: center;
}
.precio .cifra { font-family: var(--titulos); font-size: 2.6rem; line-height: 1; color: var(--sol); }
.precio small { display: block; opacity: .8; margin-top: .4rem; }

.lista-check { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.lista-check li { padding-left: 1.8rem; position: relative; margin-bottom: .45rem; }
.lista-check li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1.05rem; height: 1.05rem;
  border-radius: 50%; background: var(--hoja)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2310202b' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E")
    center/70% no-repeat;
}
.lista-no li::before { background: #e9b4a2
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23602010' d='M19 6.4 17.6 5 12 10.6 6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12z'/%3E%3C/svg%3E")
    center/70% no-repeat; }

/* ---------- Galería ---------- */
.galeria {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.galeria img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px;
}

/* ---------- Condiciones ---------- */
.texto-legal { max-width: 820px; }
.texto-legal h3 { margin-top: 2rem; font-size: 1.15rem; }
.texto-legal p { color: var(--texto-suave); }

/* ---------- Contacto ---------- */
.contacto-rejilla { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contacto-item {
  background: #fff; border-radius: var(--radio); padding: 1.6rem; box-shadow: var(--sombra);
}
.contacto-item svg { width: 34px; height: 34px; fill: var(--pinar-2); margin-bottom: .6rem; }
.contacto-item a { font-weight: 800; word-break: break-word; }
.mapa {
  margin-top: 2.5rem; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra);
}
.mapa iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Franja llamada a la acción ---------- */
.cta {
  background: linear-gradient(120deg, var(--pinar) 0%, var(--mar) 100%);
  color: #fff; border-radius: calc(var(--radio) + 6px);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta h2 { color: #fff; margin: 0; }
.cta p { margin: .4rem 0 0; opacity: .9; }

/* ---------- Pie ---------- */
.pie { background: var(--noche); color: #b8c7c0; padding: 3.5rem 0 2rem; font-size: .95rem; }
.pie .contenedor { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
.pie h3 { color: #fff; font-size: 1.1rem; }
.pie a { color: #dfe8e3; text-decoration: none; }
.pie a:hover { color: var(--sol); }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin-bottom: .35rem; }
.pie .creditos {
  grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.4rem; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
}
@media (max-width: 760px) { .pie .contenedor { grid-template-columns: 1fr; } }

/* ---------- Botón flotante WhatsApp ---------- */
.whatsapp-flotante {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.whatsapp-flotante svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Animación suave al aparecer ---------- */
.aparece { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.aparece.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .aparece { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Caja de reserva TuriTop ---------- */
[id] { scroll-margin-top: 90px; }
.reserva-caja {
  max-width: 900px; margin-inline: auto; background: #fff;
  border-radius: var(--radio); box-shadow: var(--sombra);
  padding: clamp(1rem, 3vw, 2rem); min-height: 200px;
}
