/* ==================== RESET Y BASE ==================== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.5;
}

.text-center{
    text-align: center;
}

.mb-8{
    margin-bottom: 20px;
}

/* ==================== INPUTS Y FORMULARIOS ==================== */
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #E7E7E7;
    border-radius: 30px;
    font-size: 14px;
    margin-top: 10px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23999' d='M7 8l6 6 6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
    color: gray;
    padding-right: 50px;
}

input[type="text"],
input[type="number"],
input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #E7E7E7;
    border-radius: 30px;
    margin-top: 10px;
    color: gray;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: #2C42D0;
}

input::placeholder {
    color: #999;
}

label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

/* ==================== BOTONES ==================== */
.btn {
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #2C42D0;
    padding: 10px 25px;
    line-height: 16px;
    border-radius: 45px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin: auto;
    margin-top: 25px;
    margin-bottom: 35px;
}

.btn-primary:hover {
    background-color: #263185;
}

@media (width >= 768px) {
    .btn-primary {
        padding: 8px 32px;
        line-height: 24px;
        font-size: 16px;
    }
}

.btn-secondary {
    background-color: #D9D9D9;
    padding: 10px 15px;
    line-height: 16px;
    border-radius: 8px;
    color: white;
    font-size: 20px;
    font-weight: 500;
    display: block;
    margin: auto;
}

.btn-secondary:hover {
    background-color: #eaeaec;
}

/* ==================== SIMULADOR ESTILOS ==================== */
.simulador-container {
    width: 100%;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.simulador {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.btn_simulator {
    width: 60%;
    display: block;
    padding: 15px 0;
    margin: auto;
    margin-bottom: 35px;
    margin-top: 30px;
    font-size: 19px;
}

.projection-section {
    display: none;
}

.content-profile {
    background: #FFFFFF;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 30px;
    border: 1px #D9D9D9 solid;
    width: 90%;
    max-width: 850px;
}

.projection-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.projection-table tr {
    border-radius: 16px;
}

.projection-table th {
    background-color: #F5F5F5;
    color: #003C69;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    font-family: Hammersmith One;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
}

.projection-table td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
}

.projection-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.projection-table tfoot tr {
    background-color: #F5F5F5;
    font-weight: bold;
}

#metaEstudio {
    color: rgba(24, 32, 78, 1);
    padding-top: 16px;
    text-align: center;
    font-family: Hammersmith One;
    font-weight: 400;
    line-height: 150%;
    vertical-align: middle;
    font-size: 22px;
}

@media (min-width: 768px) {
    .projection-table th {
        font-size: 16px;
    }
}

@media (min-width: 1200px) {
    .simulador {
        flex-direction: row;
        align-items: flex-start;
        gap: 50px;
    }

    .content-profile {
        margin: 0;
        height: auto;
    }
}

/* ==================== FORMULARIO GRID ==================== */
.form-group {
    margin-bottom: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    row-gap: 10px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
}

/* ==================== SPINNER ==================== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #263185;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

.spinner-content {
    text-align: center;
    color: white;
}

.spinner-content p {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== COLORES DE FONDO ==================== */
.bg-light-grey {
    background-color: #F5F5F5;
}

.bg-white {
    background-color: white;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 480px) {
    .content-profile {
        padding: 20px;
    }
    
    .btn_simulator {
        width: 80%;
    }
    
    .simulador-container {
        padding: 10px;
    }
}
