/* ================================
   COTIZADOR RSNEON – ESTILO BASE
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;700&display=swap');

:root {
  --color-principal: #b52450;
  --color-fondo: #ffffff;
  --color-input: #f9f9f9;
  --color-borde: #ccc;
  --color-texto: #333;
  --color-hover: #99193f;
  --radio-borde: 6px;
}

* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: 'Lato', sans-serif;
  color: var(--color-texto);
  background: var(--color-fondo);
  overflow: hidden;
}

/* Contenedor principal */
.cotizador-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  box-shadow: 0 0 20px rgba(0,0,0,0.05); /* ✅ Sombra sutil */
}

/* Render – lado izquierdo (60%) */
.columna-render {
  flex: 0 0 60%;
  background-color: #000;
  background-image: url('bg/wall01neon.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 2rem;
}

#area-render {
  position: relative;
  width: 100%;
  height: 100%;
}

#svg-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* asegurarse que está encima del fondo */
  pointer-events: none;
}

#medidasRender {
  font-size: 1.2rem;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  pointer-events: none;
}

.render-bottom-bar {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

/* Formulario – lado derecho (40%) */
.columna-formulario {
  flex: 0 0 40%;
  background: var(--color-fondo);
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#contenedor-pasos {
  flex-grow: 1;
}

/* Pasos del cotizador */
.paso {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.paso.visible {
  display: flex;
}

/* Inputs, selects, textarea */
.paso input,
.paso select,
.paso textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-borde);
  border-radius: var(--radio-borde);
  background: var(--color-input);
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  color: var(--color-texto);
  transition: all 0.3s ease;
  outline: 1px solid #ddd; /* ✅ Outline tenue gris */
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* ✅ Sombra ligera */
}


.paso input:focus,
.paso select:focus,
.paso textarea:focus {
  outline: none;
  border-color: var(--color-principal);
  background: #fff;
  box-shadow: 0 0 5px rgba(181, 36, 80, 0.15);
}

.paso label {
 font-family: 'Lato', sans-serif;
  font-weight: 600;
  margin-bottom: 0.3rem;
   color: #141414; /* Gris profesional */
  

    
}

/* Color picker circular */
.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem;
}

.color-option {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-option:hover {
  transform: scale(1.1);
  border-color: var(--color-principal);
}

.color-option.selected {
  outline: 3px solid var(--color-principal);
  transform: scale(1.1);
}

/* Slider personalizado */
#sliderAncho {
  width: 100%;
  margin-top: 1rem;
  accent-color: var(--color-principal);
}

#textoAnchoManual {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

#btnRestaurarAuto {
  margin-top: 0.5rem;
  padding: 0.5rem 0.8rem;
  border: none;
  background-color: #ddd;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
}

#btnRestaurarAuto:hover {
  background-color: #bbb;
}

/* Botones navegación */
.navegacion-wizard {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
  
}

.navegacion-wizard button {
  flex: 1;
  padding: 1rem;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  background-color: var(--color-principal);
  color: white;
  border-radius: var(--radio-borde);
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12); /* ✅ Sombra moderna */

}

.navegacion-wizard button:hover {
  background-color: var(--color-hover);
}

/* Botón alternativo verde */
.btn-verde {
  background-color: #2b7030;
}

.btn-verde:hover {
  background-color: #215926;
}

/* Responsive – columnas apiladas */
@media (max-width: 768px) {
  .cotizador-container {
    flex-direction: column;
  }

  .columna-render,
  .columna-formulario {
    flex: 1 1 100%;
    width: 100%;
    padding: 1.5rem;
  }

  .navegacion-wizard {
    flex-direction: column;
  }
}
.galeria-fondos {
  display: flex;
  gap: 10px;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.opcion-fondo {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border: 2px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.opcion-fondo:hover {
  transform: scale(1.05);
  border-color: var(--color-principal);
}

.opcion-fondo.activo {
  border-color: var(--color-principal);
  outline: 3px solid var(--color-principal);
}

.render-bottom-bar {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

#selectorFondos {
  display: flex;
  gap: 10px;
}

#selectorFondos img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border: 2px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

#selectorFondos img:hover {
  transform: scale(1.05);
  border-color: var(--color-principal);
}

#selectorFondos img.activo {
  border-color: var(--color-principal);
  outline: 3px solid var(--color-principal);
}

.btn-personalizado-morado {
  background-color: #7b2cbf; /* Morado neón */
  color: white;
  font-size: 16px;
  padding: 16px 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  font-family: 'Lato', sans-serif; /* Fuente Lato */
  font-weight: 400; /* Peso regular */
  margin: 5px 0; /* 👈 Margen reducido superior e inferior */
  cursor: pointer;
  transition: background-color 0.3s ease;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); /* ✅ Sombra moderna */
}



.btn-personalizado-morado:hover {
  background-color: #5a189a;
}

.btn-personalizado-morado i {
  font-size: 18px;
}

.form-personalizado {
  max-width: 700px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* ✅ Mejor integración visual */

}

/* ============================================
   BOTONES DEL PASO 5 – Estilo moderno uniforme
=============================================== */

.botones-paso5 {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12); /* ✅ Sombra moderna */

}

/* Estilo base para ambos botones */
.boton-paso5 {
  flex: 1;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
  background-color: #b52450;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12); /* ✅ Sombra moderna */

}

/* Hover común */
.boton-paso5:hover {
  background-color: #9c1e43;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12); /* ✅ Sombra moderna */

}
h1, h2, h3, h4, h5, h6, label {
  font-family: 'Lato', sans-serif;
  font-weight: 600; /* ✅ Peso medio (no negrita artificial) */
color: #141414; /* Gris profesional */

}

.boton-alineacion {
  background-color: #f3f3f3;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #444;
  font-size: 18px;
  padding: 8px 12px;
  margin: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.boton-alineacion:hover {
  background-color: #e0e0e0;
  transform: scale(1.05);
}

.boton-alineacion.selected {
  background-color: #b52450;
  color: white;
  border-color: #b52450;
}

/* =============================== */
/* BARRA SUPERIOR DEL RENDER */
/* =============================== */
/* Barra superior dentro del render */
.render-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none; /* permite clics pasar debajo excepto en hijos */
}

.render-top-bar img,
.render-top-bar .btn-salir {
  pointer-events: all;
}

/* Logo SVG blanco */
.logo-superior {
  height: 40px;
  opacity: 0.95;
}

/* Botón Salir */
.btn-salir {
  color: #fff;
  background-color: rgba(181, 36, 80, 0.9);
  padding: 8px 14px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s ease;
}
.btn-salir:hover {
  background-color: rgba(181, 36, 80, 1);
}

}
