* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
}

.contenedor {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
}

header {
    background: linear-gradient(135deg, #4a5568, #718096);
    color: white;
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    margin-bottom: 25px;
}

header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

header p {
    font-size: 18px;
}

.descripcion,
.panel,
.tabla-section,
.grafica-section {
    background: white;
    padding: 25px;
    border-radius: 18px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.descripcion h2,
.formulario h2,
.resultados h2,
.tabla-section h2,
.grafica-section h2 {
    margin-bottom: 15px;
    color: #2d3748;
}

.descripcion p {
    line-height: 1.6;
}

.panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.formulario label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: bold;
}

.formulario select,
.formulario input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    font-size: 15px;
}

button {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    border: none;
    background: #2b6cb0;
    color: white;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #1e4e8c;
}

.resultados {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tarjeta {
    background: #edf2f7;
    padding: 18px;
    border-radius: 14px;
    border-left: 6px solid #2b6cb0;
}

.tarjeta span {
    font-size: 14px;
    color: #4a5568;
}

.tarjeta h3 {
    margin-top: 8px;
    font-size: 24px;
    color: #1a202c;
}

.recomendacion {
    background: #ebf8ff;
    border-left: 6px solid #3182ce;
    padding: 15px;
    border-radius: 10px;
    line-height: 1.5;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th {
    background: #4a5568;
    color: white;
    padding: 12px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

tr:hover {
    background: #f7fafc;
}

.grafica-section {
    height: auto;
}

@media (max-width: 768px) {
    .panel {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 24px;
    }
}
#graficaVentas {
    max-height: 380px;
}
.grafica-section {
    overflow-x: auto;
}

#graficaVentas {
    min-width: 800px;
    height: 380px;
}