/*
Theme Name: Astra Child Mirada Educativa
Theme URI: https://www.miradaeducativa.com
Description: Tema hijo de Astra para personalizaciones
Author: Mirada Educativa
Template: astra
Version: 1.0
*/


/* ==================================================
   CALCULADORAS - MIRADA EDUCATIVA
   ================================================== */

.calculadora {
    max-width: 520px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 16px;
    background: #F5F7FB;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-family: 'Inter', Arial, sans-serif;
    border: 1px solid #E3E8F0; /* opcional, mejora visual */
}

/* Título */
.calculadora h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #1B3A6B;
}

/* Labels */
.calculadora label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

/* Filas */
.fila-calculadora {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

/* Inputs y selects */
.campo-calculadora {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #D0DFF0;
    background: #F7FAFF;
    font-size: 14px;
    transition: all 0.2s ease;
}

.campo-calculadora:focus {
    outline: none;
    border-color: #2D6FAA;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(45,111,170,0.15);
}

/* Select */
.select-calculadora {
    max-width: 90px;
}

/* Botón */
.boton-calculadora {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #E53935, #C62828); /* rojo */
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.boton-calculadora:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(198,40,40,0.25);
}

.boton-calculadora:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27,58,107,0.2);
}

/* Resultado */
.resultado-calculadora {
    margin-top: 12px;
    padding: 15px;
    border-radius: 10px;
    background: #E8F0F8;
    font-weight: 600;
    color: #1B3A6B;
    text-align: center;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-calculadora {
    min-width: 110px;
    width: auto;
    flex-shrink: 0;
    padding: 10px 30px 10px 12px;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.fila-calculadora {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    align-items: center;
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 600px) {
    .fila-calculadora {
        flex-direction: column;
    }

    .select-calculadora {
        max-width: 100%;
    }

    .calculadora {
        padding: 20px;
    }
}