/* ============================================================
   Nido Amarillo — reservanidoamarillo.com
   Hoja de estilos única para /es/ y /en/.
   Paleta tomada del manual de normas de Nido Amarillo:
   verde #9AB338 · amarillo #D5B120 · azul #5685B9
   (más los verdes funcionales oscuros para texto legible).
   Tipografías: solo fuentes del sistema — el sitio no depende
   de ningún servidor externo que pueda caerse o volverse pago.
   ============================================================ */

:root {
  --marca-verde:    #9AB338;
  --marca-amarillo: #D5B120;
  --marca-azul:     #5685B9;

  --verde-oscuro:   #2E5B1A;
  --verde-profundo: #17300E;
  --verde-medio:    #4A7C28;
  --verde-palido:   #F2F6E8;

  --papel:          #FDFDFB;
  --tinta:          #1E2A18;
  --tinta-suave:    #55604F;
  --linea:          #E2E6D7;

  --display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --texto: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;

  --ancho: 68rem;
  --paso: clamp(3rem, 7vw, 6rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-kerning: normal;
}

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

a { color: var(--verde-oscuro); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--marca-azul);
  outline-offset: 3px;
}

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.salto-contenido {
  position: absolute;
  left: -9999px;
}
.salto-contenido:focus {
  left: 1rem; top: 1rem;
  position: fixed;
  z-index: 99;
  background: #fff;
  padding: .75rem 1rem;
  border: 2px solid var(--verde-oscuro);
}

/* ---------- Encabezado ---------- */

.encabezado {
  background: #fff;                 /* el logo de marca solo va sobre blanco */
  border-bottom: 1px solid var(--linea);
}
.encabezado .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .9rem;
}
.logo img { width: 148px; }

.idiomas {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.idiomas a {
  text-decoration: none;
  color: var(--tinta-suave);
  padding: .3rem .5rem;
  border-radius: 2px;
}
.idiomas a:hover { color: var(--verde-oscuro); }
.idiomas .activo {
  color: var(--verde-profundo);
  font-weight: 700;
  border-bottom: 2px solid var(--marca-amarillo);
}
.idiomas .division { color: var(--linea); }

/* ---------- Portada ---------- */

.portada {
  position: relative;
  background: var(--verde-profundo);
  color: #fff;
  overflow: hidden;
}
.portada__imagen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
}
.portada__velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,48,14,.38) 0%, rgba(23,48,14,.82) 100%);
}
.portada .contenedor {
  position: relative;
  padding-block: clamp(4rem, 11vw, 8rem);
  max-width: 56rem;
}
.portada h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  line-height: 1;
  margin: 0 0 .5rem;
  letter-spacing: -.015em;
}
.portada .bajada {
  font-size: clamp(1.0625rem, 2.4vw, 1.375rem);
  font-weight: 600;
  color: #EDF3DC;
  margin: 0 0 1.75rem;
  max-width: 34ch;
}
.portada p.cuerpo {
  font-size: clamp(1rem, 1.9vw, 1.125rem);
  color: #E6ECDC;
  max-width: 52ch;
  margin: 0 0 2rem;
}

