/* Versión 1.0.5 */

/* Estilos de la calculadora se añadirán aquí */ 
.aoe-cae-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.aoe-cae-container h1 {
    font-size: 36px;
    margin-bottom: 30px;
}

.aoe-cae-container h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.aoe-cae-container h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.aoe-cae-form-container {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.aoe-cae-form-container p {
    margin-bottom: 20px;
}

.aoe-cae-form-container label {
    display: block;
    margin-bottom: 10px;
}

.aoe-cae-form-container input[type="text"] {
    width: 60px;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    margin: 0 5px;
}

.aoe-cae-form-container input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    background: white; /* Fondo blanco */
    margin: 10px 0;
}

.aoe-cae-resultados-container {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aoe-cae-resultados-fila {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.aoe-cae-resultado-caja {
    flex: 1;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.aoe-cae-resultado-caja.grande {
    flex: 2;
}

.aoe-cae-valor {
    font-size: 24px;
    font-weight: bold;
    color: #217a00;
}

.aoe-cae-resultado-caja.grande .aoe-cae-valor {
    font-size: 36px;
}

.aoe-cae-periodo {
    display: block;
    font-size: 18px;
    font-weight: normal;
    color: #666;
    margin-top: 5px;
}

#aoe-cae-errores {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 18px;
}

/* Estilos para el slider */
.aoe-cae-form-container input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    outline: none;
}

/* Estilos para el contenedor del slider */
.aoe-cae-slider-container {
    position: relative;
    margin: 20px 0;
}

.aoe-cae-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #666;
}

/* Estilos para el valor del slider */
#aoe-cae-ahorro-valor {
    font-weight: bold;
    color: #2c3e50;
    font-size: 18px;
}

@media (max-width: 768px) {
    .aoe-cae-container {
        flex-direction: column;
    }
    .aoe-cae-form-container {
        max-width: 100%;
    }
    .aoe-cae-resultados-fila {
        flex-direction: column;
    }
    .aoe-cae-resultado-caja {
        margin-bottom: 10px;
    }
}

@import url('https://fonts.cdnfonts.com/css/roobert');

#aoe-calculadora-cae-container {
    font-family: 'Roobert', sans-serif;
    margin: 0 auto;
    max-width: 1280px;
}



.calculator-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}



.input-w{    
    width: 100px !important;
}

.input-group input[type="text"] {
    width: 61px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 21px;
    font-weight: bold;
}

.input-group input[type="range"] {
    flex-grow: 1;
    background: #fff;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    width: 300px;
    height: 9px;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 23px;
    height: 22px;
    background: #56AFE1;
    border-radius: 50%;
    cursor: pointer;
}

.results-header {
    font-size: 28px;
    color: #666666;
    margin: 30px 0 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.mx-w{
    max-width: 257px;
    width: 247px;
}

.result-box {
    background: #f8f8f8;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 20px;
    min-width: 184px;
}

.result-box.large {
    grid-column: span 2;
}

.result-value {
    font-size: 34px;
    color: #000;
    font-weight: bold;
    margin-bottom: 5px;
}

.result-box.large .result-value {
    font-size: 38px;
}

.result-label {
    color: #000;
}

.result-box.large .result-label {
    font-size: 28px;
}

/* Error state */
.input-error {
    border-color: #ff0000 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-box.large {
        grid-column: auto;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-group input[type="text"] {
        width: 100%;
    }

    .input-w{
        width: 100% !important;
    }
}

.calculator-container {
    font-family: 'Roobert', sans-serif;
    margin: 0 auto;
    max-width: 1280px;
    display: flex;
    gap: 8px;
}

.input-section {
    flex: 1;
    border-radius: 33px;
    background: rgba(230, 230, 230, 0.54);
    padding: 1rem;
     padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    max-width: 515px;
}

.results-section {
    flex: 1;
    min-width: 300px;
}

.input-group {
    flex: 1;
    display: inline-flex;
    min-width: 100%;
    gap: 13px;
   
}
.mb-1{
    margin-bottom: 1rem;
}

.input-group label {
    color: #000000;
    font-weight: normal;
    margin-top: 9px;
}

.range-container {
    flex: 1;
    display: flex;
    gap: 15px;
    align-items: center;
}

.range-container span {
    color: #000000;
    font-weight: normal;
    white-space: nowrap;
}

/* Estilos para los inputs de texto */
.aoe-cae-form-container input[type="text"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: bold;
    color: #666666;
    text-align: center;
}

/* Estilos para los sliders */
.aoe-cae-form-container input[type="range"] {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #fff;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    margin: 10px 0;
    padding: 0;
    position: relative;
}

/* Estilo para el track del slider */
.aoe-cae-form-container input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    border: none;
}

