/* Estilos del formulario (los que proporcionaste) */
.ia-analisis-container {
  background: linear-gradient(to bottom right, #e8f3ff, #cfe3f9);
  padding: 30px 40px;
  border-radius: 20px;
  width: 420px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  font-family: "Segoe UI", sans-serif;
  box-sizing: border-box; /* Asegura que padding no aumente el ancho total */
}

.ia-analisis-container h2 {
  color: #0048ff;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #fff;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.form-row {
  margin-bottom: 18px;
  text-align: left;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 15px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 2px solid #ccc;
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  background-color: #fcfcfc;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #0048ff;
}

.form-row.doble {
  display: flex;
  gap: 15px;
}

.form-row.doble div {
  flex: 1;
}

button[type="submit"],
.ia-analisis-actions button {
  background: #0048ff;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 18px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: 0.3s ease;
  box-sizing: border-box;
  margin-top: 5px; /* Ajuste para espacio entre botones si hay varios */
}

button[type="submit"]:hover,
.ia-analisis-actions button:hover {
  background: #0036c7;
}

button[type="submit"]:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
}

/* Estilos para el contador de cuotas */
p.ia-analisis-quota {
    font-size: 0.9em;
    color: #555;
    text-align: center;
    margin-top: 15px;
}
p.ia-analisis-quota span#ia-quota-count {
    font-weight: bold;
    color: #0048ff;
}

/* Estilos para los resultados */
.ia-report-container {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
    border: 1px solid #e0e0e0;
}

.ia-report-title {
    color: #0048ff;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
}

.ia-report-objective,
.ia-report-data-count {
    font-size: 0.95em;
    margin-bottom: 8px;
    line-height: 1.5;
}

.ia-report-section-title {
    font-size: 1.3em;
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.ia-report-table-wrapper {
    overflow-x: auto; /* Para tablas grandes */
}

.ia-report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.ia-report-table th,
.ia-report-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.ia-report-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

.ia-report-charts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.ia-chart-item {
    flex: 1 1 45%; /* Dos gráficos por fila en pantallas grandes */
    min-width: 300px; /* Tamaño mínimo para el gráfico */
    max-width: 100%;
    background: #fafafa;
    padding: 15px;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.ia-report-analysis-text {
    background-color: #f9f9f9;
    border-left: 4px solid #0048ff;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
}
.ia-report-analysis-text p {
    margin: 0;
    line-height: 1.6;
    color: #444;
    font-size: 0.95em;
}

.ia-analisis-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}
.ia-analisis-actions button {
    flex: 1;
}

@media (max-width: 768px) {
    .ia-analisis-container {
        width: 100%;
        padding: 20px;
    }
    .form-row.doble {
        flex-direction: column;
    }
    .ia-report-charts .ia-chart-item {
        flex: 1 1 100%;
    }
}