/*
Theme Name: Forestal Punta Indio Child
Theme URI: https://forestalpuntaindio.com
Description: Child theme de Twenty Twenty-Four para Forestal Punta Indio
Author: Javier Segovia
Template: twentytwentyfour
Version: 1.8.4
Text Domain: forestal-child
*/

/* === TOKENS DE COLOR === */
:root {
  --color-verde-profundo: #1a3a2a;
  --color-verde-oscuro: #2d5a3d;
  --color-verde-medio: #4a7c5a;
  --color-verde-claro: #7aad8a;
  --color-crema: #f5f0e8;
  --color-crema-oscuro: #e8e0d0;
  --color-dorado: #c8a84b;
  --color-texto: #1a1a1a;
  --color-texto-suave: #4a4a4a;
  --color-blanco: #ffffff;
  --fuente-titulo: 'Playfair Display', Georgia, serif;
  --fuente-cuerpo: 'Inter', system-ui, sans-serif;
  --radio-tarjeta: 16px;
  --radio-boton: 100px;
  --radio-input: 8px;
  --sombra-tarjeta: 0 4px 20px rgba(0,0,0,0.12);
  --nav-altura: 94px;
}

/* === TIPOGRAFÍA GLOBAL === */
body {
  font-family: var(--fuente-cuerpo);
  color: var(--color-texto);
  background-color: var(--color-crema);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fuente-titulo);
  color: var(--color-verde-profundo);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Anclas: que el header fijo no tape el inicio de cada sección al saltar */
#sobre,
#propiedades,
#zona,
#contacto {
  scroll-margin-top: var(--nav-altura);
}

html {
  scroll-behavior: smooth;
}

/* === HEADER / NAV STICKY === */
.forestal-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  min-height: var(--nav-altura);
  background: rgba(26, 58, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Con la sesión iniciada, WordPress muestra su barra negra arriba: bajamos el menú para que no la tape */
body.admin-bar .forestal-nav {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .forestal-nav {
    top: 46px;
  }
}

.forestal-nav__marca {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--fuente-titulo);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-blanco);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Logo animado (video en loop) dentro de un recuadro redondeado */
.forestal-nav__logo {
  display: block;
  flex-shrink: 0;
  width: 104px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--color-dorado);
  background: #cdb89e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.forestal-nav__logo video {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* "- Real estate" junto al nombre, en letra más chica */
.forestal-nav__sub {
  font-family: var(--fuente-cuerpo);
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.forestal-nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.forestal-nav__links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.forestal-nav__links a:hover {
  color: var(--color-dorado);
}

/* Sección donde estás: dorado + subrayado (se marca sola al bajar o al hacer clic) */
.forestal-nav__links a.is-activo {
  color: var(--color-dorado);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.forestal-nav__links .forestal-btn--wsp {
  padding: 0.5rem 1.1rem;
  font-size: 0.78rem;
}

.forestal-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.forestal-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-blanco);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 1100px) {
  .forestal-nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-verde-profundo);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .forestal-nav--abierto .forestal-nav__links {
    max-height: 420px;
  }

  .forestal-nav__links li {
    width: 100%;
  }

  .forestal-nav__links a {
    display: block;
    padding: 1rem 2rem;
    width: 100%;
  }

  .forestal-nav__links .forestal-btn--wsp {
    margin: 0.5rem 2rem 1rem;
    display: inline-flex;
  }

  .forestal-nav__toggle {
    display: flex;
  }
}

/* === HERO === */
/* Contenedor de Elementor: pantalla completa, de borde a borde y sin el relleno que trae por defecto */
.e-con.forestal-hero {
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --padding-block-start: 0px;
  --padding-block-end: 0px;
  --padding-inline-start: 0px;
  --padding-inline-end: 0px;
  width: 100%;
  max-width: 100%;
  padding: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--color-verde-profundo);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* El widget del slideshow ocupa el hero desde el borde de abajo de la cinta del menú, detrás del texto:
   así la cinta nunca tapa ninguna parte de las fotos ni del logo */
.e-con.forestal-hero > .forestal-hero__slides {
  position: absolute;
  top: var(--nav-altura);
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  z-index: 0;
}

.forestal-hero__slides > .elementor-widget-container,
.forestal-hero__slides .elementor-shortcode {
  height: 100%;
}

.forestal-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--color-verde-profundo);
}

