/* ===== Reset básico ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, input, select, button {
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  color: #333;
}

/* ===== Contenedor general ===== */
#cn-compra-guiada {
  max-width: 1100px;
  margin: 50px auto;
  padding: 20px;
  background: #fff;
}

/* ===== Sección de cada paso ===== */
.cn-seccion {
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 30px;
}

.cn-seccion h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #222;
}

/* ===== Grillas de opciones (ambiente, ventana, etc.) ===== */
.cn-opciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.cn-opcion {
  background: #f4f4f4;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cn-opcion:hover {
  background: #e0e0e0;
  border-color: #2196F3;
}

/* === Hover para imágenes de ambientes (igual que cortinas) === */
.cn-ambiente-item {
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.cn-ambiente-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cn-ambiente-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}


/* ==== Ambiente (tipo de espacio) ==== */
.cn-ambientes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
  margin-bottom: 30px;
}

.cn-ambiente-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cn-ambiente-img {
  width: 300px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 10px;
}

.cn-ambiente-nombre {
  font-size: 16px;
  font-weight: 500;
  color: #222;
}


/* ===== Medidas (ancho y alto) ===== */
.cn-medidas {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.cn-medidas label {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-weight: 500;
}

.cn-medidas input {
  margin-top: 5px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* ===== Ayuda y mensajes ===== */
.cn-ayuda {
  font-size: 14px;
  color: #777;
}

/* ===== Paso 3 - Necesidades por espacio ===== */
.cn-prioridades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
  margin-bottom: 30px;
}
 
 
/* ===== Presupuesto (tipo visual) ===== */


.v5-opciones-presupuesto {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.opcion-presupuesto {
  width: 250px;
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* sombra inicial sutil */
}

.opcion-presupuesto:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* igual que las de ambiente */
  transform: translateY(-4px);
}

.icono-presupuesto {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  object-fit: contain;
}






/* === Separador entre secciones === */
.divisor-seccion {
  margin: 50px auto 30px auto;  /* Más espacio arriba y abajo */
  width: 80%;
  border: none;
  border-top: 1px solid #eee;
}

  





/* ===== Cortinas (tipo visual) ===== */
.cn-cortinas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.cn-cortina-item {
  
  padding: 20px;
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cn-cortina-nombre {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #222;
}

.cn-cortina-item:hover {
  background: #f0f0f0;
  border-color: #2196F3;
}

/* ===== Catálogo de telas ===== */
.cn-catalogo-telas {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  border: 1px dashed #ccc;
}

/* ===== Piezas, mecanismo, instalación ===== */
.cn-label-block {
  display: block;
  margin-top: 15px;
  font-weight: 500;
}

.cn-label-block input,
.cn-label-block select {
  width: 100%;
  margin-top: 5px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* ===== Presupuestos ===== */
.cn-listado-presupuestos {
  background: #f1f1f1;
  border: 1px dashed #bbb;
  padding: 15px;
  border-radius: 6px;
  color: #444;
}

/* ===== Piezas ===== */
.cn-bloque-piezas {
  text-align: center;
  margin: 50px auto;
}

.cn-bloque-piezas h2 {
  font-size: 24px;
  color: #0a0a23;
  margin-bottom: 30px;
  font-weight: bold;
}

.cn-contenedor-piezas {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.pieza-item {
  flex: 1 1 calc(20% - 20px);
  background-color: #fff;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer; /* 👈 esta línea hace que el cursor sea una mano */
}


.pieza-item img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.pieza-item p {
  margin-top: 12px;
  font-weight: 500;
  color: #333;
}

.pieza-item:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* ===== Piezas ===== */
.selector-cortinas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-tipo-cortina {
  background-color: white;
  border: 2px solid #ccc;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}

.btn-tipo-cortina:hover {
  border-color: #2196F3;
}

.btn-tipo-cortina.seleccionado {
  border-color: #2196F3;
  background-color: #e3f2fd;
  font-weight: bold;
}


/* ===== Resumen final ===== */
.cn-resumen-pedido {
  background: #fff6e5;
  padding: 20px;
  border: 1px solid #f0c36d;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* ===== Botón Final ===== */
.cn-boton-finalizar {
  background: #2196F3;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cn-boton-finalizar:hover {
  background: #1976D2;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .cn-medidas {
    flex-direction: column;
  }
}


