/*VARIABLES DE COLOR*/
:root {
  --azul-oscuro: #071658;
  --amarillo: #Ffb603;
  --gris-claro: #F3F4F6;
  --gris: #6B7280;
  --blanco: #FFFFFF;
}

/*RESETEO GENERAL*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--blanco);
  color: var(--azul-oscuro);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/*HEADER PREMIUM*/
.header {
  width: 100%;
  background: linear-gradient(135deg, #071658 0%, #0a1d7a 50%, #071658 100%);
  color: var(--blanco);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(7, 22, 88, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 182, 3, 0.1);
  transition: all 0.3s ease;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--amarillo) 20%,
      var(--amarillo) 80%,
      transparent 100%);
  opacity: 0.6;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.logo-container::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle at center, rgba(255, 182, 3, 0.15) 0%, transparent 70%);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.logo-container:hover::before {
  opacity: 1;
}

.logo-container:hover {
  transform: translateY(-2px);
}

.logo-img {
  height: 72px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(255, 182, 3, 0.3));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container:hover .logo-img {
  filter: drop-shadow(0 6px 20px rgba(255, 182, 3, 0.5));
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 35px;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 10px 16px;
  letter-spacing: 0.3px;
  border-radius: 8px;
  will-change: transform;
}

/* Efecto de fondo al hover */
.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 182, 3, 0.15) 0%, transparent 70%);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-links a:hover::before {
  opacity: 1;
}

/* Underline animado con gradiente */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--amarillo) 20%,
      #f59e0b 50%,
      var(--amarillo) 80%,
      transparent 100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 182, 3, 0.5);
}

.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a:hover {
  color: #ffffff;
  transform: translateY(-2px);
  text-shadow: 0 0 20px rgba(255, 182, 3, 0.3);
}

/* Estado activo para la página actual */
.nav-links a.active {
  color: var(--amarillo);
  background: rgba(255, 182, 3, 0.1);
  border: 1px solid rgba(255, 182, 3, 0.3);
}

.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.btn-consignar,
.btn-ingresar {
  background: linear-gradient(135deg, transparent 0%, rgba(255, 182, 3, 0.1) 100%);
  border: 2px solid var(--amarillo);
  color: var(--amarillo);
  padding: 12px 28px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 182, 3, 0.2);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  will-change: transform;
}

/* Efecto ripple circular */
.btn-consignar::before,
.btn-ingresar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--amarillo);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

/* Efecto shimmer/shine animado */
.btn-consignar::after,
.btn-ingresar::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.btn-consignar:hover::after,
.btn-ingresar:hover::after {
  left: 200%;
}

.btn-consignar:hover::before,
.btn-ingresar:hover::before {
  width: 400px;
  height: 400px;
}

.btn-consignar:hover,
.btn-ingresar:hover {
  color: var(--azul-oscuro);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 35px rgba(255, 182, 3, 0.5);
  border-color: var(--amarillo);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-consignar:active,
.btn-ingresar:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 6px 20px rgba(255, 182, 3, 0.4);
}

/* Efecto de pulso sutil en botón Consignar */
@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(255, 182, 3, 0.2);
  }

  50% {
    box-shadow: 0 4px 25px rgba(255, 182, 3, 0.4);
  }
}

.btn-consignar {
  animation: pulse-glow 3s ease-in-out infinite;
}

.btn-consignar:hover {
  animation: none;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}


/*MENÚ RESPONSIVE*/
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--amarillo);
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 8px;
}

.menu-toggle:hover {
  background: rgba(255, 182, 3, 0.1);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 75px;
    right: -280px;
    background: linear-gradient(135deg, #071658 0%, #0a1d7a 100%);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    width: 250px;
    height: calc(100vh - 75px);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(255, 182, 3, 0.2);
  }

  .navbar.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background: rgba(255, 182, 3, 0.1);
    transform: translateX(5px);
  }

  .btn-consignar,
  .btn-ingresar {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .header-buttons {
    width: 100%;
    flex-direction: column;
  }

  .menu-toggle {
    display: block;
  }

  .logo-img {
    height: 45px;
  }

  .header {
    padding: 14px 5%;
  }
}

/*HERO/BUSCADOR*/
.hero-search {
  position: relative;
  height: 90vh;
  background: url("../assets/heroImagen2.avif") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--blanco);
  margin-top: 70px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* Reducido de 0.5 a 0.4 */
}

