/* ============================================
   LATIDO PROPIEDADES - Modern Design Layer 2026
   Glass morphism, animations, premium effects
   ============================================ */

/* === SCROLL ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in.delay-1 { transition-delay: 0.1s; }
.animate-in.delay-2 { transition-delay: 0.2s; }
.animate-in.delay-3 { transition-delay: 0.3s; }
.animate-in.delay-4 { transition-delay: 0.4s; }

/* === GLASS MORPHISM === */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* === ENHANCED NAVBAR === */
.navbar {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
}

@media (max-width: 1023px) {
  .navbar {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  }
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.08) !important;
}

/* === SECTION HEADERS ENHANCED === */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(135deg, rgba(43, 107, 243, 0.08), rgba(43, 107, 243, 0.04));
  border: 1px solid rgba(43, 107, 243, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  backdrop-filter: blur(4px);
}

.section-badge i {
  font-size: 12px;
}

.section-header h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--space-3);
  background: linear-gradient(135deg, var(--color-text), var(--color-text-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reset gradient text for white-text sections */
.referral-section .section-header h2 {
  background: none;
  -webkit-text-fill-color: white;
  color: white;
}

@media (min-width: 1024px) {
  .section-header h2 { font-size: var(--font-size-4xl); }
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  line-height: 1.7;
}

/* === ENHANCED CARDS === */
.card {
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(43, 107, 243, 0.15), 0 8px 16px -8px rgba(15, 23, 42, 0.08);
  border-color: rgba(43, 107, 243, 0.2);
}

.property-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.property-card .card-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0,0,0,0.08));
  pointer-events: none;
}

.property-card .card-img-wrapper img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .card-img-wrapper img {
  transform: scale(1.08);
}

/* Featured card premium glow */
.property-card.featured {
  border: 2px solid var(--color-accent);
  position: relative;
  overflow: visible;
}

.property-card.featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(217, 119, 6, 0.05), rgba(217, 119, 6, 0.2));
  z-index: -1;
  filter: blur(8px);
}

/* === ENHANCED BADGES === */
.badge-featured {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A) !important;
  border: 1px solid rgba(217, 119, 6, 0.3);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

.badge-verified {
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0) !important;
  border: 1px solid rgba(5, 150, 105, 0.3);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

.property-badge {
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.property-badge-venta {
  background: linear-gradient(135deg, rgba(43, 107, 243, 0.9), rgba(15, 118, 110, 0.9)) !important;
  color: white !important;
}

.property-badge-arriendo {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.9)) !important;
  color: white !important;
}

/* === ENHANCED BUTTONS === */
.btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
  text-decoration: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #2B6BF3, #1D39A7, #2B6BF3);
  background-size: 200% 200%;
  animation: gradientFlow 4s ease infinite;
  box-shadow: 0 4px 15px rgba(43, 107, 243, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(43, 107, 243, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-accent {
  background: rgba(255, 255, 255, 0.95);
  color: #081D58 !important;
  font-weight: var(--font-weight-bold);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.5);
}

.btn-accent:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* Override .btn { border: none } for outline-white buttons */
.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  color: white !important;
  background: transparent;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  color: white !important;
}

.btn-outline {
  border: 2px solid var(--color-primary) !important;
  position: relative;
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(43, 107, 243, 0.25);
}

.btn-secure-msg {
  background: linear-gradient(135deg, #2B6BF3, #1D39A7);
  box-shadow: 0 3px 12px rgba(43, 107, 243, 0.3);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-secure-msg::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-secure-msg:hover::before {
  left: 100%;
}

.btn-secure-msg:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(43, 107, 243, 0.4);
}

/* === SEARCH BAR ENHANCED === */
.search-bar {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(43, 107, 243, 0.06);
  transition: box-shadow 0.3s;
}

.search-bar:hover {
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.15), 0 6px 20px rgba(43, 107, 243, 0.08);
}

.search-field select,
.search-field input {
  background: var(--color-bg);
  transition: all 0.3s;
}