/* Oscurecido muy suave para que el texto se lea sobre cualquier foto (sin recuadro) */
.forestal-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    ellipse 75% 65% at 50% 50%,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.26) 65%,
    rgba(0, 0, 0, 0.16) 100%
  );
}

.forestal-slide {
  position: absolute;
  inset: 0;
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  transition: transform var(--slide-dur, 1s) cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.forestal-slide.is-activa {
  transform: none;
  visibility: visible;
}

.forestal-slide.is-saliendo {
  transform: translate3d(-100%, 0, 0);
  visibility: visible;
}

.forestal-slide.is-entrando {
  transition: none;
  visibility: visible;
}

/* Fondo: la misma foto muy desenfocada, para rellenar los costados de las fotos verticales */
.forestal-slide__fondo {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.7) saturate(1.1);
}

/* La foto se ve entera; en pantallas anchas las fotos horizontales llenan todo el hero */
.forestal-slide img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* Diapositiva del logo animado: el video se ve entero; en pantallas anchas llena todo el hero */
.forestal-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (min-aspect-ratio: 5/4) {
  .forestal-slide.es-horizontal img,
  .forestal-slide.es-horizontal video {
    object-fit: cover;
  }
}

/* El video del logo se ve SIEMPRE entero, en cualquier pantalla; lo que sobra se completa con el fondo desenfocado */
.forestal-slide.forestal-slide--logo video {
  object-fit: contain;
  /* bordes difuminados: el video se funde con el fondo y no se nota el recuadro cuando sobra espacio */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
}

@media (prefers-reduced-motion: reduce) {
  .forestal-slide {
    transition-duration: 0s;
  }
}

.forestal-hero__contenido {
  position: relative;
  z-index: 4;
  text-align: center;
  color: var(--color-blanco);
  padding: 6rem 1.5rem 2rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.forestal-hero h1 {
  font-family: var(--fuente-titulo);
  font-size: 50px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-blanco);
  margin: 0 0 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), 0 6px 22px rgba(0, 0, 0, 0.35);
}

/* Frase de la marca (letra "Ink Free"; en equipos que no la tienen se usa "Kalam", parecida) */
.forestal-hero p.forestal-hero__lema {
  font-family: "Ink Free", "Kalam", "Segoe Print", "Comic Sans MS", cursive;
  font-size: clamp(1.3rem, 2.9vw, 1.95rem);
  font-weight: 400;
  line-height: 1.25;
  color: #f3dc94;
  max-width: 880px;
  margin: 0 auto 1.1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 4px 18px rgba(0, 0, 0, 0.45);
}

.forestal-hero p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.95);
  margin: 0 auto 2rem;
  max-width: 600px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 3px 14px rgba(0, 0, 0, 0.35);
}

/* === BOTONES === */
.forestal-btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  border-radius: var(--radio-boton);
  font-family: var(--fuente-cuerpo);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.forestal-btn--primario {
  background-color: var(--color-dorado);
  color: var(--color-verde-profundo);
}

.forestal-btn--primario:hover {
  background-color: #b8942e;
  color: var(--color-verde-profundo);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200,168,75,0.35);
}

.forestal-btn--wsp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #25d366;
  color: #ffffff;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radio-boton);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.forestal-btn--wsp:hover {
  background-color: #1ebe57;
  color: #ffffff;
  transform: translateY(-2px);
}

.forestal-btn--wsp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* === SECCIONES === */
.forestal-seccion {
  padding: 80px 20px;
}

/* Elementor pisa el relleno lateral con 10px: lo fijamos para que el contenido no quede pegado al borde */
.e-con.forestal-seccion {
  --padding-left: 24px;
  --padding-right: 24px;
}

.forestal-seccion--oscura {
  background-color: var(--color-verde-profundo);
  color: var(--color-blanco);
}

.forestal-seccion--oscura h2,
.forestal-seccion--oscura h3,
.forestal-seccion--media h2 {
  color: var(--color-crema);
}

.forestal-seccion--media {
  background-color: var(--color-verde-oscuro);
  color: var(--color-blanco);
}

.forestal-seccion--crema {
  background-color: var(--color-crema);
}

