* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* Ocultar barra search de plantilla */
.advanced-search {
  display: none;
}

/* ========================================
   HEADER DE LA FICHA
   ======================================== */

.ficha-header {
  padding: 30px 20px 20px;
  background: #fff;
  width: 100%;
}

.ficha-header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.header-left {
  flex: 1;
  min-width: 0;
}

.header-right {
  text-align: right;
  flex-shrink: 0;
}

.titulo-principal {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.badge-operacion {
  display: inline-block;
  background: #00b8a9;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-estado {
  display: inline-block;
  background: #ffc107;
  color: #000;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ubicacion-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #00b8a9;
}

.ubicacion-header i {
  color: #00b8a9;
}

.precio-destacado {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #00b8a9;
}

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */

.contenido-principal {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.columna-izquierda {
  display: flex;
  flex-direction: column;
  gap: 25px;
  min-width: 0;
  width: 100%;
}

.columna-derecha {
  position: relative;
  min-width: 0;
  width: 100%;
}

.sidebar-sticky {
  /*top: 20px;*/
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========================================
   GALERÍA DE FOTOS
   ======================================== */

.galeria-principal {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  width: 100%;
}

.foto-principal-wrapper {
  position: relative;
  width: 100%;
  /* height: 450px;*/
  height: auto;
  background: #000;
  overflow: hidden;
}

.galeria-contenido,
.mapa-contenido {
  width: 100%;
  height: 100%;
}

.foto-principal {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.foto-principal:hover {
  opacity: 0.95;
}

.foto-principal.changing {
  animation: fadeInImage 0.3s ease;
}

@keyframes fadeInImage {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

/* Mapa contenido */
.mapa-contenido {
  background: #f0f0f0;
}

.mapa-contenido #home-map,
.mapa-contenido .leaflet-container {
  width: 100%;
  height: 100%;
}

/* Estilo para mapa en ficha | si eliminas no se muestra por los auto de las fotos */
.foto-principal-wrapper #map {
  width: 100% !important;
  height: 450px !important;
}

/* Botones superpuestos en galería */
.botones-galeria {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 20;
}

.btn-galeria {
  width: 45px;
  height: 45px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.btn-galeria:hover,
.btn-galeria.active {
  background: #00b8a9;
  transform: scale(1.05);
}

/* Flechas de navegación */
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.flecha:hover {
  background: #00b8a9;
}

.flecha.flecha-izquierda {
  left: 15px;
}

.flecha.flecha-derecha {
  right: 15px;
}

/* Contador de fotos */
.contador-fotos {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(5px);
  z-index: 10;
}

/* Thumbnails */
.galeria-thumbnails {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  background: #f8f9fa;
  width: 100%;
}

.galeria-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.galeria-thumbnails::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 3px;
}

.galeria-thumbnails::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 3px;
}

.thumbnail {
  width: 80px;
  height: 60px !important;
  object-fit: cover !important;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.thumbnail:hover {
  opacity: 0.9;
}

.thumbnail.active {
  opacity: 1;
  border-color: #00b8a9;
}

/* ========================================
   TABS DE INFORMACIÓN
   ======================================== */

.tabs-container {
  background: white;
  overflow: hidden;
  width: 100%;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
  width: 100%;
}

.tab-btn {
  flex: 1;
  padding: 15px 20px;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  min-width: 0;
}

.tab-btn:hover {
  color: #333;
  background: #fff;
}

.tab-btn.active {
  color: #333;
  background: #fff;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #00b8a9;
}

.tabs-content {
  padding: 25px;
  width: 100%;
  box-sizing: border-box;
}

.tab-panel {
  display: none;
  width: 100%;
}

.tab-panel.active {
  display: block;
}

.panel-titulo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

/* Tab Descripción */
.descripcion-texto {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.descripcion-texto p {
  margin-bottom: 15px;
}

/* Tab Detalles */
.detalles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
}

.detalle-item {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detalle-label {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 4px;
}

.detalle-valor {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

/* Tab Características */
.caracteristicas-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.caracteristicas-lista li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  padding-left: 25px;
  position: relative;
  color: #555;
}

.caracteristicas-lista li::before {
  content: none; /* ocultar punto en lista de caracteristicas */
  position: absolute;
  left: 0;
  color: #00b8a9;
  font-size: 1.2rem;
}

.caracteristicas-lista li:last-child {
  border-bottom: none;
}

/* ========================================
   VISIÓN GLOBAL
   ======================================== */

.seccion {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.seccion-titulo {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.seccion-titulo i {
  color: #00b8a9;
  margin-right: 10px;
}

.vision-global .caracteristicas-rapidas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  width: 100%;
}

.caracteristica-rapida {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.caracteristica-rapida:hover {
  background: #00b8a9;
  color: white;
  transform: translateY(-2px);
}

.caracteristica-rapida i {
  font-size: 1.8rem;
  color: #00b8a9;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.caracteristica-rapida:hover i {
  color: white;
}

.caracteristica-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.caracteristica-valor {
  font-size: 1.2rem;
  font-weight: 700;
}

.caracteristica-label {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ========================================
   VIDEO Y TOUR VIRTUAL
   ======================================== */

.media-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 15px;
  width: 100%;
}

.media-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================
   FORMULARIO DE CONTACTO
   ======================================== */

.formulario-contacto {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.formulario-titulo {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.formulario-titulo i {
  color: #00b8a9;
  margin-right: 8px;
}

.form-group {
  margin-bottom: 15px;
  width: 100%;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #00b8a9;
  box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.1);
}

.form-control::placeholder {
  color: #aaa;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #00b8a9;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #666;
  cursor: pointer;
}

.checkbox-group label a {
  color: #00b8a9;
  text-decoration: none;
}

.checkbox-group label a:hover {
  text-decoration: underline;
}

.botones-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
  width: 100%;
}

.btn-submit {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
}

.btn-enviar {
  background: #00b8a9;
  color: white;
}

.btn-enviar:hover {
  background: #009a8d;
}

.btn-llamar {
  background: white;
  color: #333;
  border: 1px solid #e0e0e0;
}

.btn-llamar:hover {
  background: #f8f9fa;
  border-color: #ccc;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: white;
  color: #25d366;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.btn-whatsapp:hover {
  background: #25d366;
  color: white;
  border-color: #25d366;
}

.btn-whatsapp i {
  font-size: 1.2rem;
}

/* ========================================
   INFO AGENTE
   ======================================== */

.info-agente {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.info-agente-titulo {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.contacto-item:last-of-type {
  border-bottom: none;
}

.contacto-item i {
  color: #00b8a9;
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.contacto-item a,
.contacto-item span {
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  word-break: break-word;
}

.contacto-item a:hover {
  color: #00b8a9;
}

.botones-accion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

.btn-accion {
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
}

.btn-compartir {
  background: #f8f9fa;
  color: #555;
  border: 1px solid #e0e0e0;
}

.btn-compartir:hover {
  background: #00b8a9;
  color: white;
  border-color: #00b8a9;
}

.btn-imprimir {
  background: #f8f9fa;
  color: #555;
  border: 1px solid #e0e0e0;
}

.btn-imprimir:hover {
  background: #333;
  color: white;
  border-color: #333;
}

/* ========================================
   LIGHTBOX MODAL
   ======================================== */

.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-contenido {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-imagen {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

.lightbox-cerrar {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10001;
}

.lightbox-cerrar:hover {
  background: rgba(220, 53, 69, 0.9);
  transform: scale(1.1);
}

.lightbox-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10001;
}

.lightbox-flecha:hover {
  background: #00b8a9;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-flecha.izquierda {
  left: 30px;
}

.lightbox-flecha.derecha {
  right: 30px;
}

.lightbox-contador {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 10001;
}

/* ========================================
   MENSAJES DE ALERTA
   ======================================== */

.alert {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .contenido-principal {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .columna-izquierda {
    order: 1;
  }

  .columna-derecha {
    order: 2;
  }

  /*
  .sidebar-sticky {
    position: relative;
    top: 0;
  }
  */

  .sidebar-sticky {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
  }

  .foto-principal-wrapper {
    /*height: 400px;*/
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .ficha-header {
    padding: 20px 15px;
  }

  .ficha-header-content {
    flex-direction: column;
    gap: 15px;
  }

  .header-right {
    text-align: left;
  }

  .titulo-principal {
    font-size: 1.3rem;
  }

  .precio-destacado {
    font-size: 1.8rem;
  }

  .contenido-principal {
    padding: 0 15px;
    margin: 15px auto;
    gap: 20px;
  }

  .foto-principal-wrapper {
    height: 300px;
  }

  .botones-galeria {
    top: 10px;
    right: 10px;
  }

  .btn-galeria {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

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

  .flecha.flecha-izquierda {
    left: 10px;
  }

  .flecha.flecha-derecha {
    right: 10px;
  }

  .tabs-header {
    flex-wrap: nowrap;
  }

  .tab-btn {
    padding: 12px 10px;
    font-size: 0.7rem;
  }

  .tabs-content {
    padding: 20px 15px;
  }

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

  .vision-global .caracteristicas-rapidas {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .caracteristica-rapida {
    padding: 12px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .caracteristica-rapida i {
    width: auto;
  }

  .botones-form {
    grid-template-columns: 1fr;
  }

  .botones-accion {
    grid-template-columns: 1fr;
  }

  .thumbnail {
    width: 70px;
    height: 50px;
  }

  .seccion {
    padding: 20px 15px;
  }

  .formulario-contacto,
  .info-agente {
    padding: 20px 15px;
  }

  /* Lightbox responsive */
  .lightbox-cerrar {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .lightbox-flecha {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .lightbox-flecha.izquierda {
    left: 10px;
  }

  .lightbox-flecha.derecha {
    right: 10px;
  }

  .lightbox-contador {
    bottom: 15px;
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .foto-principal-wrapper {
    height: 250px;
  }

  .btn-galeria {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .flecha {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .contador-fotos {
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .vision-global .caracteristicas-rapidas {
    grid-template-columns: 1fr 1fr;
  }

  .caracteristica-rapida i {
    font-size: 1.4rem;
  }

  .caracteristica-valor {
    font-size: 1rem;
  }

  .thumbnail {
    width: 60px;
    height: 45px;
  }

  .panel-titulo {
    font-size: 1.2rem;
  }

  .seccion-titulo {
    font-size: 1.1rem;
  }
}

/* ========================================
   UTILIDADES
   ======================================== */

.form_messages {
  margin-bottom: 15px;
}

/* Honeypot oculto */
.honeypot {
  position: absolute;
  left: -5000px;
  opacity: 0;
  pointer-events: none;
}

/* ========================================
   ARREGLO PARA DESCRIPCIONES
   ======================================== */

/* Tab Descripción para que siempre se muestren igual,
independientemente de si vienen como etiqueta p, h4, etc... */
.descripcion-texto h1,
.descripcion-texto h2,
.descripcion-texto h3,
.descripcion-texto h4,
.descripcion-texto h5,
.descripcion-texto h6,
.descripcion-texto p {
  font-size: 1rem;
  line-height: 1.8;
  color: #222;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-weight: 300;
  font-family: inherit;
}

/* Tab Características - Grid 3 columnas */
.caracteristicas-lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.caracteristicas-lista li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #333;
}

.caracteristicas-lista li i {
  color: #28a745;
  font-size: 1.1rem;
}

/* Responsive: 2 columnas en tablet, 1 en móvil */
@media (max-width: 768px) {
  .caracteristicas-lista {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ========================================
   PROPIEDADES SIMILARES
   ======================================== */

.propiedades-similares {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.similares-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.similar-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.similar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.similar-imagen {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
}

.similar-operacion {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #00b8a9;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.similar-precio {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
}

.similar-contenido {
  padding: 15px;
  background: white;
}

.similar-titulo {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.similar-caracteristicas {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #666;
}

.similar-caracteristicas span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.similar-caracteristicas i {
  color: #00b8a9;
}

.similar-ubicacion {
  font-size: 0.8rem;
  color: #888;
}

.similar-ubicacion i {
  color: #00b8a9;
  margin-right: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
  .similares-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .similar-imagen {
    height: 200px;
  }
}
