/* =========================================================
   ESTILOS MODERNOS Y MEJORADOS - INMOBILIARIA
   Con animaciones, efectos 3D y diseño atractivo
========================================================= */

/* =========================================================
   VARIABLES Y RESET
========================================================= */
:root {
  --color-primario: #1e293b;
  --color-primario-hover: #334155;
  --color-secundario: #2c3e50;
  --color-acento: #64748b;
  --color-fondo: #f8fafc;
  --color-blanco: #ffffff;
  --color-texto: #333;
  --sombra-suave: 0 4px 20px rgba(0, 0, 0, 0.08);
  --sombra-elevada: 0 10px 40px rgba(0, 0, 0, 0.15);
  --transicion: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-fondo);
  color: var(--color-texto);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================================================
   ANIMACIONES KEYFRAMES
========================================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes pulseWhatsApp {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7), 
                0 0 0 10px rgba(37, 211, 102, 0.1),
                0 0 0 20px rgba(37, 211, 102, 0.05);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* =========================================================
   COMPONENTES PRINCIPALES
========================================================= */

/* ENCABEZADO CON EFECTO GLASSMORPHISM */
.header {
  align-items: center;
  animation: fadeIn 0.6s ease-out;
  background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-primario-hover) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  color: var(--color-blanco);
  display: flex;
  justify-content: space-between;
  padding: 12px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .logo {
  align-items: center;
  animation: slideInFromLeft 0.8s ease-out;
  display: flex;
  font-size: 1.3rem;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 1px;
}

.header .logo::before {
  animation: float 3s ease-in-out infinite;
  content: '🏡';
  font-size: 1.6rem;
}

.header ul {
  animation: fadeIn 1s ease-out 0.2s backwards;
  display: flex;
  gap: 30px;
  list-style: none;
}

.header a {
  color: var(--color-blanco);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  text-decoration: none;
  transition: var(--transicion);
}

.header a::after {
  background: var(--color-blanco);
  bottom: 0;
  content: '';
  height: 3px;
  left: 0;
  position: absolute;
  transition: width 0.3s ease;
  width: 0;
}

.header a:hover {
  transform: translateY(-2px);
}

.header a:hover::after {
  width: 100%;
}

/* BANNER CON EFECTO PARALLAX Y OVERLAY DEGRADADO */
.banner {
  animation: fadeIn 1s ease-out;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(51, 65, 85, 0.75) 100%),
              url("../img/banner.jpg") center/cover no-repeat fixed;
  color: var(--color-blanco);
  overflow: hidden;
  padding: 150px 20px;
  position: relative;
  text-align: center;
}

.banner::before {
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.banner-contenido {
  animation: fadeInUp 1s ease-out 0.3s backwards;
  position: relative;
  z-index: 2;
}

.banner h1 {
  animation: scaleIn 0.8s ease-out 0.5s backwards;
  font-size: 3.5em;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.banner p {
  animation: fadeInUp 1s ease-out 0.7s backwards;
  font-size: 1.4em;
  font-weight: 300;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
}

/* FILTROS DE BÚSQUEDA CON GLASSMORPHISM */
.busqueda {
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: -50px auto 0;
  max-width: 1000px;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
}

.busqueda input,
.busqueda select,
.busqueda button {
  background: var(--color-blanco);
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: var(--sombra-suave);
  font-size: 1rem;
  padding: 15px 20px;
  transition: var(--transicion);
  width: 100%;
}

.busqueda button {
  background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-primario-hover) 100%);
  border: none;
  box-shadow: var(--sombra-suave);
  color: var(--color-blanco);
  cursor: pointer;
  font-weight: 600;
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 300px;
  overflow: hidden;
  position: relative;
}

.busqueda button::before {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  content: '';
  height: 0;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  width: 0;
}

.busqueda button:hover::before {
  height: 300px;
  width: 300px;
}

.busqueda button:hover {
  box-shadow: var(--sombra-elevada);
  transform: translateY(-3px);
}

.busqueda button:active {
  transform: translateY(-1px);
}

.busqueda input:focus,
.busqueda select:focus {
  border-color: var(--color-primario);
  box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.1);
  outline: none;
  transform: translateY(-2px);
}