.forestal-contenedor {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.forestal-titulo-seccion {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.forestal-subtitulo-seccion {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-texto-suave);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.forestal-seccion--oscura .forestal-subtitulo-seccion,
.forestal-seccion--media .forestal-subtitulo-seccion {
  color: rgba(255,255,255,0.75);
}

/* === TARJETAS DE PROPIEDADES === */
.forestal-propiedades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.forestal-propiedad-card {
  background: var(--color-blanco);
  border-radius: var(--radio-tarjeta);
  overflow: hidden;
  box-shadow: var(--sombra-tarjeta);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.forestal-propiedad-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.forestal-propiedad-card__imagen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-verde-claro);
}

.forestal-propiedad-card__imagen img,
.forestal-propiedad-card__imagen video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.forestal-propiedad-card:hover .forestal-propiedad-card__imagen img,
.forestal-propiedad-card:hover .forestal-propiedad-card__imagen video {
  transform: scale(1.05);
}

/* Galería de hasta 3 fotos: se desliza con el dedo o con las flechitas */
.forestal-galeria {
  position: relative;
  width: 100%;
  height: 100%;
}

.forestal-galeria__pista {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.forestal-galeria__pista::-webkit-scrollbar {
  display: none;
}

.forestal-galeria__pista img,
.forestal-galeria__pista video {
  flex: 0 0 100%;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  scroll-snap-align: start;
}

.forestal-propiedad-card:hover .forestal-galeria__pista img,
.forestal-propiedad-card:hover .forestal-galeria__pista video {
  transform: none;
}

/* Fotos y videos verticales: se ven enteros (sin recortar) sobre fondo verde */
.forestal-propiedad-card__imagen img.es-vertical,
.forestal-propiedad-card__imagen video.es-vertical {
  object-fit: contain;
  background: var(--color-verde-profundo);
}

/* El puntito del video lleva un triangulito de "play" */
.forestal-galeria__punto.es-video {
  width: 0;
  height: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.75);
}

.forestal-galeria__punto.es-video.is-activo {
  background: transparent;
  border-left-color: #fff;
  transform: scale(1.2);
}

.forestal-galeria__flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  padding: 0 0 4px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 58, 42, 0.62);
  color: var(--color-blanco);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.forestal-galeria__flecha:hover {
  background: var(--color-verde-profundo);
  opacity: 1;
}

.forestal-galeria__flecha--prev {
  left: 0.6rem;
}

.forestal-galeria__flecha--next {
  right: 0.6rem;
}

.forestal-galeria__puntos {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.6rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  pointer-events: none;
}

.forestal-galeria__punto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
}

.forestal-galeria__punto.is-activo {
  background: var(--color-blanco);
  transform: scale(1.25);
}

.forestal-propiedad-card__cuerpo {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.forestal-propiedad-card__titulo {
  font-family: var(--fuente-titulo);
  font-size: 1.25rem;
  color: var(--color-verde-profundo);
  margin-bottom: 0.5rem;
}

.forestal-propiedad-card__desc {
  font-size: 0.92rem;
  color: var(--color-texto-suave);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.forestal-propiedad-card__precio {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-verde-oscuro);
  margin-bottom: 1rem;
}

.forestal-propiedad-card__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-crema-oscuro);
}

