/* ==========================================================================
   PISOS NATURALES & MÁRMOLES EXCLUSIVOS - DESIGN SYSTEM
   Quiet Luxury / Minimalismo Arquitectónico / Tipografía Editorial
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Paleta Cromática "Quiet Luxury" */
  --bg-primary: #09090b;
  --bg-surface: #111115;
  --bg-surface-elevated: #18181f;
  --bg-surface-translucent: rgba(17, 17, 21, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-gold-glow: rgba(212, 175, 55, 0.6);

  --gold-300: #F1DEC9;
  --gold-400: #D4AF37;
  --gold-500: #C5A880;
  --gold-600: #A68A68;
  --gold-gradient: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #A68A68 100%);
  --gold-shimmer: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.15) 50%, transparent 100%);

  --text-pure: #FFFFFF;
  --text-primary: #F4F4F6;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;

  /* Tipografías */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Elevación y Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.5);
  --shadow-luxury: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.08);

  /* Transiciones */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease-out;
}

/* Reset básico y scroll suave */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Tipografía de Lujo */
h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: -0.015em;
  font-weight: 500;
}

.font-sans {
  font-family: var(--font-sans);
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Bordes y Glassmorphism */
.glass-panel {
  background: var(--bg-surface-translucent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-nav {
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.card-luxury {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
}

.card-luxury:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-luxury);
}

/* Efecto de Zoom Suave en Imágenes */
.img-zoom-container {
  overflow: hidden;
  position: relative;
  background-color: #141418;
}

.img-zoom-container img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-luxury:hover .img-zoom-container img {
  transform: scale(1.06);
}

/* Badges y Tags */
.badge-pill {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--gold-300);
}

.badge-subtle {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* Botones Principales */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold-gradient);
  color: #09090b;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  filter: brightness(1.06);
}

.btn-ghost-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--gold-300);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-ghost-gold:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}

/* Botón flotante WhatsApp en lado izquierdo con efecto de pulsación */
.float-whatsapp {
  position: fixed;
  bottom: 28px;
  left: 28px;
  right: auto;
  z-index: 99;
  background: #25D366;
  color: #FFFFFF;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  text-decoration: none;
  animation: waPulse 2.2s infinite ease-in-out;
}

.float-whatsapp::before,
.float-whatsapp::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.85;
  animation: waWave 2.4s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.float-whatsapp::after {
  animation-delay: 1.2s;
}

.float-whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.7);
  animation-play-state: paused;
}

@keyframes waPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.65);
  }
}

@keyframes waWave {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

/* Hero Background Slider */
.hero-bg-slider {
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1), transform 8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-dot {
  width: 32px;
  height: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.4s ease;
}

.hero-dot:hover {
  background: rgba(212, 175, 55, 0.85);
}

.hero-dot.active {
  width: 50px;
  background: #D4AF37;
  border-color: #D4AF37;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.9), 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Categorías Tabs */
.filter-btn {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--gold-gradient);
  color: #09090b;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.3);
}

/* Modal Lightbox */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  max-width: 1050px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-luxury);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0d0d10;
}

::-webkit-scrollbar-thumb {
  background: #25252d;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-600);
}

/* Grid & Utilities */
.luxury-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.35) 50%, transparent 100%);
  margin: 60px 0;
}

.gold-glow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 12px var(--gold-400);
  display: inline-block;
}