/* SECCIÓN DE PROPIEDADES */
.propiedades {
  animation: fadeIn 1s ease-out;
  margin: auto;
  max-width: 1400px;
  padding: 80px 20px;
}

.propiedades h2 {
  animation: fadeInUp 0.8s ease-out;
  color: var(--color-primario);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
  text-align: center;
}

.propiedades h2::after {
  background: linear-gradient(90deg, transparent, var(--color-primario), transparent);
  border-radius: 2px;
  content: '';
  display: block;
  height: 4px;
  margin: 20px auto 0;
  width: 100px;
}

/* GRID DE PROPIEDADES CON EFECTOS 3D */
.grid {
  animation: fadeIn 1s ease-out 0.3s backwards;
  display: grid;
  gap: 35px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.propiedad {
  animation: scaleIn 0.6s ease-out backwards;
  animation-delay: calc(var(--index, 0) * 0.1s);
  background: var(--color-blanco);
  border-radius: 20px;
  box-shadow: var(--sombra-suave);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: var(--transicion);
}

.propiedad::before {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.1) 0%, transparent 100%);
  bottom: 0;
  content: '';
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.propiedad:hover {
  box-shadow: var(--sombra-elevada);
  transform: translateY(-12px) scale(1.02);
}

.propiedad:hover::before {
  opacity: 1;
}

.propiedad img {
  height: 250px;
  object-fit: cover;
  transition: transform 0.6s ease;
  width: 100%;
}

.propiedad:hover img {
  transform: scale(1.1);
}

.propiedad .info {
  padding: 25px;
  position: relative;
  z-index: 2;
}

.propiedad h3 {
  color: var(--color-primario);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.propiedad:hover h3 {
  color: var(--color-primario-hover);
}

.propiedad p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.propiedad .precio {
  align-items: center;
  color: var(--color-primario);
  display: flex;
  font-size: 1.6rem;
  font-weight: 700;
  gap: 5px;
  margin: 15px 0;
}

.propiedad .precio::before {
  content: '💰';
  font-size: 1.2rem;
}

.propiedad .btn {
  align-items: center;
  background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-primario-hover) 100%);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
  color: var(--color-blanco);
  display: inline-flex;
  font-weight: 600;
  gap: 8px;
  margin-top: 15px;
  overflow: hidden;
  padding: 12px 24px;
  position: relative;
  text-decoration: none;
  transition: var(--transicion);
}

.propiedad .btn::before {
  content: '→';
  opacity: 0;
  position: absolute;
  right: -20px;
  transition: var(--transicion);
}

.propiedad .btn:hover::before {
  opacity: 1;
  right: 20px;
}

.propiedad .btn:hover {
  box-shadow: 0 6px 25px rgba(30, 41, 59, 0.4);
  padding-right: 45px;
  transform: translateX(5px);
}

