/* ─────────────────────────────────────────
   VARIABLES Y RESET
───────────────────────────────────────── */
:root {
  --tinta:        #0c0c0a;
  --tinta2:       #1a1a16;
  --crema:        #f4ede0;
  --crema2:       #ede4d3;
  --piedra:       #8a8570;
  --piedra2:      #b5af9e;
  --verde-oscuro: #5F7A4F;
  --verde-claro:  #92B079;
  --blanco:       #faf8f4;
  --radio:        4px;
  --gap:          20px;
  --nav-alto:     76px;
  --hero-margin-top: 116px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--tinta);
  color: var(--crema);
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

.saltar-contenido {
  position: absolute;
  top: -100%;
  left: 0;
  padding: .75rem 1.5rem;
  background: var(--verde-claro);
  color: var(--tinta);
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 4px 0;
  transition: top .2s ease;
}

.saltar-contenido:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--verde-claro);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (hover: none) and (pointer: coarse) {
  body,
  .carrusel-boton,
  .servicio-tarjeta,
  .formulario-campo input,
  .formulario-campo select,
  .formulario-campo textarea,
  .formulario-enviar {
    cursor: auto;
  }
}


/* ─── Cursor ─── */
.cursor-punto {
  width: 8px;
  height: 8px;
  background: var(--verde-claro);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  opacity: 0;
  transition: transform .1s ease, opacity .3s ease;
  will-change: left, top;
}