.search-field select:focus,
.search-field input:focus {
  background: white;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(43, 107, 243, 0.08);
}

/* === SECURE CARDS ENHANCED === */
.secure-card {
  border: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
  overflow: hidden;
}

.secure-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.secure-card:hover::before {
  opacity: 1;
}

.secure-icon {
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* === AGENT CARDS ENHANCED === */
.agent-card {
  border: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
  overflow: hidden;
}

.agent-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.agent-card:hover::after {
  opacity: 1;
}

.agent-card:nth-child(1)::after { background: var(--gradient-primary); }
.agent-card:nth-child(2)::after { background: linear-gradient(135deg, #2563EB, #3B82F6); }
.agent-card:nth-child(3)::after { background: linear-gradient(135deg, #DB2777, #EC4899); }
.agent-card:nth-child(4)::after { background: var(--gradient-accent); }
.agent-card:nth-child(5)::after { background: linear-gradient(135deg, #059669, #10B981); }

.agent-avatar {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.agent-card:hover .agent-avatar {
  transform: scale(1.1);
}

/* === STEPS ENHANCED === */
.step-number {
  position: relative;
  box-shadow: 0 4px 12px rgba(43, 107, 243, 0.25);
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px dashed rgba(43, 107, 243, 0.2);
}

/* === CTA SECTION ENHANCED === */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1D39A7, #2B6BF3, #1D39A7);
  background-size: 200% 200%;
  animation: gradientFlow 6s ease infinite;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

/* === HERO ENHANCED === */
.hero {
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--color-bg));
  pointer-events: none;
}

.hero-shield {
  animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-sub {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Hero floating particles (decorative) */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: float 6s ease-in-out infinite;
}

.hero-particle:nth-child(1) { top: 20%; right: 15%; animation-delay: 0s; width: 8px; height: 8px; }
.hero-particle:nth-child(2) { top: 60%; right: 25%; animation-delay: 1s; }
.hero-particle:nth-child(3) { top: 40%; right: 10%; animation-delay: 2s; width: 4px; height: 4px; }
.hero-particle:nth-child(4) { top: 80%; right: 35%; animation-delay: 3s; }
.hero-particle:nth-child(5) { top: 30%; right: 40%; animation-delay: 4s; width: 5px; height: 5px; }

/* === FORM INPUTS ENHANCED === */
.form-input,
.form-select,
.form-textarea {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(43, 107, 243, 0.08), 0 2px 8px rgba(43, 107, 243, 0.1);
  transform: translateY(-1px);
}

/* === FOOTER ENHANCED === */
.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 107, 243, 0.5), transparent);
}

/* === SMOOTH SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* === SELECTION COLOR === */
::selection {
  background: rgba(43, 107, 243, 0.2);
  color: var(--color-text);
}

/* === SKELETON LOADING === */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-alt) 25%, rgba(241,245,249,0.5) 50%, var(--color-bg-alt) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* === TOOLTIP === */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  background: var(--color-secondary);
  color: white;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 100;
}

[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === GRADIENT TEXT === */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === PULSE DOT (online indicator) === */
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* === STAT COUNTER ANIMATION === */
.stat-animated {
  display: inline-block;
  transition: transform 0.3s;
}

.stat-animated:hover {
  transform: scale(1.1);
}

/* === FORM HELPER TEXT === */
.form-helper {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* === FEATURE TAG LIST === */
.property-feature {
  position: relative;
  padding-left: 2px;
}

.property-feature i {
  color: var(--color-primary);
  font-size: 13px;
}

/* === RESPONSIVE IMPROVEMENTS === */
@media (max-width: 640px) {
  .hero h1 { font-size: 2rem !important; }
  .hero-stats { gap: var(--space-4); flex-wrap: wrap; }
  .hero-stat-number { font-size: var(--font-size-xl); }
  .section-header h2 { font-size: var(--font-size-2xl); }
  .cta-section { padding: var(--space-10) var(--space-5); }
}

/* === ADMIN DASHBOARD MODERN STYLES === */
.admin-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 50%, #EFF9FB 100%);
}

.admin-sidebar {
  background: linear-gradient(180deg, #081D58 0%, #1E293B 100%);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.15);
}

.admin-sidebar .sidebar-link {
  transition: all 0.2s;
  border-radius: var(--radius-lg);
  margin: 2px 8px;
  padding: 10px 14px;
}

.admin-sidebar .sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar .sidebar-link.active {
  background: linear-gradient(135deg, rgba(43, 107, 243, 0.2), rgba(43, 107, 243, 0.1));
  color: #799ED2;
  border-left: 3px solid #2B6BF3;
}

/* Admin metric cards */
.admin-metric-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.admin-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.admin-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.admin-metric-card.teal::before { background: var(--gradient-primary); }
.admin-metric-card.amber::before { background: var(--gradient-accent); }
.admin-metric-card.blue::before { background: linear-gradient(135deg, #2563EB, #3B82F6); }
.admin-metric-card.green::before { background: linear-gradient(135deg, #059669, #10B981); }
.admin-metric-card.purple::before { background: linear-gradient(135deg, #7C3AED, #8B5CF6); }

.admin-metric-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.admin-metric-icon.teal { background: rgba(43, 107, 243, 0.1); color: #2B6BF3; }
.admin-metric-icon.amber { background: rgba(255, 215, 0, 0.1); color: #FFD700; }
.admin-metric-icon.blue { background: rgba(37, 99, 235, 0.1); color: #2563EB; }
.admin-metric-icon.green { background: rgba(5, 150, 105, 0.1); color: #059669; }
.admin-metric-icon.purple { background: rgba(124, 58, 237, 0.1); color: #7C3AED; }

.admin-metric-value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  line-height: 1;
  margin-top: var(--space-2);
}

.admin-metric-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* Admin tables */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th {
  background: var(--color-bg-alt);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  border-bottom: 2px solid var(--color-border);
}

.admin-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  transition: background 0.15s;
}

.admin-table tr:hover td {
  background: rgba(43, 107, 243, 0.02);
}

.admin-table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.admin-table th:last-child { border-radius: 0 var(--radius-lg) 0 0; }

/* Admin content panels */
.admin-panel {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.admin-panel-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(250, 251, 252, 0.8), transparent);
}

.admin-panel-header h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin: 0;
}

.admin-panel-body {
  padding: var(--space-6);
}

/* === REFERIDOS DASHBOARD === */
.dashboard-welcome {
  background: linear-gradient(135deg, #0A1B4F 0%, #FFD700 60%, #2B6BF3 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-10);
  color: white;
  position: relative;
  overflow: hidden;
}

.dashboard-welcome::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

/* === WIZARD ENHANCED === */
.wizard-step {
  animation: fadeInScale 0.3s ease-out;
}

.step-dot {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-dot.active {
  box-shadow: 0 4px 12px rgba(43, 107, 243, 0.3);
  transform: scale(1.1);
}

.step-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 4px;
  white-space: nowrap;
}

.step-dot.active .step-label {
  color: var(--color-primary);
  font-weight: 600;
}

/* === TOAST ENHANCED === */
.toast {
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-success {
  background: linear-gradient(135deg, #059669, #10B981);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.toast-error {
  background: linear-gradient(135deg, #DC2626, #EF4444);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

/* === MISC ENHANCEMENTS === */
.section {
  position: relative;
}

.section[style*="bg-alt"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

/* Smooth page transitions */
main {
  animation: fadeInUp 0.4s ease-out;
}

/* Link hover effect */
a {
  transition: color 0.2s;
}

/* Image loading placeholder */
img[loading="lazy"] {
  background: var(--color-bg-alt);
}

/* === COUNTER ANIMATION (admin metrics) === */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.metric-info h3 {
  animation: countUp 0.5s ease-out both;
}

.metric-card:nth-child(1) .metric-info h3 { animation-delay: 0s; }
.metric-card:nth-child(2) .metric-info h3 { animation-delay: 0.1s; }
.metric-card:nth-child(3) .metric-info h3 { animation-delay: 0.2s; }
.metric-card:nth-child(4) .metric-info h3 { animation-delay: 0.3s; }
.metric-card:nth-child(5) .metric-info h3 { animation-delay: 0.4s; }
.metric-card:nth-child(6) .metric-info h3 { animation-delay: 0.5s; }

/* === TIER CARDS ENHANCED === */
.tier-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
  overflow: hidden;
}

.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(43, 107, 243, 0.2);
}

.tier-card.featured {
  border: 2px solid var(--color-primary);
}

.tier-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: 12px;
  right: -28px;
  transform: rotate(45deg);
  background: var(--gradient-primary);
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 32px;
}

.tier-commission {
  background: linear-gradient(135deg, var(--color-primary), #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === FAQ ENHANCED === */
.faq-item {
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: rgba(43, 107, 243, 0.3);
}

.faq-item.open {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(43, 107, 243, 0.1);
}

.faq-question {
  transition: all 0.2s;
}

.faq-question:hover {
  color: var(--color-primary);
}

/* === FILTER BAR ENHANCED === */
.filter-bar {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: all 0.3s;
}

.filter-bar:hover {
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

/* === VISIT FORM ENHANCED === */
.visit-form-card {
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  transition: all 0.3s;
}

.visit-form-card:hover {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

/* === REGISTER CARD ENHANCED === */
.register-card {
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.4s;
}

.register-card:hover {
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
}

/* === NUMBER INPUT SPINNER HIDDEN === */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] { -moz-appearance: textfield; }

/* === PROPERTY DETAIL PAGE === */
.property-hero-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
}

.property-hero-img img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-hero-img:hover img {
  transform: scale(1.02);
}

/* Property info card */
.property-info-card {
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.3s;
}

.property-info-card:hover {
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
}

/* === WIZARD STEPS INDICATOR === */
.wizard-steps {
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-border-light);
  transform: translateY(-50%);
  z-index: 0;
}

.wizard-steps .step-dot {
  z-index: 1;
  position: relative;
}

/* === EDIT PANEL ENHANCED === */
.edit-panel {
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15);
}

.edit-panel-overlay {
  animation: fadeIn 0.2s ease-out;
}

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

/* === HOW CARD ENHANCED (referidos) === */
.how-card {
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.how-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
  border-color: rgba(43, 107, 243, 0.2);
}

.how-card:hover .how-icon {
  background: rgba(43, 107, 243, 0.15);
  transform: scale(1.05);
}

.how-icon {
  transition: all 0.3s;
}

/* === MODERN PAGE HEADER (dark mode) === */
.page-header .section-badge {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #D1E6FA;
}

/* === FOOTER ENHANCED (all pages) === */
.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 107, 243, 0.5), transparent);
}

.footer-social a {
  transition: all 0.3s;
}

.footer-social a:hover {
  transform: translateY(-3px);
}

/* === HERO BADGE ENHANCED === */
.hero-badge {
  animation: fadeInUp 0.5s ease-out;
}

/* === MOBILE NAV MENU ENHANCED === */
.mobile-menu.open {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* === LOADING BUTTON STATE === */
.btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === BADGE GLOW (featured properties) === */
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(217, 119, 6, 0.2); }
  50% { box-shadow: 0 0 16px rgba(217, 119, 6, 0.4); }
}

.badge-featured {
  animation: badgeGlow 3s ease-in-out infinite;
}

/* === AI SEARCH BAR ENHANCED === */
.ai-search-bar {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-search-bar:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12), 0 0 0 4px rgba(43, 107, 243, 0.1) !important;
}

/* === ENHANCED MAP CONTAINER === */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

/* === CORRETAJE BOX ENHANCED === */
.corretaje-box {
  border-radius: var(--radius-xl) !important;
  transition: all 0.3s;
}

.corretaje-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.15);
}

/* === PAGE TRANSITION === */
@keyframes pageEntry {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  animation: pageEntry 0.4s ease-out;
}

/* === FOCUS VISIBLE (accessibility) === */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}
