/* ==============================================================================
   ESTILOS PERSONALIZADOS PARA EL SITIO WEB DE REFORMAS
   ============================================================================== */

@charset "UTF-8";

/* Suavizado de fuentes y scroll */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* --- ESTILOS DEL SLIDER DE M2 (CALCULADORA) --- */
input[type="range"]#calc-m2-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  outline: none;
  transition: background 0.2s;
}

input[type="range"]#calc-m2-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f59e0b; /* Amber 500 */
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

input[type="range"]#calc-m2-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f59e0b;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
  cursor: pointer;
}

/* --- ESTILOS DEL SLIDER ANTES Y DESPUÉS --- */
.ba-container {
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

#ba-handle {
  transform: translateX(-50%);
  pointer-events: none;
}

#ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18-6-6 6-6'/%3E%3Cpath d='m15 6 6 6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* --- PULSO DE WHATSAPP FLOTANTE --- */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 16px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.whatsapp-pulse-btn {
  animation: pulse-ring 2.5s infinite;
}

/* Ocultar barra de scroll en contenedores horizontales móviles */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