/* SECCIÓN SOBRE NOSOTROS */
.nosotros {
  background: linear-gradient(135deg, var(--color-blanco) 0%, #f0e9e4 100%);
  overflow: hidden;
  padding: 80px 20px;
  position: relative;
  text-align: center;
}

.nosotros::before {
  content: '🏘️';
  font-size: 20rem;
  left: 50%;
  opacity: 0.05;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.nosotros h2 {
  color: var(--color-primario);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.nosotros p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

/* SECCIÓN DE CONTACTO CON EFECTOS */
.contacto {
  background: linear-gradient(135deg, #f8f4f0 0%, #e8dfd7 100%);
  overflow: hidden;
  padding: 80px 20px;
  position: relative;
}

.contacto::before {
  background: radial-gradient(circle, rgba(30, 41, 59, 0.05) 0%, transparent 70%);
  content: '';
  height: 100%;
  pointer-events: none;
  position: absolute;
  right: -50%;
  top: -50%;
  width: 100%;
}

.contacto h2 {
  color: var(--color-primario);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.contacto form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.contacto input,
.contacto textarea {
  background: var(--color-blanco);
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: var(--sombra-suave);
  font-family: inherit;
  font-size: 1rem;
  padding: 18px 20px;
  transition: var(--transicion);
  width: 100%;
}

.contacto textarea {
  min-height: 150px;
  resize: vertical;
}

.contacto input:focus,
.contacto textarea:focus {
  border-color: var(--color-primario);
  box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.contacto button {
  background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-primario-hover) 100%);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(30, 41, 59, 0.3);
  color: var(--color-blanco);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  overflow: hidden;
  padding: 18px;
  position: relative;
  transition: var(--transicion);
}

.contacto button::before {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  content: '';
  height: 0;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  width: 0;
}

.contacto button:hover::before {
  height: 400px;
  width: 400px;
}

.contacto button:hover {
  box-shadow: 0 8px 30px rgba(30, 41, 59, 0.4);
  transform: translateY(-4px);
}

.contacto button:active {
  transform: translateY(-2px);
}

/* PIE DE PÁGINA */
.footer {
  background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-secundario) 100%);
  color: var(--color-blanco);
  overflow: hidden;
  padding: 40px 20px;
  position: relative;
  text-align: center;
}

.footer::before {
  animation: shimmer 3s linear infinite;
  background: linear-gradient(90deg, 
    transparent, 
    var(--color-acento), 
    var(--color-primario-hover), 
    var(--color-acento), 
    transparent
  );
  content: '';
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.footer p {
  font-size: 1rem;
  opacity: 0.9;
}

/* =========================================================
   COMPONENTES ESPECIALES
========================================================= */

/* BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-float {
  bottom: 25px;
  position: fixed;
  right: 25px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9999;
}

.whatsapp-button {
  align-items: center;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  display: flex;
  height: 60px;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 60px;
  animation: pulseWhatsApp 2s ease-in-out infinite;
}

.whatsapp-button:hover {
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
  transform: scale(1.1);
}

.whatsapp-button svg {
  fill: white;
  height: 35px;
  width: 35px;
}

.whatsapp-tooltip {
  background: #075e54;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  padding: 8px 15px;
  pointer-events: none;
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.whatsapp-tooltip::after {
  border-bottom: 8px solid transparent;
  border-left: 8px solid #075e54;
  border-top: 8px solid transparent;
  content: '';
  height: 0;
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  right: 75px;
}

/* SECCIONES DESTACADAS MEJORADAS */
.destacadas-section {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.03) 0%, rgba(51, 65, 85, 0.05) 100%);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  margin: 40px auto;
  padding: 50px 20px;
}

.destacadas-header {
  align-items: center;
  border-bottom: 3px solid var(--color-primario, #1e293b);
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 20px;
}

.header-content {
  align-items: center;
  display: flex;
  gap: 20px;
}

.header-icono {
  animation: pulse 2s ease-in-out infinite;
  background: linear-gradient(135deg, var(--color-primario, #1e293b), var(--color-primario-hover, #334155));
  background-clip: text;
  font-size: 3.5rem;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.destacadas-header h2 {
  color: #333;
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
}

.header-subtitle {
  color: #666;
  font-size: 1rem;
  font-weight: 400;
  margin: 5px 0 0;
}

.btn-ver-mas {
  align-items: center;
  background: linear-gradient(135deg, var(--color-primario, #1e293b) 0%, var(--color-primario-hover, #334155) 100%);
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(30, 41, 59, 0.4);
  color: white;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 700;
  gap: 10px;
  overflow: hidden;
  padding: 15px 30px;
  position: relative;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-ver-mas::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  content: '';
  height: 100%;
  left: -100%;
  position: absolute;
  top: 0;
  transition: left 0.5s;
  width: 100%;
}

.btn-ver-mas:hover::before {
  left: 100%;
}

.btn-ver-mas:hover {
  box-shadow: 0 12px 35px rgba(30, 41, 59, 0.5);
  transform: translateY(-3px) scale(1.05);
}

.btn-ver-mas .arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.btn-ver-mas:hover .arrow {
  transform: translateX(5px);
}

/* ESTILOS ESPECÍFICOS DE DETALLE */
.detalle-wrapper {
  margin: 0 auto;
  max-width: 1400px;
  padding: 30px 20px;
}

.breadcrumb {
  color: #666;
  display: flex;
  font-size: 0.9rem;
  gap: 10px;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--color-primario, #1e293b);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--color-primario-hover, #334155);
  text-decoration: underline;
}

/* Galería de Imágenes */
.galeria-principal {
  align-items: center;
  background: #e5e7eb;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: flex;
  height: 450px;
  justify-content: center;
  margin-bottom: 30px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.galeria-principal img {
  background: #f3f4f6;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
  width: 100%;
}

.galeria-principal .sin-imagen {
  align-items: center;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
  font-weight: 600;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.galeria-principal .sin-imagen::before {
  content: '🏠';
  font-size: 4rem;
  margin-bottom: 15px;
}

.galeria-principal:hover img {
  transform: scale(1.05);
}

.controles-galeria {
  bottom: 20px;
  display: flex;
  gap: 10px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 10;
}

.controles-galeria button {
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  cursor: pointer;
  font-size: 1.2rem;
  height: 45px;
  transition: all 0.3s;
  width: 45px;
}

.controles-galeria button:hover {
  background: white;
  transform: scale(1.1);
}

.contador-imagenes {
  background: rgba(0,0,0,0.7);
  border-radius: 25px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 15px;
  position: absolute;
  right: 20px;
  top: 20px;
}

/* Miniaturas */
.miniaturas {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  margin-bottom: 30px;
}

.miniatura {
  border: 3px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  height: 80px;
  overflow: hidden;
  transition: all 0.3s;
}

.miniatura:hover {
  border-color: var(--color-primario, #1e293b);
  transform: translateY(-3px);
}

.miniatura.activa {
  border-color: var(--color-primario, #1e293b);
}

.miniatura img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* Contenido Principal */
.detalle-contenido {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 400px;
  margin-bottom: 40px;
}

.detalle-info {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  padding: 40px;
}

.detalle-titulo {
  color: #333;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.detalle-ubicacion {
  align-items: center;
  color: #666;
  display: flex;
  font-size: 1.1rem;
  gap: 10px;
  margin-bottom: 25px;
}

.detalle-precio {
  color: var(--color-primario, #1e293b);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.detalle-tipo {
  background: linear-gradient(135deg, var(--color-primario, #1e293b), var(--color-primario-hover, #334155));
  border-radius: 25px;
  color: white;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 25px;
  padding: 8px 20px;
}

.detalle-descripcion {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: justify;
}

/* Características */
.caracteristicas {
  background: #f8f9fa;
  border-radius: 15px;
  margin-bottom: 30px;
  padding: 30px;
}

.caracteristicas h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.caracteristicas-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.caracteristica-item {
  align-items: center;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  gap: 15px;
  padding: 20px;
  transition: all 0.3s;
}

.caracteristica-item:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.caracteristica-icono {
  font-size: 2rem;
}

.caracteristica-texto strong {
  color: #333;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.caracteristica-texto span {
  color: #666;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Sidebar */
.detalle-sidebar {
  height: fit-content;
  position: sticky;
  top: 70px;
}

.contacto-card {
  background: linear-gradient(135deg, var(--color-primario, #1e293b), var(--color-primario-hover, #334155));
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(30, 41, 59, 0.3);
  color: white;
  margin-bottom: 20px;
  padding: 30px;
}

.contacto-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.contacto-card p {
  margin-bottom: 20px;
  opacity: 0.95;
}

.btn-contactar {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  color: var(--color-primario, #1e293b);
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  width: 100%;
}

.btn-contactar:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

.info-adicional {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  padding: 25px;
}

.info-adicional h4 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.info-adicional ul {
  list-style: none;
  padding: 0;
}

.info-adicional li {
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.info-adicional li:last-child {
  border-bottom: none;
}

/* Mapa */
.mapa-seccion {
  margin: 40px 0;
}

.mapa-seccion h3 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.mapa-contenedor {
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  height: 400px;
  overflow: hidden;
  width: 100%;
}

.mapa-contenedor iframe {
  border: none;
  height: 100%;
  width: 100%;
}

.btn-como-llegar {
  align-items: center;
  background: linear-gradient(135deg, var(--color-primario, #1e293b), var(--color-primario-hover, #334155));
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  color: white;
  display: inline-flex;
  font-weight: 600;
  gap: 10px;
  margin-top: 15px;
  padding: 12px 25px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-como-llegar:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* =========================================================
   ESTADOS Y UTILIDADES
========================================================= */

/* EFECTOS DE CARGA Y LOADING */
.cargando {
  animation: pulse 1.5s ease-in-out infinite;
  color: #666;
  font-size: 1.2rem;
  padding: 60px;
  text-align: center;
}

.cargando::after {
  animation: dots 1.5s steps(4, end) infinite;
  content: '...';
}

.error-msg {
  background: #f8d7da;
  border-radius: 12px;
  box-shadow: var(--sombra-suave);
  color: #dc3545;
  font-size: 1.1rem;
  margin: 20px;
  padding: 60px;
  text-align: center;
}

/* Mensajes de respuesta del formulario */
#respuestaForm {
  margin-top: 20px;
  text-align: center;
}

.mensaje-exito {
  animation: scaleIn 0.5s ease-out;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-left: 5px solid #28a745;
  border-radius: 12px;
  box-shadow: var(--sombra-suave);
  color: #155724;
  padding: 20px;
}

.mensaje-error {
  animation: scaleIn 0.5s ease-out;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-left: 5px solid #dc3545;
  border-radius: 12px;
  box-shadow: var(--sombra-suave);
  color: #721c24;
  padding: 20px;
}

/* Placeholder sin foto */
.sin-foto {
  align-items: center;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  gap: 10px;
  height: 250px;
  justify-content: center;
  width: 100%;
}

/* Animaciones de fade para evitar parpadeos */
.fade-in {
  animation: fadeIn 0.4s ease-in;
}

.fade-out {
  animation: fadeOut 0.3s ease-out;
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */
@media (max-width: 1024px) {
  .detalle-contenido {
    grid-template-columns: 1fr;
  }

  .detalle-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .banner {
    padding: 100px 20px;
  }
  
  .banner h1 {
    font-size: 2.2em;
  }
  
  .banner p {
    font-size: 1.1em;
  }
  
  .busqueda {
    gap: 12px;
    grid-template-columns: 1fr;
    margin-top: 0;
    padding: 30px 20px;
  }
  
  .busqueda input,
  .busqueda select,
  .busqueda button {
    width: 100%;
  }
  
  .busqueda button {
    max-width: 100%;
  }
  
  .header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }
  
  .header ul {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  
  .grid {
    gap: 25px;
    grid-template-columns: 1fr;
  }
  
  .propiedades,
  .nosotros,
  .contacto {
    padding: 50px 20px;
  }
  
  .propiedades h2,
  .nosotros h2,
  .contacto h2 {
    font-size: 2rem;
  }
  
  .destacadas-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  
  .header-content {
    gap: 15px;
  }
  
  .header-icono {
    font-size: 2.5rem;
  }
  
  .destacadas-header h2 {
    font-size: 1.5rem;
  }
  
  .btn-ver-mas {
    justify-content: center;
    padding: 12px 25px;
    width: 100%;
  }
  
  .destacadas-section {
    padding: 30px 15px;
  }
  
  .galeria-principal {
    height: 280px;
  }

  .detalle-titulo {
    font-size: 1.8rem;
  }

  .detalle-precio {
    font-size: 2rem;
  }

  .detalle-info {
    padding: 25px;
  }

  .miniaturas {
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .miniatura {
    height: 60px;
  }

  .caracteristicas-grid {
    grid-template-columns: 1fr;
  }
  
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    z-index: 99999;
  }
  
  .whatsapp-button {
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    height: 60px;
    width: 60px;
  }
  
  .whatsapp-button svg {
    height: 32px;
    width: 32px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}

/* =========================================================
   ACCESIBILIDAD Y MEJORES PRÁCTICAS
========================================================= */

/* SCROLL SUAVE Y EFECTOS ADICIONALES */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Efecto hover en navegación móvil */
@media (hover: hover) {
  .header a,
  .propiedad,
  .busqueda button,
  .contacto button {
    transition: var(--transicion);
  }
}