.hero-search h1 {
  font-size: 2.5rem;
  font-weight: 800;
  z-index: 2;
  margin-bottom: 15px;
  animation: fadeInUp 0.8s ease-out;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero-search .hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  z-index: 2;
  margin-bottom: 25px;
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
  z-index: 2;
  display: flex;
  gap: 2rem;
  margin-bottom: 25px;
  animation: fadeInUp 1.2s ease-out 0.4s both;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.hero-stat i {
  color: var(--amarillo);
  font-size: 1.3rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-box {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 25px;
  width: 90%;
  max-width: 900px;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.4s ease-out 0.6s both;
}

.search-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.tab-btn {
  background-color: transparent;
  border: 2px solid var(--azul-oscuro);
  color: var(--azul-oscuro);
  padding: 8px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  font-size: 1rem;
}

.tab-btn.active,
.tab-btn:hover {
  background-color: var(--azul-oscuro);
  color: var(--blanco);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 22, 88, 0.3);
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.search-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field-wrapper i {
  position: absolute;
  left: 12px;
  color: var(--gris);
  font-size: 1.1rem;
}

.search-field {
  padding: 10px 14px 10px 40px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  width: 220px;
  outline: none;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.search-field:focus {
  border-color: var(--amarillo);
  box-shadow: 0 0 0 3px rgba(255, 182, 3, 0.1);
}

.search-btn {
  background-color: var(--azul-oscuro);
  color: var(--blanco);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-btn:hover {
  background-color: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 22, 88, 0.3);
}

.search-btn.yellow {
  background-color: var(--amarillo);
  color: var(--azul-oscuro);
}

.search-btn.yellow:hover {
  background-color: #eab308;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 182, 3, 0.4);
}

/*PROPIEDADES*/
.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 90%;
  margin: 50px auto;
  text-align: center;
}

.destacadas {
  font-size: 1.8rem;
  margin-bottom: 25px;
  margin-top: 25px;
  text-align: center;
}

.propiedades {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 0 10px;
}

.propiedades .contenedor {
  flex: 1 1 300px;
}

.contenedor {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 350px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.contenedor:hover {
  box-shadow: 0 12px 28px rgba(7, 22, 88, 0.2);
  transform: translateY(-10px);
}

/* Property Badges */
.property-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-nuevo {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.badge-destacado {
  background: linear-gradient(135deg, var(--amarillo) 0%, #f59e0b 100%);
  color: var(--azul-oscuro);
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.carousel:hover {
  cursor: pointer;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.btn-izquierda,
.btn-derecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 22, 88, 0.9);
  color: var(--amarillo);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.btn-izquierda:hover,
.btn-derecha:hover {
  background: var(--amarillo);
  color: var(--azul-oscuro);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 182, 3, 0.5);
}

.btn-izquierda {
  left: 8px;
}

.btn-derecha {
  right: 8px;
}


.contenedor .contenido {
  padding: 14px;
  color: #111;
}

.contenedor .contenido .estado {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  background: #071658;
  padding: 2px 4px;
  border-radius: 4px;
  color: #ffb603;
  margin: 2px 40px 0 0;
}

.contenedor .contenido .tipo {
  font-size: 0.9rem;
  font-weight: 600;
  color: #071658;
  margin: 2px 0 0 0;
}

.contenedor .contenido .codigo {
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  margin: 2px 0 0 0;
}

.contenedor .contenido .direccion {
  font-size: 0.9rem;
  margin: 8px 0 10px 0;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contenedor .contenido .direccion i {
  color: var(--amarillo);
  font-size: 1rem;
}

.contenedor .contenido .precio {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 30px 0 0 0;
  color: #071658;
  border-bottom: #ccc;
}

.contenedor .contenido .titulo {
  font-size: 1rem;
  font-weight: 500;
  margin: 10px 0 0 0;
  line-height: 1.4;
}

.contenedor .contenido .iconos {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 10px 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.contenedor .contenido .iconos li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #555;
}

.contenedor .contenido .iconos li span {
  margin-right: 6px;
  font-size: 1.4rem;
  color: #ffb603;
}

.contacto {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 14px;
  text-align: center;
  gap: 10px;
}

.btn-contacto,
.btn-detalles {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #071658;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  transition: background 0.3s ease;
}

.btn-contacto:hover,
.btn-detalles:hover {
  background: #ffb603;
}


@media (max-width: 350px) {

  body {
    padding-top: 0px;
  }

  .slide img {
    height: 180px;
  }

  .contenido {
    padding: 15px;
  }

  .contido .precio {
    font-size: 1.2rem;
  }

  .contenido .titulo {
    font-size: 0.9rem;
  }
}

.btn-details:hover {
  background-color: #1e293b;
}

.btn-all-properties {
  display: flex;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: var(--amarillo);
  color: var(--azul-oscuro);
  font-weight: 600;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-all-properties:hover {
  background-color: #eab308;
}

/* ======== WHY CHOOSE US SECTION ======== */
.why-choose-us {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 20px;
  margin: 3rem auto;
}

.why-choose-us h2 {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  color: var(--azul-oscuro);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
  font-weight: 400;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.why-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.why-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--azul-oscuro) 0%, var(--amarillo) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.why-item:hover::before {
  transform: scaleX(1);
}

.why-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 28px rgba(7, 22, 88, 0.15);
}

.why-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, #1e3a8a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--amarillo);
  transition: all 0.3s ease;
}

.why-item:hover .why-icon {
  transform: rotate(360deg) scale(1.1);
  background: linear-gradient(135deg, var(--amarillo) 0%, #f59e0b 100%);
  color: var(--azul-oscuro);
}

.why-item h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--azul-oscuro);
  margin: 1rem 0 0.5rem;
  line-height: 1;
}

.why-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--azul-oscuro);
  margin-bottom: 0.5rem;
}

.why-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .why-item h3 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/*SERVICIOS*/
.services {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  border-radius: 20px;
}

.services h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--azul-oscuro);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-item {
  background: white;
  padding: 30px;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--azul-oscuro) 0%, var(--amarillo) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(7, 22, 88, 0.15);
  border-color: var(--amarillo);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--amarillo);
  margin-bottom: 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.service-item:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--azul-oscuro);
}