.cursor-anillo {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(146,176,121,.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  opacity: 0;
  transition: transform .15s ease, width .3s ease, height .3s ease, border-color .3s ease, opacity .3s ease;
  will-change: left, top;
}

.cursor-anillo.sobre-elemento {
  width: 56px;
  height: 56px;
  border-color: var(--verde-claro);
}


/* ─── Ruido ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: .028;
  mix-blend-mode: overlay;
}


/* ═══════════ NAVBAR ═══════════ */
.barra-nav {
  position: fixed;
  top: var(--gap);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1500px;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(40,65,35,0.45);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(146,176,121,.25);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  z-index: 1000;
}

.logo-nav {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-nav-imagen {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: opacity .3s ease, transform .3s ease;
}

.logo-nav:hover .logo-nav-imagen {
  opacity: .85;
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .logo-nav-imagen {
    height: 36px;
  }
}

@media (max-width: 480px) {
  .logo-nav-imagen {
    height: 30px;
    max-width: 140px;
  }
}

.menu-hamburguesa {
  width: 28px;
  height: 20px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  z-index: 1100;
}

.menu-hamburguesa span {
  width: 100%;
  height: 2px;
  background: white;
  display: block;
  transition: transform .35s ease, opacity .35s ease;
  transform-origin: center;
}

.menu-hamburguesa.abierto span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-hamburguesa.abierto span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-hamburguesa.abierto span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-enlaces {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-enlaces a {
  text-decoration: none;
  color: #fff;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  position: relative;
  white-space: nowrap;
}

.nav-enlaces a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: #92B079;
  transition: .3s;
}

.nav-enlaces a:hover::after {
  width: 100%;
}

.nav-boton-contacto {
  padding: .65rem 1.6rem;
  border: 1px solid rgba(146,176,121,.6);
  color: #92B079;
  text-decoration: none;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  transition: .3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-boton-contacto:hover {
  background: #92B079;
  color: #111;
}

@media (max-width: 900px) {
  :root {
    --gap: 15px;
  }

  .menu-hamburguesa {
    display: flex;
  }

  .nav-enlaces,
  .nav-boton-contacto {
    display: none;
  }

  .barra-nav {
    padding: 14px 20px;
    top: var(--gap);
    width: calc(100% - 30px);
  }
}


/* ─── Menú móvil ─── */
.nav-movil {
  position: fixed;
  inset: 0;
  background: rgba(12,12,10,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.nav-movil.abierto {
  opacity: 1;
  pointer-events: auto;
}

.nav-movil-lista {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.nav-movil-lista a {
  text-decoration: none;
  color: var(--crema);
  font-family: 'Georgia', serif;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  transition: color .25s ease;
  display: block;
}

.nav-movil-lista a:hover {
  color: var(--verde-claro);
}

.nav-movil-cta {
  margin-top: .6rem;
  padding: .8rem 2.4rem !important;
  border: 1px solid rgba(146,176,121,.6) !important;
  color: var(--verde-claro) !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: .8rem !important;
  font-style: normal !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}


/* ═══════════ HERO ═══════════
   height y margin-top los setea el script inline en px fijos (una sola vez).
   NO se usa dvh/svh ni ninguna unidad dinámica de viewport en CSS para evitar
   que la barra del browser dispare recalculos al hacer scroll en móvil.
*/
.portada {
  margin-bottom: var(--gap);
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 40px);
  max-width: 1500px;
  min-height: 480px;
  border-radius: 32px;
  padding: 80px;
  background-image: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url('iconos/inicio.webp');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.portada-contenido {
  max-width: 500px;
}

.portada-subtitulo,
.portada-titulo,
.portada-descripcion,
.portada-botones {
  opacity: 1;
  transform: translateY(8px);
  transition: transform .5s ease;
}

.portada-subtitulo {
  transition-delay: .05s;
}

.portada-titulo {
  transition-delay: .12s;
}

.portada-descripcion {
  transition-delay: .2s;
}

.portada-botones {
  transition-delay: .28s;
}

.hero-listo .portada-subtitulo,
.hero-listo .portada-titulo,
.hero-listo .portada-descripcion,
.hero-listo .portada-botones {
  transform: translateY(0);
}

.portada-subtitulo {
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #92B079;
  margin-bottom: 24px;
}

.portada-titulo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 30px;
}

.portada-titulo em {
  color: #92B079;
  font-style: italic;
}

.portada-descripcion {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: .9;
}

.portada-botones {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.boton-principal {
  padding: .9rem 2.4rem;
  background: #92B079;
  color: #111;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: .3s;
}

.boton-principal:hover {
  transform: translateY(-3px);
}

.boton-borde {
  padding: .9rem 2.4rem;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: .3s;
}

.boton-borde:hover {
  border-color: #92B079;
  color: #92B079;
}

@media (max-width: 768px) {
  .portada {
    padding: 50px 30px;
    border-radius: 24px;
    margin-left: 15px;
    margin-right: 15px;
    width: calc(100% - 30px);
  }

  .portada-titulo {
    font-size: 2.6rem;
  }

  .portada-botones {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ═══════════ NOSOTROS ═══════════ */
.nosotros {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 620px;
  position: relative;
  max-width: 1500px;
  margin: auto;
  contain: layout;
}

.nosotros-media {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 620px;
}

.nosotros-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(15%) brightness(.9);
  transition: transform 6s ease;
  padding: 30px;
}

.nosotros:hover .nosotros-media img {
  transform: scale(1.04);
}

.nosotros-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--tinta) 100%);
  pointer-events: none;
}

.nosotros-contenido {
  background: var(--tinta);
  padding: 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.nosotros-contenido::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--verde-claro) 50%, transparent);
}

.etiqueta-seccion {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--verde-claro);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.etiqueta-seccion::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--verde-claro);
}

.nosotros-titulo {
  font-family: 'Georgia', serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--blanco);
  margin-bottom: 28px;
}

.nosotros-titulo em {
  font-style: italic;
  color: var(--verde-claro);
}

.nosotros-parrafo {
  font-size: .95rem;
  font-weight: 300;
  color: var(--piedra2);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 24px;
}

.nosotros-estadisticas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(244,237,224,.08);
  margin: 0;
}

.nosotros-stat {
  padding: 24px 12px;
  border-right: 1px solid rgba(244,237,224,.08);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.nosotros-stat:last-child {
  border-right: none;
}

.nosotros-stat-numero {
  font-family: 'Georgia', serif;
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--verde-claro);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  margin: 0;
}