/* === SECCIÓN SOBRE === */
.forestal-sobre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.forestal-sobre__texto h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.forestal-sobre__texto p {
  margin-bottom: 1rem;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.forestal-sobre__imagen {
  border-radius: var(--radio-tarjeta);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.forestal-sobre__imagen img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* === EMBLEMA UNESCO / BADGES === */
.forestal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.forestal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(200,168,75,0.15);
  border: 1px solid var(--color-dorado);
  color: var(--color-verde-profundo);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* === MAPA === */
.forestal-mapa-wrapper {
  border-radius: var(--radio-tarjeta);
  overflow: hidden;
  height: 420px;
  margin-top: 2rem;
}

.forestal-mapa-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === FORMULARIO === */
.forestal-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.forestal-form-wrapper input,
.forestal-form-wrapper textarea,
.forestal-form-wrapper select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-crema-oscuro);
  border-radius: var(--radio-input);
  font-family: var(--fuente-cuerpo);
  font-size: 1rem;
  background: var(--color-blanco);
  color: var(--color-texto);
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.forestal-form-wrapper input:focus,
.forestal-form-wrapper textarea:focus {
  outline: none;
  border-color: var(--color-verde-medio);
}

.forestal-form-wrapper textarea {
  min-height: 140px;
  resize: vertical;
}

/* Botón de envío: pastilla dorada, igual que los demás botones del sitio */
.forestal-form-wrapper input[type="submit"] {
  width: auto;
  display: block;
  margin: 0.5rem auto 0;
  padding: 0.9rem 2.4rem;
  background-color: var(--color-dorado);
  color: var(--color-verde-profundo);
  border: none;
  border-radius: var(--radio-boton);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.forestal-form-wrapper input[type="submit"]:hover {
  background-color: #b8942e;
  transform: translateY(-2px);
}

/* Honeypot anti-spam: campo oculto a la vista, visible para bots */
.forestal-form-wrapper .forestal-campo-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
}

/* === FOOTER === */
/* Contenedor de Elementor del footer: de borde a borde y sin relleno */
.e-con.forestal-footer-wrap {
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --padding-block-start: 0px;
  --padding-block-end: 0px;
  --padding-inline-start: 0px;
  --padding-inline-end: 0px;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.forestal-footer {
  width: 100%;
  background: var(--color-verde-profundo);
  color: rgba(255,255,255,0.70);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.88rem;
}

.forestal-footer p {
  margin: 0.35rem 0;
}

.forestal-footer p.forestal-footer__disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0.75rem auto 0;
  line-height: 1.5;
  text-align: center;
}

/* Línea final del pie: datos de quien desarrolló la página */
.forestal-footer p.forestal-footer__creditos {
  max-width: 560px;
  margin: 1.4rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.forestal-footer p.forestal-footer__creditos a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-decoration: none;
}

.forestal-footer p.forestal-footer__creditos a:hover {
  color: var(--color-dorado);
  text-decoration: underline;
}

.forestal-footer a {
  color: var(--color-dorado);
  text-decoration: none;
}

.forestal-footer a:hover {
  text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  :root {
    --nav-altura: 72px;
  }

  .forestal-nav {
    padding: 0.6rem 1rem;
    min-height: var(--nav-altura);
  }

  .forestal-nav__marca {
    font-size: 1rem;
    gap: 0.6rem;
  }

  .forestal-nav__logo {
    width: 84px;
    height: 52px;
    border-radius: 12px;
  }

  .forestal-hero h1 {
    font-size: 38px;
  }
}

/* Celulares angostos: el nombre puede pasar a dos renglones y el botón del menú nunca se corre afuera */
@media (max-width: 420px) {
  .forestal-nav__marca {
    min-width: 0;
    white-space: normal;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .forestal-nav__logo {
    width: 72px;
    height: 45px;
    border-radius: 10px;
  }

  .forestal-nav__toggle {
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .forestal-sobre {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .forestal-seccion {
    padding: 60px 16px;
  }

  .e-con.forestal-seccion {
    --padding-left: 16px;
    --padding-right: 16px;
  }

  .forestal-propiedades-grid {
    grid-template-columns: 1fr;
  }
}

/* === VISOR DE FOTOS A PANTALLA COMPLETA === */
.forestal-propiedad-card__imagen img[data-grande] {
  cursor: zoom-in;
}

.forestal-visor {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 20, 14, 0.94);
}

.forestal-visor.is-abierto {
  display: flex;
}

html.forestal-visor-abierto {
  overflow: hidden;
}

.forestal-visor__img,
.forestal-visor__video {
  max-width: 94vw;
  max-height: 88vh;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.forestal-visor__video {
  display: none;
  position: relative;
  z-index: 1;
  background: #000;
}

.forestal-visor.es-video .forestal-visor__img {
  display: none;
}

.forestal-visor.es-video .forestal-visor__video {
  display: block;
}

.forestal-visor__cerrar,
.forestal-visor__flecha {
  z-index: 5;
  position: absolute;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease;
}

.forestal-visor__cerrar:hover,
.forestal-visor__flecha:hover {
  background: rgba(255, 255, 255, 0.28);
}

.forestal-visor__cerrar {
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  padding: 0 0 4px;
}

.forestal-visor__flecha {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2.4rem;
  padding: 0 0 6px;
}

.forestal-visor__flecha--prev { left: 14px; }
.forestal-visor__flecha--next { right: 14px; }

.forestal-visor.es-una .forestal-visor__flecha {
  display: none;
}

.forestal-visor__contador {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .forestal-visor__flecha { width: 44px; height: 44px; font-size: 2rem; }
  .forestal-visor__flecha--prev { left: 6px; }
  .forestal-visor__flecha--next { right: 6px; }
}
