/* Reseteo básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f7f7f7;
  color: #333;
}

h5 {
  color: #dca743;
  text-shadow: 0.5px 0.5px 10px rgba(0, 0, 0, 0.4);
  
}

/* --- VARIABLES PARA EL NUEVO BOTÓN DE UIVERSE --- */
@property --angle-1 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -75deg;
}

@property --angle-2 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -45deg;
}

:root {
  --anim--hover-time: 400ms;
  --anim--hover-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- CABECERA Y LOGO --- */
header {
  background-color: #dfdfdf;
}

.header-superior {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  max-width: 1440px;
  margin: 0 auto;
}

.logo-container {
  margin-bottom: 0;
}

.logo-real {
  max-height: 100px;
  width: auto;
  display: block;
}
/* =======================================================
   --- BUSCADOR AVANZADO Y FILTROS ---
   ======================================================= */
.buscador-avanzado {
  max-width: 1100px;
  margin: -40px auto 40px auto;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.buscador-container {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: grid;
  /* Transformamos el buscador en una cuadrícula */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  /* Crea columnas automáticas */
  gap: 15px;
  align-items: center;
}

/* Hacemos que el botón destaque más en la nueva cuadrícula */
#btn-buscar {
  height: 48px;
  width: 100%;
  background-color: #ffffff;
  color: #dca743;
}

#btn-buscar:hover {
  background-color: #dca743;
  color: #ffffff;
}

/* Asegurar que en celulares el buscador quede en una sola columna */
@media (max-width: 800px) {
  .buscador-container {
    grid-template-columns: 1fr;
  }
}
/* --- BUSCADOR EN LA BARRA DE NAVEGACIÓN (ANIMADO) --- */
.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 50px;
}

.buscador-nav {
  position: absolute;
  right: 50px;
  display: flex;
  align-items: center;
  height: 40px;
  /* Altura controlada para no deformar la barra */
}

.container-search {
  position: relative;
  width: 40px;
  height: 40px;
}

.container-search .search {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background-color: #222222;
  /* Color negro de la marca */
  border-radius: 50%;
  z-index: 4;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: 0.5s all;
  cursor: pointer;
  pointer-events: none;
  /* Permite hacer clic en el input invisible */
}

.container-search .search::before {
  content: " ";
  position: absolute;
  margin: auto;
  top: 12px;
  left: 12px;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 2px;
  background-color: #fff;
  transform: rotate(45deg);
  transition: 0.5s all;
}

.container-search .search::after {
  content: " ";
  position: absolute;
  margin: auto;
  top: -3px;
  left: -3px;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  transition: 0.5s all;
}

.container-search input {
  position: absolute;
  top: 0;
  right: 0;
  /* Crece hacia la izquierda */
  width: 40px;
  height: 40px;
  outline: none;
  border: none;
  background-color: #222222;
  color: #fff;
  padding: 0 40px 0 20px;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  z-index: 5;
  letter-spacing: 0.05em;
  transition: 0.5s all;
  cursor: pointer;
}

.container-search input:focus {
  width: 250px;
  opacity: 1;
  cursor: text;
}

.container-search input:focus~.search {
  background-color: #dca743;
  /* Cambia a Dorado al hacer clic */
  z-index: 6;
}

.container-search input:focus~.search::before {
  top: 0;
  left: 0;
  width: 20px;
}

.container-search input:focus~.search::after {
  top: 0;
  left: 0;
  width: 20px;
  height: 2px;
  border: none;
  background-color: #fff;
  border-radius: 0;
  transform: rotate(-45deg);
}

.container-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.oculto-texto {
  display: none !important;
}

/* --- CONTACTOS RÁPIDOS --- */
.contacto-rapido {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.socialContainer {
  width: 45px;
  height: 45px;
  background-color: #222222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition-duration: .3s;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  cursor: pointer;
}

.whatsappBtn:hover {
  background-color: #25D366;
  transition-duration: .3s;
}

.emailBtn:hover {
  background-color: #dca743;
  transition-duration: .3s;
}

.instagramBtn:hover {
  background-color: #d62976;
  transition-duration: .3s;
}

.socialContainer:active {
  transform: scale(0.9);
  transition-duration: .3s;
}

.socialSvg {
  width: 18px;
  height: auto;
}

.socialSvg path {
  fill: rgb(255, 255, 255);
}

.socialContainer:hover .socialSvg {
  animation: slide-in-top 0.3s both;
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- BARRA DORADA Y MENÚ --- */
.barra-dorada {
  background-color: #dca743;
  width: 100%;
  padding: 15px 0;
}

.barra-dorada ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 60px;
}

.barra-dorada a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s ease;
}

