@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

body {
  font-family: 'Lato', sans-serif;
  background-color: #f5e5d7;
  padding: 20px;
  color: #333;
}

.form-container {
  max-width: 600px;
  margin: auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
}

.form-datoscliente,
.form-datosmedicion,
.form-datosmecanismo,
.form-datoscadena,
.form-datostipodetela,
.form-datoscaidacortina {
  border: 0.5px solid rgb(209, 207, 207);
  max-width: 600px;
  margin-top: 10px;
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
}

h2, h3, h4 {
  text-align: center;
  margin-bottom: 10px;
  color: #575454;
  font-weight: 700;
}

h4 {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  color: #f27c41;
}

input::placeholder {
  opacity: 0.5; /*  El placeholder será 50% transparente */
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #fdfdfd;
  font-size: 15px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.toggle-group {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.toggle-btn {
  flex: 1;
  margin: 5px;
  padding: 12px;
  background: #e6e6e6;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  color: #444;
  transition: background 0.3s ease;
}

.toggle-btn.active {
  background: #f27c41;
  color: white;
}

button[type="submit"] {
  margin-top: 30px;
  padding: 14px;
  width: 100%;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background: #3b9440;
}

.imagen-titulo {
  display: block;
  margin: 10px auto;
  max-width: 100%;
  max-height: 150px;
  border-radius: 10px;
  object-fit: contain;
}

.imagen-medir {
  display: block;
  margin-top: 5px;
  max-width: 100%;
  max-height: 250px;
  border-radius: 10px;
  object-fit: contain;
}

.imagen-tela img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  margin: 10px 0 20px;
  border-radius: 10px;
  display: block;
}

.color-unico {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-top: 10px;
}

.radio-colores {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  text-align: left;
}

.radio-colores label {
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.radio-colores input[type="radio"] {
  margin-right: 8px;
}

/* Bloques telas para que se vean separados y con espacio */
.bloque-tela {
  margin-top: 20px;
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

#btnAbrirVentana {
  margin-top: 30px;
  padding: 14px;
  width: 100%;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

#btnAbrirVentana:hover {
  background: #3b9440;
}

/* --- Estilos nuevos para botones de telas Black Out y Sunscreen --- */

/* Botones apagados (modo gris) */
.bloque-tela .tela-toggle {
  background-color: #ccc; /* gris apagado */
  color: #444;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

/* Botones activos en naranja */
.bloque-tela .tela-toggle.active {
  background-color: #f27c41;
  color: white;
}
