/* ==========================================================================
   RENOVÁ - WEB 2027 (PALETA LUMINOSA: AZULES CLAROS, PASTEL Y DETALLES AMARILLO)
   ========================================================================== */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f7ff;
}
::-webkit-scrollbar-thumb {
  background: #bae6fd;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Base resets & smooth transitions */
html {
  color-scheme: light;
}

body {
  overflow-x: hidden;
  background-color: #f8fafc;
  color: #0f172a;
}

/* Glassmorphism helpers for Light Theme */
.glass-panel-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(224, 242, 254, 0.8);
}

.glass-panel-sky {
  background: rgba(240, 249, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(186, 230, 253, 0.6);
}

/* Range Input (Slider) Styling for Budget Estimator */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  outline: none;
  transition: opacity .2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0284c7;
  border: 3px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #0369a1;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0284c7;
  border: 3px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

/* Interactive Before & After Slider */
#baContainer {
  position: relative;
  touch-action: pan-y;
}

#baHandle {
  touch-action: none;
}

#baBeforeWrapper {
  will-change: width;
}

/* Gallery transitions */
.gallery-item {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item.hidden-item {
  display: none;
  opacity: 0;
  transform: scale(0.95);
}

/* Hero Automatic Cross-Fade Carousel */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}

/* Project Multi-Slide Card Styling */
.project-slider {
  touch-action: pan-y;
}
.slide-track {
  will-change: transform;
}
.slide-nav-btn {
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}
.slide-nav-btn:hover {
  transform: translateY(-50%) scale(1.1) !important;
}

.filter-btn.active {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* FAQ Accordion Animations */
.faq-item.active {
  border-color: #38bdf8;
  background-color: #ffffff;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: #0284c7;
}

/* ==========================================================================
   FORMULARIO DE PRESUPUESTO (FORMSPREE)
   ========================================================================== */
.formulario-presupuesto {
  position: relative;
}

.formulario-presupuesto h2 {
  font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.02em;
}

.formulario-presupuesto .form-group label {
  transition: color 0.15s ease;
}

.formulario-presupuesto .form-group input:focus,
.formulario-presupuesto .form-group textarea:focus {
  border-color: #0284c7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.formulario-presupuesto .btn-enviar {
  transition: all 0.2s ease;
}

.formulario-presupuesto .btn-enviar:hover {
  transform: translateY(-1px);
}

.formulario-presupuesto .btn-enviar:active {
  transform: translateY(0);
}

.formulario-presupuesto .btn-enviar:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Color Filter Active State */
.color-filter-btn.active {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}

.color-pantone-card {
  backface-visibility: hidden;
  will-change: transform;
}

/* Subtle Pulsing Keyframes */
@keyframes subtlePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

.animate-subtle-pulse {
  animation: subtlePulse 3s ease-in-out infinite;
}

/* Touch improvements for mobile */
@media (max-width: 640px) {
  #heroComparison {
    height: 380px;
  }
}
