/* ==========================================================================
   FTV CONSTRUCCIÓN Y REFORMAS - Obsidian & Champagne Luxury Design System
   Linear-Grade Refinement & High-Conversion Layout
   ========================================================================== */

:root {
  --bg-dark: #08080a;
  --bg-surface: #0e0e12;
  --bg-card: rgba(16, 16, 22, 0.78);
  --bg-card-hover: rgba(24, 24, 32, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(197, 168, 128, 0.4);
  --accent-gold: #c5a880;
  --accent-gold-light: #e2cca9;
  --accent-gold-dark: #9e825b;
  --text-main: #f3f1ec;
  --text-muted: #9b968e;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-dark);
}

::selection {
  background: var(--accent-gold);
  color: #000;
}

/* Floating Navigation Dock */
.nav-floating-dock {
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.05) inset;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-floating-dock:hover {
  border-color: rgba(197, 168, 128, 0.3);
}

/* Luxury Soft Glass Card */
.soft-glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.soft-glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8), 0 0 24px -2px rgba(197, 168, 128, 0.16);
}

/* Champagne Gold Primary Button */
.btn-gold {
  background: linear-gradient(135deg, #d8c29e 0%, #c5a880 50%, #ae8e5f 100%);
  color: #0b0a09;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px -6px rgba(197, 168, 128, 0.42);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transition: 0.6s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -4px rgba(197, 168, 128, 0.65);
  filter: brightness(1.06);
}

.btn-gold:hover::after {
  left: 100%;
}

.btn-gold:active {
  transform: translateY(0);
}

/* Ghost Button */
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* Glow Elements */
.radial-glow {
  background: radial-gradient(circle at 50% 30%, rgba(197, 168, 128, 0.16) 0%, rgba(0, 0, 0, 0) 70%);
}

.radial-glow-ambient {
  background: radial-gradient(circle at 50% 50%, rgba(197, 168, 128, 0.08) 0%, rgba(0, 0, 0, 0) 65%);
}

/* Image Zoom */
.img-zoom-container {
  overflow: hidden;
  border-radius: 1rem;
}

.img-zoom-container img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Running Marquee */
.marquee-container {
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: scrollMarquee 35s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Segmented Control in Calculator */
.segmented-item {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.segmented-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(197, 168, 128, 0.3);
}

.segmented-item.active {
  background: rgba(197, 168, 128, 0.12);
  border-color: rgba(197, 168, 128, 0.6);
  box-shadow: 0 0 20px -3px rgba(197, 168, 128, 0.2);
}

/* Custom Range Input */
.delicate-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  outline: none;
}

.delicate-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(197, 168, 128, 0.65);
  transition: all 0.2s;
  border: 2px solid #fff;
}

.delicate-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--accent-gold-light);
}

/* Before / After Slider */
.ba-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
}

.ba-image-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 0 var(--slider-pos, 50%));
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slider-pos, 50%);
  width: 2px;
  background: #ffffff;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 6px rgba(255, 255, 255, 0.6);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffffff;
  color: #0b0a09;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  cursor: ew-resize;
  border: 3px solid #c5a880;
  transition: transform 0.15s ease;
}

.ba-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  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 10px 30px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.6;
  animation: waPulse 2.4s infinite;
  z-index: -1;
}

@keyframes waPulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* Sticky Mobile Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  display: flex;
  gap: 10px;
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}
