/* ==========================================================================
   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, 20, 0.88);
  --bg-card-hover: rgba(24, 24, 30, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(197, 168, 128, 0.45);
  --accent-gold: #c5a880;
  --accent-gold-light: #e2cca9;
  --accent-gold-dark: #9e825b;
  --text-main: #f5f1eb;
  --text-muted: #9b968e;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  background-color: #08080a;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(197, 168, 128, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 90% 25%, rgba(197, 168, 128, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 10% 48%, rgba(197, 168, 128, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 72%, rgba(197, 168, 128, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 98%, rgba(197, 168, 128, 0.07) 0%, transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 64px 64px, 64px 64px;
}

/* Grounded Luxury Architectural Footer Plinth with Glowing Top Glare */
.luxury-footer-plinth {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 14, 18, 0.98) 0%, rgba(8, 8, 10, 1) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -24px 60px -15px rgba(0, 0, 0, 0.9);
}

.luxury-footer-plinth::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(226, 204, 169, 0.8), transparent);
  box-shadow: 0 0 16px 2px rgba(197, 168, 128, 0.4);
}

/* Tactile Architectural Stone & Microcement Grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

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

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

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

/* Luxury Architectural Card with Obsidian Depth & Fine Rim Light */
.soft-glass-card {
  background: linear-gradient(165deg, rgba(18, 18, 24, 0.92) 0%, rgba(10, 10, 14, 0.97) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.85), 
              inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  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: rgba(197, 168, 128, 0.45);
  box-shadow: 0 28px 56px -14px rgba(0, 0, 0, 0.95), 
              0 0 30px -4px rgba(197, 168, 128, 0.18), 
              inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}

/* Ambient Architectural Spotlights */
#servicios {
  position: relative;
}
#servicios::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1150px;
  height: 65%;
  background: radial-gradient(ellipse at center, rgba(197, 168, 128, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#calculadora {
  position: relative;
}
#calculadora::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1050px;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(197, 168, 128, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 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);
}

/* Vibrant Green WhatsApp Button (Pill & Action) */
.btn-whatsapp-green {
  background: linear-gradient(135deg, #2ae06b 0%, #25d366 50%, #1ea952 100%);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.45), 0 0 12px -2px rgba(37, 211, 102, 0.25);
  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-whatsapp-green::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.6s ease;
}

.btn-whatsapp-green:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px -4px rgba(37, 211, 102, 0.65), 0 0 20px rgba(37, 211, 102, 0.4);
  filter: brightness(1.05);
}

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

.btn-whatsapp-green:active {
  transform: translateY(0) scale(0.98);
}

/* Facebook Official Button */
.btn-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0866ff 100%);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px -4px rgba(8, 102, 255, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-facebook:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(8, 102, 255, 0.65);
  filter: brightness(1.08);
}

.btn-facebook: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;
}

@media (max-width: 767px) {
  .whatsapp-float {
    display: 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;
  }
}

/* ==========================================================================
   INTERACTIVE GALLERY & LIGHTBOX SYSTEM
   ========================================================================== */
.gallery-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #9B968E;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-tab-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #F3F1EC;
  border-color: rgba(197, 168, 128, 0.3);
}

.gallery-tab-btn.active {
  background: linear-gradient(135deg, rgba(197, 168, 128, 0.18) 0%, rgba(197, 168, 128, 0.06) 100%);
  border-color: #C5A880;
  color: #F3F1EC;
  box-shadow: 0 4px 20px -4px rgba(197, 168, 128, 0.25);
}

.gallery-tab-btn.active .tab-badge {
  background: #C5A880;
  color: #08080A;
  font-weight: 700;
}

.gallery-photo-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #0E0E12;
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-photo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 168, 128, 0.5);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(197, 168, 128, 0.18);
}

.gallery-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.gallery-photo-card:hover img {
  transform: scale(1.06);
}

.gallery-overlay-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #C5A880;
  letter-spacing: 0.03em;
}

.gallery-zoom-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F3F1EC;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
}

.gallery-photo-card:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox Modal */
#lightbox-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.lightbox-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F3F1EC;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  cursor: pointer;
}

.lightbox-nav-btn:hover {
  background: #C5A880;
  color: #08080A;
  border-color: #C5A880;
  transform: scale(1.1);
}

.lightbox-view-btn {
  background: transparent;
  color: #9B968E;
  border: 1px solid transparent;
}

.lightbox-view-btn.active {
  background: rgba(197, 168, 128, 0.2);
  color: #C5A880;
  border-color: rgba(197, 168, 128, 0.4);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(197, 168, 128, 0.4);
  border-radius: 999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(197, 168, 128, 0.7);
}

/* ==========================================================================
   QUIZ & INTERACTIVE STEP WIZARD CALCULATOR (MOBILE & DESKTOP)
   ========================================================================== */
.quiz-step-tab {
  background: rgba(255, 255, 255, 0.03);
  color: #9B968E;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-step-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #F3F1EC;
}

.quiz-step-tab.active {
  background: rgba(197, 168, 128, 0.16);
  color: #F3F1EC;
  border-color: rgba(197, 168, 128, 0.6);
  box-shadow: 0 0 16px -2px rgba(197, 168, 128, 0.25);
}

.quiz-step-tab.active .step-num {
  background: #C5A880;
  color: #08080a;
}

.quiz-step-tab.completed .step-num {
  background: rgba(197, 168, 128, 0.4);
  color: #F3F1EC;
}

.quiz-step-panel {
  animation: quizFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes quizFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.m2-preset-chip {
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9B968E;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.m2-preset-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(197, 168, 128, 0.3);
  color: #F3F1EC;
  transform: translateY(-1px);
}

.m2-preset-chip.active {
  background: rgba(197, 168, 128, 0.18);
  border-color: #C5A880;
  color: #F3F1EC;
  box-shadow: 0 0 14px -2px rgba(197, 168, 128, 0.25);
}

.muni-chip {
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9B968E;
  cursor: pointer;
  transition: all 0.2s ease;
}

.muni-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #F3F1EC;
  border-color: rgba(197, 168, 128, 0.3);
}

.muni-chip.active {
  background: rgba(197, 168, 128, 0.18);
  border-color: #C5A880;
  color: #F3F1EC;
  font-weight: 600;
  box-shadow: 0 0 12px -2px rgba(197, 168, 128, 0.25);
}

.quiz-addon-label {
  transition: all 0.2s ease;
}

.quiz-addon-label:hover {
  border-color: rgba(197, 168, 128, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.quiz-addon-label:has(input:checked) {
  background: rgba(197, 168, 128, 0.1);
  border-color: rgba(197, 168, 128, 0.55);
}