.nosotros-stat-texto {
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--piedra);
  margin-top: 8px;
  width: 100%;
  text-align: center;
}

@media (min-width: 1024px) {
  .nosotros {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }

  .nosotros-media {
    height: 620px;
    min-height: 520px;
  }

  .nosotros-media img {
    padding: 0px;
  }

  .nosotros-media::after {
    background: linear-gradient(to bottom, transparent 60%, var(--tinta) 100%);
  }

  .nosotros-contenido {
    padding: 60px 36px;
  }
}

@media (max-width: 768px) {
  .nosotros-media {
    height: 75vw;
    min-height: 340px;
    max-height: 520px;
  }

  .nosotros-media img {
    padding: 10px;
  }

  .nosotros-contenido {
    padding: 48px 24px;
  }

  .nosotros-stat-numero {
    font-size: 2rem;
  }

  .nosotros {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .nosotros-media {
    height: 85vw;
    min-height: 300px;
    max-height: 480px;
  }

  .nosotros-media img {
    padding: 8px;
  }

  .nosotros-stat {
    padding: 16px 6px;
  }

  .nosotros-stat-numero {
    font-size: 1.55rem;
  }

  .nosotros-stat-texto {
    font-size: .6rem;
    letter-spacing: .06em;
  }
}


/* ═══════════ PROYECTOS ═══════════ */
.proyectos {
  padding: 50px 60px;
  position: relative;
  max-width: 1500px;
  margin: auto;
  contain: layout;
}

.cabecera-seccion {
  max-width: 800px;
  margin-bottom: 60px;
}

.titulo-seccion {
  font-family: 'Georgia', serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--blanco);
  margin-bottom: 16px;
}

.titulo-seccion em {
  font-style: italic;
  color: var(--verde-claro);
}

.subtitulo-seccion {
  font-size: .9rem;
  font-weight: 300;
  color: var(--piedra2);
  line-height: 1.7;
  margin-top: 16px;
  display: block;
}

.carrusel-envoltorio {
  position: relative;
  overflow: hidden;
  border-radius: var(--radio);
}

.carrusel-pista {
  display: flex;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.carrusel-diapositiva {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}

.carrusel-diapositiva img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
  filter: brightness(.85);
  transition: transform .6s ease;
}

.carrusel-diapositiva:hover img,
.carrusel-diapositiva.activa img {
  transform: scale(1.03);
}

/* Overlay verde */
.carrusel-diapositiva::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(95,122,79,0.55) 0%, rgba(95,122,79,0.15) 40%, transparent 70%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
  z-index: 1;
}

.carrusel-diapositiva:hover::after,
.carrusel-diapositiva.activa::after {
  opacity: 1;
}

/* Leyenda */
.carrusel-leyenda {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 48px 40px;
  background: linear-gradient(transparent, rgba(12,12,10,.8));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

/* Línea verde */
.carrusel-leyenda::before {
  content: '';
  position: absolute;
  top: 0;
  left: 48px;
  height: 1px;
  width: 0;
  background: var(--verde-claro);
  transition: width .5s ease;
}

.carrusel-diapositiva:hover .carrusel-leyenda::before,
.carrusel-diapositiva.activa .carrusel-leyenda::before {
  width: calc(100% - 96px);
}

.carrusel-leyenda-texto {
  font-family: 'Georgia', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--verde-claro);
}

.carrusel-leyenda-numero {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--verde-claro);
  letter-spacing: .1em;
}

/* Controles */
.carrusel-controles {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.carrusel-boton {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(244,237,224,.2);
  background: transparent;
  color: var(--crema2);
  font-size: 1.4rem;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrusel-boton:hover {
  background: var(--verde-claro);
  border-color: var(--verde-claro);
  color: var(--tinta);
}

.carrusel-barra-progreso {
  flex: 1;
  height: 1px;
  background: rgba(244,237,224,.1);
  position: relative;
  overflow: hidden;
}

.carrusel-progreso-relleno {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--verde-claro);
  transition: width .5s ease;
}

.carrusel-contador {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--piedra);
}

