@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.glass-card {
    background: white;
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-align: center;
    width: 90%;
    max-width: 350px;
}

.logo { width: 60px; border-radius: 12px; margin-bottom: 5px; }

input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 18px;
    text-align: center;
}

.operation-selector {
    display: flex;
    gap: 5px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
    margin: 10px 0;
}

.op-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-weight: bold;
    color: #718096;
    border-radius: 8px;
}

.op-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.indice-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.indice-selector label { font-size: 14px; color: #718096; font-weight: 600; }

#user-indice {
    width: 70px !important;
    padding: 5px !important;
    margin: 0 !important;
    font-size: 16px !important;
}

#btn-calcular {
    width: 65%;
    background: #667eea;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
}

#btn-limpiar {
    width: 30%;
    background: #edf2f7;
    color: #718096;
    border: none;
    padding: 15px;
    border-radius: 12px;
}

#resultado-container {
    margin-top: 20px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 15px;
}

.display-flex {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3px;
}

#display-resultado { font-size: 32px; font-weight: bold; color: #2d3748; }

.indice {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    margin-top: -5px;
}