/* Prueba dura: 238 especies + eBird */
.prueba {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .9rem;
  border-top: 2px solid var(--marca-amarillo);
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding: .7rem 0;
  margin-bottom: 1.75rem;
}
.prueba strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--marca-amarillo);
  letter-spacing: .01em;
}
.prueba a { color: #fff; font-size: .9375rem; }

/* ---------- Botones ---------- */

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.boton {
  display: inline-block;
  font-family: var(--texto);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .8rem 1.4rem;
  border-radius: 2px;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.boton--principal {
  background: var(--marca-amarillo);
  color: #26200A;
  border-color: var(--marca-amarillo);
}
.boton--principal:hover { background: #E6C233; border-color: #E6C233; }

.boton--claro {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.boton--claro:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.boton--linea {
  background: transparent;
  color: var(--verde-oscuro);
  border-color: var(--verde-oscuro);
}
.boton--linea:hover { background: var(--verde-palido); }

/* ---------- Secciones ---------- */

.seccion { padding-block: var(--paso); }
.seccion + .seccion { border-top: 1px solid var(--linea); }

.seccion h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  line-height: 1.15;
  color: var(--verde-oscuro);
  margin: 0 0 1.5rem;
}
.seccion p { max-width: 62ch; }
.seccion p + p { margin-top: 1.1rem; }

.seccion--oscura {
  background: var(--verde-profundo);
  color: #fff;
  border-top: none;
}
.seccion--oscura h2 { color: #fff; }

/* Firma del sitio: "En cifras" como planilla de conteo de campo */
.planilla { margin: 0; }
.planilla__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1rem;
  padding-block: 1.05rem;
  border-bottom: 1px dotted rgba(255,255,255,.28);
}
.planilla__fila:first-child { border-top: 1px dotted rgba(255,255,255,.28); }
.planilla__dato {
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--marca-amarillo);
  font-variant-numeric: tabular-nums;
  flex: 1 1 16rem;
}
.planilla__nota {
  flex: 1 1 20rem;
  font-size: .9375rem;
  color: #DCE4D2;
  margin: 0;
}
.planilla__nota a { color: #fff; }

/* Tabla de tarifas */
.tabla-envoltura { overflow-x: auto; margin-top: 1.75rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  min-width: 34rem;
}
caption { text-align: left; color: var(--tinta-suave); font-size: .875rem; padding-bottom: .5rem; }
thead th {
  background: var(--verde-oscuro);
  color: #fff;
  text-align: left;
  font-weight: 700;
  padding: .7rem .9rem;
  letter-spacing: .02em;
}
tbody td { padding: .7rem .9rem; border-bottom: 1px solid var(--linea); }
tbody tr:nth-child(odd) td { background: var(--verde-palido); }
tbody td:first-child { font-weight: 600; }
td.precio { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Subtítulos dentro de un bloque */
.seccion h3 {
  font-family: var(--texto);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--verde-medio);
  margin: 2.25rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--marca-verde);
  max-width: 62ch;
}
.seccion h3:first-of-type { margin-top: 0; }

.acciones--bloque { margin-top: 1.5rem; }

/* ---------- Pie de página ---------- */

.pie {
  background: var(--verde-profundo);
  color: #DCE4D2;
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  font-size: .9375rem;
}
.pie strong.marca {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  display: block;
  margin-bottom: .25rem;
}
.pie__navegacion {
  margin: 1.75rem 0;
  padding-block: 1rem;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  font-weight: 600;
}
.pie__navegacion a { color: #fff; }
.pie__navegacion span[aria-current] { color: var(--marca-amarillo); }
.pie__navegacion .inactivo { color: #8FA083; }
.pie a { color: #fff; }
.pie__redes { display: flex; gap: 1.25rem; margin: 1.25rem 0; }
.pie__redes a { text-decoration: none; font-weight: 600; }
.pie__redes a:hover { text-decoration: underline; }
.pie__legal { color: #8FA083; font-size: .8125rem; margin-top: 1.5rem; }
.pie__legal p { margin: .25rem 0; }

/* ---------- Fotografías ---------- */

/* Foto ancha dentro de una sección */
.foto {
  margin: 2rem 0 0;
}
.foto img {
  width: 100%;
  max-height: 30rem;
  object-fit: cover;
  border-radius: 3px;
}
.foto figcaption {
  font-size: .8125rem;
  color: var(--tinta-suave);
  margin-top: .6rem;
  padding-left: .75rem;
  border-left: 3px solid var(--marca-amarillo);
  max-width: 52ch;
}
.seccion--oscura .foto figcaption { color: #C3CFB8; }

/* Tira de fotos de hospedaje */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.galeria figure { margin: 0; }
.galeria img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
}
.galeria figcaption {
  font-size: .8125rem;
  color: var(--tinta-suave);
  margin-top: .5rem;
}

/* Tira de fotos de aves — altura uniforme, foto completa, sin recorte */
.tira-aves {
  display: flex;
  gap: .75rem;
  margin-top: 2rem;
  padding-bottom: .75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tira-aves figure {
  margin: 0;
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.tira-aves img {
  height: clamp(11rem, 26vw, 15rem);
  width: auto;
  border-radius: 3px;
  display: block;
}

.credito {
  font-size: .8125rem;
  color: var(--tinta-suave);
  margin-top: .9rem;
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
