html {
      scroll-behavior: smooth;
    }
     .descripcion-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.descripcion-texto {
  transition: all .25s ease;
  white-space: pre-wrap; 
  word-break: break-word;
}

    .hero-bg {
      background-image:
        linear-gradient(to bottom, rgba(15,23,42,0.65), rgba(51, 57, 71, 0.45)),
        url("img/puerto_montt.jpg");
      background-size: cover;
      background-position: center;
    }

    /* Animación de hero */
    .hero-fade-in {
      opacity: 0;
      transform: translateY(20px);
      animation: heroFadeIn 1s ease-out forwards;
      animation-delay: 0.2s;
    }

  p{
    color: #0e0d0dff;
  }
    @keyframes heroFadeIn {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    .logo img {
  width: 10px;
  height: auto;
  display: block;
}
    .btn-cta {
      position: relative;
      overflow: hidden;
    }

    .btn-cta::after {
      content: "";
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
      transition: all 0.6s;
    }

    .btn-cta:hover::after {
      left: 100%;
    }

    .js-fade {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }

    .js-fade-show {
      opacity: 1 !important;
      transform: translateY(0) !important;
    }

    .no-select {
      user-select: none;
    }
 /*ESTILOS DE CARRUSEL*/
.carousel-container {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 1.5rem 1.5rem 0 0;
}

.carousel-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.carousel-image.active {
  opacity: 1;
  pointer-events: auto;
}

/* Botones de navegación */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  color: #1e293b;
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

/* Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.indicator.active {
  background: rgba(255, 255, 255, 1);
  width: 24px;
  border-radius: 4px;
}

.property-image-placeholder {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 1.5rem 1.5rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-container {
    height: 200px;
  }
  
  .property-image-placeholder {
    height: 200px;
  }
  
  .carousel-btn {
    width: 32px;
    height: 32px;
  }
  
  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }
}

/*  MEJORAS MODAL RESPONSIVO */
.modal-carousel-fix .carousel-container {
  height: 100% !important;
  border-radius: 0 !important;
}

@media (max-width: 768px) {
  .modal-carousel-fix .carousel-container {
    height: 300px !important;
  }
  
  #modal-content-body { 
    max-height: calc(90vh - 40px);
  }
}
#close-modal {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.descripcion-texto {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Animación de carga */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