@media (max-width: 1024px) {
  .proyectos {
    padding: 80px 36px;
  }
}

@media (max-width: 768px) {
  .proyectos {
    padding: 40px 20px;
  }

  .cabecera-seccion {
    margin-bottom: 30px;
  }

  .carrusel-diapositiva img {
    height: 250px;
    border-radius: 12px;
  }

  .carrusel-leyenda {
    padding: 20px;
    background: linear-gradient(transparent, rgba(12,12,10,0.9));
  }

  .carrusel-leyenda::before {
    left: 20px;
  }

  .carrusel-diapositiva:hover .carrusel-leyenda::before,
  .carrusel-diapositiva.activa .carrusel-leyenda::before {
    width: calc(100% - 40px);
  }

  .carrusel-leyenda-texto {
    font-size: 1.2rem;
  }

  .carrusel-leyenda-numero {
    font-size: 0.9rem;
  }

  .carrusel-controles {
    margin-top: 20px;
    gap: 10px;
  }

  .carrusel-boton {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}


/* ═══════════ SERVICIOS ═══════════ */
.servicios {
  padding: 100px 0;
  background: var(--tinta2);
  position: relative;
  overflow: hidden;
  contain: layout style;
  max-width: 1500px;
  margin: auto;
}

.servicios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(146,176,121,.3) 50%, transparent);
}

.servicios-cabecera {
  padding: 0 60px;
  margin-bottom: 60px;
  justify-content: space-between;
  gap: 40px;
}

.servicios-desbordamiento {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.servicios-pista {
  display: flex;
  width: max-content;
  animation: desplazarServicios 36s linear infinite;
  will-change: transform;
}

@media (max-width: 768px) {
  .servicios-pista {
    animation-duration: 20s;
  }
}

@keyframes desplazarServicios {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.servicio-tarjeta {
  width: 300px;
  padding: 24px 28px;
  margin-right: 16px;
  background: rgba(244,237,224,.03);
  border: 1px solid rgba(244,237,224,.07);
  flex-shrink: 0;
  cursor: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}

.servicio-tarjeta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--verde-claro);
  transition: height .35s ease;
}

.servicio-tarjeta:hover {
  background: rgba(146,176,121,.06);
  border-color: rgba(146,176,121,.2);
}

.servicio-tarjeta:hover::before {
  height: 100%;
}

.servicio-icono {
  width: 52px;
  height: 52px;
  min-width: 52px;
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: .75;
  transition: opacity .3s ease, filter .3s ease;
}

.servicio-tarjeta:hover .servicio-icono {
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(60deg);
  opacity: 1;
}

.servicio-texto {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.servicio-nombre {
  font-size: .88rem;
  font-weight: 600;
  color: var(--crema);
  letter-spacing: .03em;
}

.servicio-descripcion {
  font-size: .78rem;
  font-weight: 300;
  color: var(--piedra2);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .servicios {
    padding: 60px 0;
  }

  .servicios-cabecera {
    padding: 0 24px;
    margin-bottom: 40px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .servicios {
    padding: 40px 0;
  }
}

@media (min-width: 1440px) {
  .servicio-tarjeta {
    width: 380px;
    padding: 50px 36px;
    gap: 24px;
  }

  .servicio-icono {
    width: 64px;
    height: 64px;
    min-width: 64px;
    max-width: 64px;
    max-height: 64px;
  }

  .servicio-nombre {
    font-size: 1rem;
  }

  .servicio-descripcion {
    font-size: .9rem;
  }
}


/* ═══════════ RESEÑAS ═══════════ */
.reseñas {
  padding: 60px 60px 100px 60px;
  position: relative;
  max-width: 1500px;
  margin: auto;
}

.grilla-testimonios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  background: transparent;
  margin-top: 40px;
}

.testimonio {
  padding: 30px;
  background: var(--tinta2);
  border-radius: 8px;
  border: 1px solid rgba(244,237,224,0.08);
  border-top: 2px solid rgba(146,176,121,0.35);
  transition: transform .3s ease, background .3s ease, border-top-color .3s ease, box-shadow .3s ease;
}

.testimonio:hover {
  background: rgba(30,30,24,1);
  border-top-color: var(--verde-claro);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.testimonio-cita {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  color: var(--crema2);
  line-height: 1.5;
  margin-bottom: 24px;
  quotes: "\201C" "\201D";
}

.testimonio-estrellas {
  display: flex;
  gap: 4px;
  margin-bottom: 15px;
  color: var(--verde-claro);
  font-size: 0.8rem;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 0;
  border: 0;
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}

.testimonio-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-claro) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blanco);
  flex-shrink: 0;
}

