/* styles.css */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #00796b; /* Fondo suave para mejor contraste */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #00796b;
    color: white;
    padding: 30px 20px; /* Asegúrate de tener suficiente padding */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.em; /* Tamaño del título */
}

.guia-button {
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.9em; /* Tamaño del texto del botón */
    color: #fff; /* Color del texto del botón */
    background-color: #00796b; /* Color de fondo blanco */
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid ; /* Borde color del tema */
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.guia-button:hover {
    background-color: #00796b; /* Color de fondo cuando el ratón pasa sobre el botón */
    color: white; /* Color del texto cuando el ratón pasa sobre el botón */
}

.container {
    width: 95%; /* Aumentar el ancho al 95% */
    max-width: 1400px; /* Aumentar el ancho máximo a 1400px */
    margin: auto;
    padding: 30px; /* Aumentar el padding a 30px */
}

#amortizacion {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

h3 {
    color: #00796b;
    font-size: 24px;
    margin-bottom: 20px;
}

#amortizacion-form {
    display: flex;
    flex-direction: column;
}

#amortizacion-form label {
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

#amortizacion-form input,
#amortizacion-form select {
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #00796b;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

#amortizacion-form button {
    background-color: #00796b;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-bottom: 10px; /* Separar el botón del siguiente elemento */
}

#amortizacion-form button:hover {
    background-color: #004d40;
}

#resultado-amortizacion {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    border: 1px solid #00796b;
    padding: 12px;
    text-align: right;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

table th {
    background-color: #004d40;
    color: white;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #e0f2f1;
}

table tr:nth-child(odd) {
    background-color: #ffffff;
}

canvas {
    width: 100%;
    height: 400px;
    margin-top: 20px;
    border: 1px solid #00796b;
    border-radius: 6px;
    background-color: #ffffff;
}

/* Estilos adicionales para el botón de exportación */
#exportar-excel {
    background-color: #004d40;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#exportar-excel:hover {
    background-color: #003d34;
}

footer {
    background-color: #00796b;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}
/* For mobile devices (max-width: 480px) */
@media screen and (max-width: 480px) {
    header {
        padding: 15px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .guia-button {
        padding: 8px 12px;
        font-size: 0.8em;
    }

    .container {
        width: 95%;
        padding: 15px;
    }

    h3 {
        font-size: 18px;
    }

    #amortizacion-form {
        flex-direction: column;
        gap: 10px;
    }

    #amortizacion-form input,
    #amortizacion-form select {
        font-size: 14px;
    }

    table th, table td {
        padding: 8px;
        font-size: 0.8em;
    }

    canvas {
        height: 250px;
    }

    #exportar-excel {
        width: 100%;
        padding: 12px;
    }

    footer {
        font-size: 12px;
    }
}