/* Estilos para Realtor.uy - Diseño Light Moderno y Limpio */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #F8FAFC;
  color: #0F172A;
  overflow-x: hidden;
}

/* Tarjetas y Contenedores Light */
.card-light {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
}

.card-light-elevated {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

.card-hover {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: 0 14px 30px -8px rgba(37, 99, 235, 0.12);
}

/* Efecto de Desenfoque / Blur para Paywall (50% Teaser en Light Mode) */
.blurred-content {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
  transition: all 0.4s ease;
}

.unblurred-content {
  filter: blur(0px) !important;
  user-select: auto !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}

/* Bloqueo de Scroll en Freemium */
body.scroll-locked-freemium {
  overscroll-behavior-y: contain;
}

/* Gradientes y Acentos Realtor.uy */
.gradient-text-primary {
  background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #0D9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-bg-primary {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
}

/* Logos Carousel / Ticker Infinito y Monocromo */
@keyframes logoTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-ticker-track {
  display: flex;
  width: max-content;
  animation: logoTicker 38s linear infinite;
}

.logo-ticker-track:hover {
  animation-play-state: paused;
}

.logo-item-monotone {
  color: #1E3A8A;
  opacity: 0.60;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-item-monotone:hover {
  color: #2563EB;
  opacity: 1;
  transform: translateY(-2px) scale(1.03);
}

.mask-fade-edges {
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.gradient-bg-dark {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.gradient-subtle-mesh {
  background-color: #F8FAFC;
  background-image: 
    radial-gradient(at 10% 10%, rgba(219, 234, 254, 0.6) 0px, transparent 50%),
    radial-gradient(at 90% 15%, rgba(224, 242, 254, 0.5) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(241, 245, 249, 0.8) 0px, transparent 50%);
}

/* Badges de Semáforo en Light Mode */
.badge-semaphore-green {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.badge-semaphore-yellow {
  background-color: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.badge-semaphore-red {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Tab selector */
.tab-active {
  background-color: #FFFFFF;
  color: #1D4ED8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.tab-inactive {
  color: #64748B;
}
.tab-inactive:hover {
  color: #0F172A;
}

/* Custom Leaflet Styling */
.leaflet-popup-content-wrapper {
  background: #FFFFFF;
  color: #0F172A;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  border: 1px solid #E2E8F0;
  padding: 4px;
}
.leaflet-popup-tip {
  background: #FFFFFF;
}
.leaflet-container {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
}

/* Animación de Escritura / Typewriter para Clara */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.88em;
  background-color: #2563eb;
  margin-left: 3px;
  vertical-align: -0.05em;
  border-radius: 2px;
  animation: blink-cursor 0.75s infinite ease-in-out;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Indicador de Clara escribiendo (tres puntos saltarines) */
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 2px;
}

.typing-dots span {
  display: inline-block;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.4;
  animation: dot-bounce 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-3px); opacity: 1; }
}

/* Estilo Claude / ChatGPT Thought & Task Block */
.ai-thought-block {
  border-left: 2px solid #E2E8F0;
  margin-left: 4px;
  padding-left: 10px;
}

.step-active {
  color: #1D4ED8 !important;
  font-weight: 600 !important;
}

.step-done {
  color: #047857 !important;
}

/* Animación de Construcción Progresiva para el Diagnóstico / Análisis */
@keyframes buildFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-build-step-1 {
  animation: buildFadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.animate-build-step-2 {
  animation: buildFadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.animate-build-step-3 {
  animation: buildFadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.40s both;
}

.animate-build-step-4 {
  animation: buildFadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.58s both;
}

.animate-build-step-5 {
  animation: buildFadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.76s both;
}

.animate-build-step-6 {
  animation: buildFadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.94s both;
}

.animate-build-step-7 {
  animation: buildFadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 1.12s both;
}

/* Utilidades para Descripción Colapsable de la Propiedad */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-none {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}

/* Animación de Checkmark Pop */
@keyframes checkPop {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  65% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-check-pop {
  animation: checkPop 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  display: inline-block;
}