.barra-dorada a:hover {
  color: #ffffff;
}

/* --- SECCIÓN PRINCIPAL (HERO) CON NUEVA FUENTE --- */
.hero {
  text-align: center;
  padding: 140px 20px 160px 20px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('fondo-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  /* La fuente elegante */
  font-size: 52px;
  color: #dca743;
  margin-bottom: 30px;
  font-weight: 700;
  font-style: italic;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
}

.buscador-container {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: grid;
  /* Transformamos el buscador en una cuadrícula */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  /* Crea columnas automáticas */
  gap: 15px;
  align-items: center;
}

/* Hacemos que el botón destaque más en la nueva cuadrícula */
#btn-buscar {
  height: 48px;
  width: 100%;
  background-color: #222;
  color: #dca743;
}

#btn-buscar:hover {
  background-color: #dca743;
  color: #222;
}

/* Asegurar que en celulares el buscador quede en una sola columna */
@media (max-width: 800px) {
  .buscador-container {
    grid-template-columns: 1fr;
  }
}

/* --- INMUEBLES DESTACADOS --- */
.seccion-destacados {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

.titulo-seccion {
  font-size: 24px;
  margin-bottom: 30px;
  color: #222;
  border-bottom: 3px solid #dca743;
  display: inline-block;
  padding-bottom: 5px;
}

.contenedor-tarjetas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.tarjeta-pro {
  background-color: #ffffff;
  width: calc(33.333% - 14px);
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-pro:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.oculto {
  display: none !important;
}

.imagen-contenedor {
  position: relative;
}

.imagen-gris {
  background-color: #7b7b7b;
  height: 220px;
  width: 100%;
}

.foto-inmueble {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.etiqueta-operacion {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #dca743;
  color: #222;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 4px;
}

.etiqueta-alquiler {
  background-color: #222;
  color: #ffffff;
}

.info-tarjeta-pro {
  padding: 20px;
}

.precio-tarjeta {
  font-size: 24px;
  color: #dca743;
  margin-bottom: 5px;
}

.titulo-inmueble {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.3;
}

.ubicacion-tarjeta {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

.linea-divisoria {
  border: 0;
  height: 1px;
  background-color: #eee;
  margin-bottom: 15px;
}

.caracteristicas-tarjeta {
  display: flex;
  justify-content: space-between;
  color: #555;
  font-size: 14px;
}

/* --- MENSAJE SIN RESULTADOS --- */
.mensaje-vacio {
  text-align: center;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px dashed #ccc;
  width: 100%;
  margin-top: 20px;
}

.mensaje-vacio h3 {
  color: #222;
  margin-bottom: 10px;
  font-size: 20px;
}

.mensaje-vacio p {
  color: #777;
  margin-bottom: 20px;
}

/* --- BOTÓN TIPO GOOGLE --- */
.button-17 {
  align-items: center;
  appearance: none;
  background-color: #fff;
  border-radius: 24px;
  border-style: none;
  box-shadow: rgba(0, 0, 0, .2) 0 3px 5px -1px, rgba(0, 0, 0, .14) 0 6px 10px 0, rgba(0, 0, 0, .12) 0 1px 18px 0;
  box-sizing: border-box;
  color: #3c4043;
  cursor: pointer;
  display: inline-flex;
  fill: currentcolor;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  height: 48px;
  justify-content: center;
  letter-spacing: .25px;
  line-height: normal;
  max-width: 100%;
  overflow: visible;
  padding: 2px 24px;
  position: relative;
  text-align: center;
  text-transform: none;
  transition: box-shadow 280ms cubic-bezier(.4, 0, .2, 1), opacity 15ms linear 30ms, transform 270ms cubic-bezier(0, 0, .2, 1) 0ms, background-color 0.3s, color 0.3s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: auto;
  will-change: transform, opacity;
  z-index: 0;
}

.button-17:hover {
  background: #222;
  color: #dca743;
}

.button-17:active {
  box-shadow: 0 4px 4px 0 rgb(60 64 67 / 30%), 0 8px 12px 6px rgb(60 64 67 / 15%);
  outline: none;
}

.button-17:focus {
  outline: none;
  border: 2px solid #dca743;
}

/* --- BANNER INTERNO --- */
.banner-interno {
  background-color: #222222;
  text-align: center;
  padding: 60px 20px 80px 20px;
}

.banner-interno h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: #dca743;
  margin-bottom: 10px;
}

.banner-interno p {
  color: #ffffff;
  font-size: 16px;
  opacity: 0.8;
}

/* --- SECCIÓN NOSOTROS --- */
.seccion-nosotros {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  display: flex;
  gap: 50px;
  align-items: center;
}

.texto-historia {
  flex: 1;
}

.texto-historia h2 {
  color: #222;
  font-size: 32px;
  margin-bottom: 25px;
  border-bottom: 3px solid #dca743;
  display: inline-block;
  padding-bottom: 5px;
}

.texto-historia p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 16px;
  text-align: justify;
}

.subtitulo-valores {
  color: #222;
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.imagen-historia {
  flex: 1;
  background-color: #e0e0e0;
  height: 450px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.placeholder-imagen span {
  color: #888;
  font-weight: 600;
  font-size: 18px;
}

/* --- SECCIÓN CONTACTO --- */
.seccion-contacto {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  display: flex;
  gap: 50px;
}

.formulario-contacto,
.info-ubicacion {
  flex: 1;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.formulario-contacto h2,
.info-ubicacion h2 {
  margin-bottom: 25px;
  color: #222;
  font-size: 24px;
}

.campo {
  margin-bottom: 20px;
}

.campo label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.campo input,
.campo textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}

.campo input:focus,
.campo textarea:focus {
  border-color: #dca743;
}

.mapa-falso {
  width: 100%;
  height: 250px;
  background-color: #eee;
  margin-top: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

/* --- FOOTER (PIE DE PÁGINA) --- */
footer {
  background-color: #222;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 50px;
}

.footer-content p {
  font-size: 14px;
  opacity: 0.7;
}

.footer-logo {
  max-height: 50px;
  filter: brightness(0) invert(1);
  margin-bottom: 15px;
}

/* --- RESPONSIVE --- */
@media (max-width: 800px) {

  .seccion-nosotros,
  .seccion-contacto {
    flex-direction: column;
  }

  .imagen-historia {
    width: 100%;
    height: 300px;
  }
}



/* =======================================================
   --- PÁGINA DE DETALLE DE PROPIEDAD (ESTILO FARRO) ---
   ======================================================= */
.contenedor-detalle {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  /* Columna izquierda más grande que la derecha */
  gap: 40px;
}

.galeria-principal img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.encabezado-propiedad h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #222;
  margin-bottom: 10px;
}

.ubicacion-detalle {
  color: #777;
  font-size: 16px;
  margin-bottom: 15px;
}

.precio-destacado {
  font-size: 36px;
  color: #dca743;
  font-weight: bold;
  margin-bottom: 25px;
}

.detalles-basicos {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  margin-bottom: 30px;
}

.item-detalle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #444;
  font-weight: 600;
}

.descripcion-propiedad h3 {
  font-size: 22px;
  color: #222;
  margin-bottom: 15px;
  border-bottom: 2px solid #dca743;
  display: inline-block;
  padding-bottom: 5px;
}

.descripcion-propiedad p {
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
  text-align: justify;
}

/* Tarjeta Lateral del Agente */
.sidebar-agente {
  position: relative;
}

.tarjeta-agente {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: sticky;
  /* Hace que la tarjeta baje contigo al hacer scroll */
  top: 40px;
  border-top: 5px solid #dca743;
}

.foto-agente {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f8f9fa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.tarjeta-agente h4 {
  font-size: 20px;
  color: #222;
  margin-bottom: 5px;
}

.cargo-agente {
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 600;
}

.btn-whatsapp-agente {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25D366;
  color: white;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  font-size: 16px;
}

.btn-whatsapp-agente:hover {
  background-color: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-ver-detalles {
  width: 100%;
  margin-top: 15px;
  background-color: #222;
  color: #dca743;
}

.btn-ver-detalles:hover {
  background-color: #dca743;
  color: #222;
}

/* Responsive para celulares */
@media (max-width: 900px) {
  .contenedor-detalle {
    grid-template-columns: 1fr;
    /* Pasa a una sola columna */
  }

  .galeria-principal img {
    height: 300px;
  }
}
/* =======================================================
   --- DIRECTORIO DE AGENTES ---
   ======================================================= */
.seccion-directorio {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

.contenedor-agentes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.tarjeta-directorio {
  background-color: var(--color-blanco);
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border-top: 5px solid var(--color-dorado);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-directorio:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.foto-directorio {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px auto;
  border: 4px solid var(--color-fondo);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

.tarjeta-directorio h4 {
  font-size: 22px;
  color: var(--color-negro);
  margin-bottom: 5px;
}

.tarjeta-directorio p {
  color: var(--color-gris);
  font-size: 15px;
  margin-bottom: 20px;
  font-weight: 600;
}
/* =======================================================
   --- NUEVO FORMULARIO DE CONTACTO (ESTILO UIVERSE) ---
   ======================================================= */
.form-uiverse {
  --input-focus: var(--color-dorado);
  /* Cambiado al dorado de tu marca */
  --font-color: #323232;
  --font-color-sub: #666;
  --bg-color: #fff;
  --main-color: #323232;
  padding: 30px;
  background: #f0f0f0;
  /* Un gris más limpio que el lightgrey */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  border-radius: 8px;
  border: 2px solid var(--main-color);
  box-shadow: 6px 6px var(--main-color);
  width: 100%;
}

.form-uiverse .title {
  color: var(--font-color);
  font-weight: 900;
  font-size: 24px;
  margin-bottom: 5px;
  border: none;
  /* Evita conflicto con estilos anteriores */
}

.form-uiverse .title span {
  color: var(--font-color-sub);
  font-weight: 600;
  font-size: 17px;
}

.form-uiverse .input {
  width: 100%;
  /* Adaptado para que ocupe todo el espacio */
  min-height: 45px;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  background-color: var(--bg-color);
  box-shadow: 4px 4px var(--main-color);
  font-size: 15px;
  font-weight: 600;
  color: var(--font-color);
  padding: 10px 15px;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}

/* Estilo específico para la caja de texto del mensaje */
.form-uiverse textarea.input {
  height: 120px;
  resize: none;
}

.form-uiverse .input::placeholder {
  color: var(--font-color-sub);
  opacity: 0.8;
}

.form-uiverse .input:focus {
  border: 2px solid var(--input-focus);
}

.form-uiverse .button-confirm {
  margin: 20px auto 0 auto;
  width: 150px;
  height: 45px;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  background-color: var(--color-dorado);
  box-shadow: 4px 4px var(--main-color);
  font-size: 17px;
  font-weight: 800;
  color: var(--color-negro);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.form-uiverse .button-confirm:active {
  box-shadow: 0px 0px var(--main-color);
  transform: translate(4px, 4px);
}

/* =======================================================
   --- SECCIÓN: VENDE O ARRIENDA TU INMUEBLE ---
   ======================================================= */
.seccion-captacion {
  background-color: #222222;
  padding: 80px 20px;
  margin-top: 20px;
}

.contenedor-captacion {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.info-captacion {
  flex: 1;
  color: #ffffff;
}

.info-captacion h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: #dca743;
  margin-bottom: 20px;
  line-height: 1.2;
}

.info-captacion p {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 30px;
  text-align: justify;
}

.opciones-contacto-captacion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.opciones-contacto-captacion span {
  font-size: 14px;
  color: #aaaaaa;
  font-style: italic;
}

.btn-whatsapp-captacion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25D366;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-captacion:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.formulario-captacion {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.captacion-form {
  max-width: 450px;
  /* Reutilizamos los estilos base de .form-uiverse pero ajustamos para este espacio */
}

/* Responsive para el banner de captación */
@media (max-width: 900px) {
  .contenedor-captacion {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .info-captacion p {
    text-align: center;
  }

  .formulario-captacion {
    justify-content: center;
    width: 100%;
  }

  .btn-whatsapp-captacion {
    margin: 0 auto;
  }
}

/* =======================================================
   --- SISTEMA DE CARRUSEL Y SCROLL LATERAL (MAX 3 FOTOS) ---
   ======================================================= */

/* Carrusel en la página de Detalles (Scroll nativo) */
.galeria-principal {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 12px;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.galeria-principal::-webkit-scrollbar {
  display: none;
  /* Oculta la barra pero mantiene el scroll */
}

.galeria-principal img,
.galeria-principal .imagen-gris {
  flex: 0 0 100%;
  scroll-snap-align: start;
  object-fit: cover;
  height: 500px;
  width: 100%;
}

/* Carrusel en las Tarjetas (Animación al pasar el mouse) */
.imagen-contenedor {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.contenedor-fotos-tarjeta {
  display: flex;
  width: 300%;
  /* Espacio exacto para 3 fotos */
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.contenedor-fotos-tarjeta img,
.contenedor-fotos-tarjeta .imagen-gris {
  width: 33.333%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Solo se anima cuando el mouse está encima de la tarjeta */
.tarjeta-pro:hover .contenedor-fotos-tarjeta {
  animation: scrollFotosTarjeta 8s infinite ease-in-out;
}

@keyframes scrollFotosTarjeta {

  0%,
  20% {
    transform: translateX(0);
  }

  /* Foto 1 */
  33%,
  53% {
    transform: translateX(-33.333%);
  }

  /* Foto 2 */
  66%,
  86% {
    transform: translateX(-66.666%);
  }

  /* Foto 3 */
  100% {
    transform: translateX(0);
  }

  /* Reinicio */
}