.service-item h3 {
  color: var(--azul-oscuro);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-item p {
  color: #666;
  line-height: 1.6;
}

.preguntas-frecuentes h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  margin-top: 25px;
  text-align: center;
}

.preguntas-frecuentes p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* ======== TESTIMONIALS SECTION ======== */
.testimonials {
  padding: 4rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  margin: 3rem auto;
}

.testimonials h2 {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  color: var(--azul-oscuro);
  margin-bottom: 0.5rem;
}

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 60px;
}

.testimonials-container {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.testimonial-card.prev {
  transform: translateX(-100%);
}

.stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--amarillo);
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  color: var(--amarillo);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: Georgia, serif;
}

.testimonial-author h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 0.3rem;
}

.testimonial-author p {
  font-size: 0.95rem;
  color: #666;
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--azul-oscuro);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(7, 22, 88, 0.2);
}

.testimonial-nav:hover {
  background: var(--amarillo);
  color: var(--azul-oscuro);
  transform: translateY(-50%) scale(1.1);
}

.testimonial-nav.prev {
  left: 0;
}

.testimonial-nav.next {
  right: 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--azul-oscuro);
  width: 32px;
  border-radius: 6px;
}

.dot:hover {
  background: var(--amarillo);
}

@media (max-width: 768px) {
  .testimonials-carousel {
    padding: 0 50px;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
    min-height: 300px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .testimonial-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .testimonials-carousel {
    padding: 0 40px;
  }

  .testimonial-nav {
    width: 35px;
    height: 35px;
  }
}

/*MODALES*/
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background-color: var(--blanco);
  padding: 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 450px;
  position: relative;
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 10px;
  color: var(--azul-oscuro);
}

.modal-content p {
  text-align: center;
}

.form-group-modal {
  margin-bottom: 16px;
  text-align: left;
}

