/* =============================
   ESTILOS GENERALES
============================= */
body {
  font-family: 'Roboto', Calibri, Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  color: #333;
}

.cotizador-container {
  max-width: 980px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =============================
   BARRA DE PASOS (WIZARD)
============================= */
.cotizador-progress-bar {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.cotizador-progress-bar::before {
  content: '';
  position: absolute;
  top: 1.3em;
  left: 3%;
  right: 3%;
  border-top: 2px solid #ccc;
  z-index: 0;
}

.cotizador-progress-bar li {
  position: relative;
  background: #d0dff2;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  z-index: 1;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
}

.cotizador-progress-bar li.active {
  background: #4B74A9;
}

.cotizador-progress-bar .pasado {
  background: #ffc1e3;
}

/* =============================
   FORMULARIO DE COTIZACIÓN
============================= */
.cotizador-step {
  display: none;
  margin-top: 30px;
}

.cotizador-step.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  background-color: #fff;
  margin-top: 8px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #e91e63;
  outline: none;
}

/* =============================
   BOTONES
============================= */
button,
input[type="submit"] {
  padding: 10px 24px;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  margin: 5px 8px 15px 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cotizador-prev-btn,
.cotizador-next-btn {
  background-color: #4B74A9;
  color: white;
}

.cotizador-prev-btn:hover,
.cotizador-next-btn:hover {
 background-color: #6A93C5;
  transform: scale(1.04);
}

.cotizador-submit-btn {
   background-color: #4B74A9;
  color: white;
}

.cotizador-submit-btn:hover {
  background-color: #6A93C5;
  transform: scale(1.05);
}

/* =============================
   PASO 1: TIPO DE LETRAS
============================= */
.cotizador-grid-3 {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-top: 20px;
  text-align: center;
  flex-wrap: wrap;
}

.tipo-columna {
  flex: 1;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tipo-columna img {
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  object-fit: contain;
}

.etiqueta-tipo {
  margin-top: 6px;
  font-weight: bold;
  font-size: 16px;
  color: #333;
}

/* =============================
   RESULTADO DE LA COTIZACIÓN
============================= */
#cotizador-resultados {
  background: #fff;
  border: 1px solid #ccc;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

.cotizacion-formal h1 {
  text-align: center;
  color: #4B74A9;
}

.cotizacion-tabla {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.cotizacion-tabla th,
.cotizacion-tabla td {
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 14px;
  text-align: left;
}

.cotizacion-tabla th {
  background: #eaeaea;
}

.cotizacion-totales {
  text-align: right;
  margin-top: 20px;
}

.cotizacion-totales p,
.cotizacion-totales h3 {
  margin: 6px 0;
}

/* =============================
   ANIMACIÓN DE CARGA
============================= */
.cargando-cotizacion {
  font-size: 16px;
  text-align: center;
  color: #333;
  padding: 40px 20px;
}

.cotizador-flex {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.cotizador-col-izquierda {
  width: 65%;
}

.cotizador-col-derecha {
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

.cotizador-col-derecha img,
.cotizador-col-derecha svg {
  max-width: 100%;
  height: auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  
  /* ===================================================
   LAYOUT DE PASO 2: 65% formulario + 35% render
=================================================== */
.cotizador-flex {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.cotizador-col-izquierda {
  width: 65%;
}

.cotizador-col-derecha {
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.cotizador-col-derecha img,
.cotizador-col-derecha svg {
  max-width: 100%;
  height: auto;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* ===================================================
   ESTILO PARA NOTA DE ILUMINACIÓN AUTOMÁTICA
=================================================== */
.nota-iluminacion {
  font-size: 13px;
  font-style: italic;
  color: #555;
  margin-top: 10px;
  background: #f9f9f9;
  padding: 10px;
  border-left: 6px solid #ff9800;
  border-radius: 6px;
}

.nota-fija-iluminacion {
  margin-top: 12px;
  font-size: 11px;
  color: #888;
  background: none;
  padding: 4px 8px;
  border-left: 2px solid #ddd;
  font-style: italic;
  line-height: 1.3;
}

.columna-50 {
  width: 48%;
  display: inline-block;
  vertical-align: top;
  margin-right: 2%;
}

.fila-letra {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.fila-frase {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.columna-40 {
  flex: 0 0 20%;
  max-width: 20%;
}

.columna-60 {
  flex: 0 0 80%;
  max-width: 80%;
}


.contador {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

.nota-diseno {
  font-size: 11px;
  color: #666;
  border-left: 2px solid #ccc;
  padding: 6px 10px;
  font-style: italic;
  line-height: 1.4;
}

.input-error {
  border: 2px solid red !important;
  background-color: #ffe6e6;
}

.navegacion-botones {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
}

.cotizador-prev-btn {
  flex: 1;
  max-width: 200px;
  text-align: left;
}

.cotizador-next-btn {
  flex: 1;
  max-width: 200px;
  text-align: right;
}
