:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71; /* Aunque ya no se use en los textos, lo mantengo en la raíz */
    --background-color: #f8f9fa;
    --text-color: #333;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: left;
    margin-bottom: 2rem;
}


h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary-color); /* Cambié el color secundario por el color primario */
    margin-bottom: 1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.grid-item {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f4f4f4;
    color: black; /* Cambié los textos de blanco a negro */
    font-weight: 600;
}

tfoot th, tfoot td {
    background-color: #f1f3f5;
    font-weight: 600;
}

.status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.confirmed { background-color: #d4edda; color: #155724; }
.pending { background-color: #fff3cd; color: #856404; }
.tba { background-color: #e9ecef; color: #495057; }

footer {
    background-color: #f4f4f4;;
    color: black; /* Cambié los textos de blanco a negro */
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

footer h3 {
    margin: 0;
    font-size: 1.2rem;
}

footer p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
}

#financing-chart {
    width: 100%;
    height: 400px;
    margin-top: 2rem;
}

.editable-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}

/* Añadir una clase para limitar el ancho de ciertos campos de entrada */
.short-input {
    width: 300px;
    max-width: 100%;
    box-sizing: border-box;
}

#enviarDatos {
    cursor: pointer;
    font-size: 1.3em;
    padding: 20px;
    background: #f4f4f4;
    border: 2px solid #888888;
    border-radius: 8px;
    margin: 40px auto;
    width: 30%;
    transition: background 0.3s ease, transform 0.2s ease;
}

#enviarDatos:hover {
    background: #e0e0e0; /* Color un poco más oscuro al pasar el ratón, para dar una sensación de interacción */
    transform: scale(1.05);
}

#chatResponse {
    margin-top: 20px;
    border: 1px solid #888888; /* Cambié el borde al color #888888 */
    border-radius: 10px;
    background: #f4f4f4; /* Mismo color que el botón de "Enviar datos para analizar" */
    font-size: 1.2em;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil para darle más profundidad */
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.subtitulo {
    margin-top: 0.1rem;
    margin-bottom: 0.3rem; /* Reducir el margen en un 50 % */
    font-size: 0.8em;
}