.testimonio-nombre {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blanco);
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin: 0;
}

.testimonio-rol {
  font-size: 0.68rem;
  color: var(--piedra2);
  margin: 0;
}

@media (max-width: 1024px) {
  .grilla-testimonios {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .reseñas {
    padding: 0px 20px;
  }

  .grilla-testimonios {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* ═══════════ CONTACTO ═══════════ */
.contacto {
  margin: 20px auto;
  background: var(--tinta2);
  border: 1px solid rgba(244,237,224,.07);
  padding: 100px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  overflow: hidden;
  max-width: 1500px;
}

.contacto::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 0px;
  height: 500px;
  background: radial-gradient(circle, rgba(146,176,121,.07) 0%, transparent 70%);
  pointer-events: none;
}

.contacto-titulo {
  font-family: 'Georgia', serif;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--blanco);
  margin-bottom: 20px;
}

.contacto-titulo em {
  font-style: italic;
  color: var(--verde-claro);
}

.contacto-texto {
  font-size: .9rem;
  color: var(--piedra2);
  line-height: 1.75;
  max-width: 380px;
}

.contacto-formulario {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.formulario-fila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.formulario-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.formulario-campo label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--piedra2);
}

.formulario-campo input,
.formulario-campo select,
.formulario-campo textarea {
  background: rgba(244,237,224,.04);
  border: 1px solid rgba(244,237,224,.1);
  color: var(--crema);
  font-family: 'Manrope', sans-serif;
  font-size: .88rem;
  font-weight: 300;
  padding: 12px 16px;
  outline: none;
  transition: border-color .3s ease, background .3s ease;
  resize: none;
  cursor: none;
}

.formulario-campo input::placeholder,
.formulario-campo textarea::placeholder {
  color: var(--piedra);
}

.formulario-campo input:focus,
.formulario-campo select:focus,
.formulario-campo textarea:focus {
  border-color: var(--verde-claro);
  background: rgba(146,176,121,.05);
  outline: 2px solid var(--verde-claro);
  outline-offset: 1px;
}

.formulario-campo select option {
  background: var(--tinta);
}

.formulario-enviar {
  padding: 1rem 2.5rem;
  background: var(--verde-claro);
  border: none;
  cursor: pointer;
  color: var(--tinta);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  align-self: flex-start;
  transition: background .3s ease, transform .3s ease;
}

.formulario-enviar:hover {
  background: var(--verde-oscuro);
  transform: translateY(-2px);
  color: var(--blanco);
}

@media (max-width: 1024px) {
  .contacto {
    grid-template-columns: 1fr;
    padding: 60px 36px;
    gap: 40px;
    margin: 16px auto;
  }
}

@media (max-width: 768px) {
  .contacto {
    padding: 48px 24px;
    margin: 12px auto;
  }

  .formulario-fila {
    grid-template-columns: 1fr;
  }
}


/* ═══════════ FOOTER ═══════════ */
footer {
  border-top: 1px solid rgba(244,237,224,.06);
  padding: 48px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1500px;
  margin: auto;
}

