/* Luxury Modern Responsive Stylesheet for La-Habitat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

:root {
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --bg-primary: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-dark: #0F172A;
  --bg-dark-card: #1E293B;
  
  --color-brand-blue: #3B82F6;
  --color-brand-blue-dark: #1D4ED8;
  --color-brand-blue-accent: #2563EB;
  --color-brand-blue-light: #60A5FA;
  --color-whatsapp: #25D366;

  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  
  --border-light: rgba(226, 232, 240, 0.8);
  --border-blue: rgba(59, 130, 246, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  --shadow-blue: 0 10px 30px -5px rgba(37, 99, 235, 0.35);
  --shadow-whatsapp: 0 10px 25px -5px rgba(37, 211, 102, 0.4);

  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Setup */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-primary);
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
.font-montserrat {
  font-family: 'Montserrat', sans-serif;
}

.blue-gradient-text {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #1D4ED8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Glassmorphism Navigation */
.header-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s var(--transition-smooth);
}

.header-glass.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  border-bottom-color: rgba(37, 99, 235, 0.2);
}

/* Nav Link Hover */
.nav-link-custom {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #475569;
  transition: color 0.3s ease;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  transition: width 0.3s var(--transition-smooth);
}

.nav-link-custom:hover {
  color: #2563EB;
}

.nav-link-custom:hover::after {
  width: 100%;
}

/* Custom Buttons */
.btn-blue {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.875rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  transition: all 0.35s var(--transition-smooth);
  box-shadow: var(--shadow-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  min-height: 48px;
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px -5px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
}

.btn-outline-blue {
  background: transparent;
  color: #2563EB;
  border: 2px solid #2563EB;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.875rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  transition: all 0.35s var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  min-height: 48px;
}

.btn-outline-blue:hover {
  background: #2563EB;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* Floating Action Buttons */
.floating-actions-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.35s var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.float-btn-call {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  box-shadow: var(--shadow-blue);
}

.float-btn-call:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 35px -5px rgba(37, 99, 235, 0.5);
}

.float-btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: var(--shadow-whatsapp);
}

.float-btn-whatsapp:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 35px -5px rgba(37, 211, 102, 0.5);
}

.float-btn-icon-only {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

/* Cards */
.arch-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: all 0.4s var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .arch-card {
    padding: 2.25rem;
  }
}

.arch-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Vector Icon Containers */
.icon-box-vector {
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  background: #EFF6FF;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.arch-card:hover .icon-box-vector {
  background: #2563EB;
  color: #FFFFFF;
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.4s var(--transition-smooth);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2563EB;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s var(--transition-smooth) forwards;
}

.pulse-blue {
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  animation: pulse-blue-key 2s infinite;
}

@keyframes pulse-blue-key {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* Clubhouse Carousel Enhancements */
.carousel-slide {
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.carousel-slide.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 10 !important;
  transform: scale(1);
}

.carousel-slide:not(.active) {
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  transform: scale(1.02);
}

.carousel-dot {
  cursor: pointer;
  border: none;
  outline: none;
  padding: 0;
  height: 8px;
  border-radius: 9999px;
  transition: all 0.35s ease;
}

.carousel-dot.active {
  width: 2rem !important;
  background-color: #3B82F6 !important;
}

.carousel-dot:not(.active) {
  width: 0.625rem !important;
  background-color: rgba(255, 255, 255, 0.4) !important;
}

.carousel-dot:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.8) !important;
}