.aoe-cae-form-container input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    border: none;
}

/* Estilo para el thumb (pelotita) del slider */
.aoe-cae-form-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #56AFE1;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -8px; /* (altura del thumb - altura del track) / 2 */
    border: none;
    background: white;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.aoe-cae-form-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #56AFE1;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Asegurar que el thumb no se salga en Firefox */
.aoe-cae-form-container input[type="range"]::-moz-range-progress {
    height: 4px;
    background: #fff;
    border-radius: 2px;
}

/* Ajustes para Edge/IE */
.aoe-cae-form-container input[type="range"]::-ms-track {
    width: 100%;
    height: 4px;
    background: transparent;
    border: none;
    color: transparent;
}

.aoe-cae-form-container input[type="range"]::-ms-fill-lower {
    background: #e0e0e0;
    border-radius: 2px;
}

.aoe-cae-form-container input[type="range"]::-ms-fill-upper {
    background: #e0e0e0;
    border-radius: 2px;
}

.aoe-cae-form-container input[type="range"]::-ms-thumb {
    width: 20px;
    height: 20px;
    background: #56AFE1;
    border-radius: 50%;
    cursor: pointer;
    margin-top: 0;
    border: none;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}



/* Estilos para los resultados */
.results-title {
    color: #000000;
    margin: 0 0 0px;
}

.results-container {
    display: inline-flex;
    gap: 8px;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 8px;
    justify-content: start;
}

.result-box {
    width: 247px;
    height: 161px;
    border-radius: 24.874px;
    border: 2.369px solid #049641;
    box-shadow: 0px 6.532px 9.798px 0px rgba(0, 0, 0, 0.23);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
}

/* Los últimos dos boxes son más grandes */
.result-box2 {
    width: 375px;
    height: 161px;
    grid-column: span 1.5;
}

.result-box .value {
    margin-bottom: 10px;
    color: #049641;
    font-weight: bold;
    margin-top: 0rem;
}

.result-box .label {
    color: #000;
    margin-top: auto;
}


/* Responsive */
@media (max-width: 1024px) {
    .calculator-container {
        flex-direction: column;
    }
    
    .input-section,
    .results-section {
        width: 100%;
        margin: auto;
        max-width: 100%;
    }

    .results-title {

        text-align: center;
    }
    
    .results-container {
        grid-template-columns: repeat(2, 192px);
        justify-content: center;
    }
    
    .result-box2{
        grid-column: span 2;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .range-container {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .aoe-cae-form-container input[type="text"] {
        width: 100%;
    }
    
    .results-container {
        grid-template-columns: 192px;
        justify-content: center;
    }
    
    .result-box {
        width: 192px !important;
        grid-column: 1;
        height: 186px;
        margin: 0 auto;
    }
    
    .result-box2 {
        width: 192px !important;
        grid-column: 1;
        height: 186px;
        margin: 0 auto;
    }
    
    .mx-w {
        max-width: 192px !important;
        width: 192px !important;
    }

    .input-group input[type="range"]{
        width: 100%;
    }
} 

@media (max-width: 350px) {
    .results-container {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
    }
    .result-box, .result-box2{
        width: 192px !important;
        height: 104px;
        margin: 0 auto;
    }
    
    .mx-w {
        max-width: 192px !important;
        width: 192px !important;
    }

    .results-section {
        min-width: 0;
    }

}

.text-center{
    text-align: center !important;
}
.text-left{
    text-align: left !important;
}

/* Estilo base */
.font-47 {
    font-size: 47px;
    white-space: nowrap;
    margin-top: 1rem;
}

/* Pantalla de 1024px */
@media (max-width: 1024px) {
    .font-47 {
        font-size: 37px; /* Ajuste proporcional */
        white-space: nowrap;
    }
}

/* Pantalla de 768px */
@media (max-width: 768px) {
    .font-47 {
        font-size: 29px;
        white-space: nowrap;
    }
}

/* Pantalla de 400px */
@media (max-width: 400px) {
    .font-47 {
        font-size: 21px;
        white-space: nowrap;
    }
}

.buttonajuste{
    display: flex !important;
    margin-top: 4px !important;
}
/* Estilo base */