.pie-marca {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--piedra);
}

.pie-derechos {
  font-size: .75rem;
  color: var(--piedra);
  letter-spacing: .04em;
}

.pie-enlaces {
  display: flex;
  gap: 28px;
}

.pie-enlaces a {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--piedra);
  text-decoration: none;
  transition: color .3s ease;
}

.pie-enlaces a:hover {
  color: var(--verde-claro);
}

@media (max-width: 1024px) {
  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 40px 36px;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 32px 24px;
  }
}


/* ─── Animación entrada ─── */
.animacion-entrada {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.animacion-entrada.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ─── Reducción movimiento ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .animacion-entrada {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .portada-subtitulo,
  .portada-titulo,
  .portada-descripcion,
  .portada-botones {
    transform: none !important;
    transition: none !important;
  }

  .nosotros:hover .nosotros-media img,
  .carrusel-diapositiva:hover img,
  .boton-principal:hover,
  .formulario-enviar:hover {
    transform: none;
  }

  .servicios-pista {
    animation: none;
  }

  .carrusel-pista {
    transition: none;
  }
}


/* ─── Títulos responsivos ─── */
@media (max-width: 480px) {
  .titulo-seccion {
    font-size: 2rem;
    letter-spacing: -.01em;
    line-height: 1.1;
  }

  .nosotros-titulo {
    font-size: 2rem;
    line-height: 1.1;
  }

  .contacto-titulo {
    font-size: 2rem;
    line-height: 1.1;
  }

  .portada-titulo {
    font-size: 2.2rem;
    line-height: 1.05;
  }
}

@media (max-width: 360px) {
  .titulo-seccion {
    font-size: 1.75rem;
  }

  .nosotros-titulo {
    font-size: 1.75rem;
  }

  .contacto-titulo {
    font-size: 1.75rem;
  }

  .portada-titulo {
    font-size: 1.9rem;
  }
}


/* ─── Utilidades ─── */
.boton-solo-movil {
  display: none;
}

@media (max-width: 900px) {
  .boton-solo-escritorio {
    display: none;
  }

  .boton-solo-movil {
    display: inline-block;
  }
}


/* ═══════════ BOTONES FLOTANTES ═══════════ */
.botones-flotantes.derecha {
  position: fixed;
  bottom: 20px;
  right: max(20px, calc(50% - 820px));
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1500;
  /* Oculto hasta que JS decida mostrarlo — evita el flash al cargar */
  visibility: hidden;
}

.botones-flotantes.derecha.visible,
.botones-flotantes.derecha.fue-visible {
  visibility: visible;
}

.boton-flotante {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.712);
  cursor: pointer;
  border: 1px solid rgba(146,176,121,0.3);
  background-color: rgba(12,12,10,0.85);
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
  transition: box-shadow 0.3s ease;
  text-decoration: none;
}

.botones-flotantes.derecha.visible .boton-flotante {
  pointer-events: all;
}

.botones-flotantes.derecha.visible .boton-flotante:nth-child(1) {
  animation: burbuja-aparecer 0.6s ease 0.1s forwards;
}

.botones-flotantes.derecha.visible .boton-flotante:nth-child(2) {
  animation: burbuja-aparecer 0.6s ease 0.2s forwards;
}

.botones-flotantes.derecha.fue-visible:not(.visible) .boton-flotante {
  pointer-events: none;
  animation: burbuja-desaparecer 0.4s ease forwards;
}

@keyframes burbuja-aparecer {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes burbuja-desaparecer {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

.boton-flotante img {
  max-width: 55px;
  max-height: 55px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gmail img {
  max-width: 45px;
  max-height: 45px;
  width: auto;
  height: auto;
  object-fit: contain;
}


@media (max-width: 768px) {
  .nosotros-titulo br {
    display: none;
  }
  .nosotros-titulo {
    text-align: left;
    white-space: nowrap;
    font-size: 8vw;
  }
}

.nosotros-parrafo {
  text-wrap: balance;
}