.form-group-modal label {
  display: block;
  margin-bottom: 6px;
  color: var(--azul-oscuro);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  margin-bottom: 0;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.modal-content select {
  cursor: pointer;
  background-color: white;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071658' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 35px;
}

.modal-content select:focus {
  border-color: var(--amarillo);
  box-shadow: 0 0 0 3px rgba(255, 182, 3, 0.1);
}

.modal-content input:focus,
.modal-content textarea:focus {
  border-color: var(--amarillo);
  box-shadow: 0 0 0 3px rgba(255, 182, 3, 0.1);
}

.btn-modal {
  width: 100%;
  background-color: var(--azul-oscuro);
  color: var(--blanco);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-modal:hover {
  background-color: var(--amarillo);
  color: var(--azul-oscuro);
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--gris);
}

/* MODAL MENSAJES PERSONALIZADOS */
.modal-mensaje {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-mensaje-content {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-mensaje-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
}

.modal-mensaje-content.exito .modal-mensaje-icon {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.modal-mensaje-content.error .modal-mensaje-icon {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

.modal-mensaje-titulo {
  color: var(--azul-oscuro);
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.modal-mensaje-texto {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.modal-mensaje-btn {
  background: var(--azul-oscuro);
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-mensaje-btn:hover {
  background: var(--amarillo);
  color: var(--azul-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 182, 3, 0.4);
}

/*FOOTER*/
.site-footer {
  background-color: #071658;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  padding: 3rem 1.5rem 1rem;
  border-top: 5px solid #ffb603;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

/* SECCIONES DEL FOOTER */

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  width: 120px;
  margin-bottom: 0.75rem;
}

.brand-text {
  font-weight: 600;
  font-size: 1.2rem;
  color: #ffb603;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.5rem;
  color: #d4d4d4;
}

/*ENLACES Y CONTACTO*/

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: #ffb603;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-links a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ffb603;
}

.footer-contact i {
  color: #ffb603;
  margin-right: 8px;
}

/*REDES SOCIALES*/

.social-icons a {
  color: #fff;
  font-size: 1.2rem;
  margin-right: 12px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #ffb603;
}

/*PARTE INFERIOR*/

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #ccc;
}

.footer-bottom .footer-legal {
  margin-top: 0.5rem;
}

.footer-bottom a {
  color: #ffb603;
  margin: 0 10px;
  text-decoration: none;
  font-size: 0.85rem;
}

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

/* RESPONSIVE */

@media (max-width: 600px) {
  .footer-container {
    text-align: center;
  }

  .footer-social .social-icons a {
    margin: 0 8px;
  }

  .footer-brand {
    margin: 0 auto;
  }
}


/* HEADER CON FILTROS */


/* Contenedor principal */
.filters-header {
  width: 100%;
  margin-bottom: 20px;
}

/* Solo esta barra será fija */
.search-bar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  justify-content: center;
  padding: 10px 20px;
}

/* Inputs y botones */
.search-input {
  flex: 1 1 240px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  min-width: 180px;
}

.filter-group,
.filter-group-dropdowns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn,
.dropdown-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #444;
  transition: 0.3s;
  outline: none;
}

.filter-btn.active-opcion {
  background: #071658;
  color: #ffb603;
  border-color: #071658;
}

.filter-btn:hover,
.dropdown-btn:hover {
  background: #f9f9f9;
}


/*RESPOONSIVE HEADER*/
@media (max-width: 768px) {

  body {
    padding-top: 0px;
  }

  .search-bar-fixed {
    align-items: stretch;
    gap: 10px;
  }

  .filter-btn {
    display: none;
  }

  .filter-group,
  .filter-group-dropdowns {
    width: 100%;
    justify-content: center;
  }

  .dropdown-btn {
    flex: 1 1 45%;
  }
}


@media (max-width: 480px) {

  body {
    padding-top: 0px;
  }

  .search-bar-fixed {
    gap: 10px;
  }

  .filter-group {
    justify-content: center;
  }

}

/* ======== RIPPLE EFFECT FOR BUTTONS ======== */
.btn-contacto,
.btn-detalles,
.search-btn,
.tab-btn,
.btn-all-properties {
  position: relative;
  overflow: hidden;
}

.btn-contacto::after,
.btn-detalles::after,
.search-btn::after,
.tab-btn::after,
.btn-all-properties::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-contacto:active::after,
.btn-detalles:active::after,
.search-btn:active::after,
.tab-btn:active::after,
.btn-all-properties:active::after {
  width: 300px;
  height: 300px;
}

/* ======== MOBILE OPTIMIZATIONS ======== */

/* Touch-friendly buttons (min 44px) */
@media (max-width: 768px) {

  .btn-contacto,
  .btn-detalles,
  .search-btn,
  .tab-btn,
  .btn-all-properties,
  .testimonial-nav,
  .whatsapp-float {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
  }

  /* Optimized hero for mobile */
  .hero-search {
    height: auto;
    min-height: 70vh;
    padding: 2rem 1rem;
  }

  .hero-search h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .search-box {
    padding: 20px;
  }

  .search-form {
    flex-direction: column;
    gap: 12px;
  }

  .search-field-wrapper,
  .search-field {
    width: 100%;
  }

  .search-btn {
    width: 100%;
  }

  /* Reduced image sizes for mobile */
  .slide img {
    height: 200px;
    object-fit: cover;
  }

  /* Better spacing on mobile */
  .container {
    padding: 1.5rem 1rem;
  }

  section {
    margin-bottom: 3rem;
  }

  /* Larger touch targets for carousel */
  .btn-izquierda,
  .btn-derecha {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* Stack property cards nicely */
  .propiedades {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Improve testimonial cards on mobile */
  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .hero-search h1 {
    font-size: 1.5rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-carousel {
    padding: 0 35px;
  }
}