

/* ===================== */
/* DESMOS */
/* ===================== */
#cientifica{

    height:320px;

    border-radius:16px;

    overflow:hidden;

    border:2px solid #ef4444;

    background:white;
}

#grafica{

    height:500px;

    border-radius:16px;

    overflow:hidden;

    border:2px solid #ef4444;
}

.dcg-calculator-api-container{

    border-radius:16px !important;
}

.dc-container{

    border:none !important;
}

/* ===================== */
/* CONTROLES */
/* ===================== */
.controls{

    display:flex;

    flex-direction:column;

    gap:15px;
}

/* ===================== */
/* BOTONES */
/* ===================== */
.selector-metodo{

    display:flex;

    gap:10px;

    flex-wrap:wrap;
}

.metodo-btn{

    padding:10px 16px;

    border:none;

    border-radius:12px;

    background:#fee2e2;

    color:#991b1b;

    cursor:pointer;

    font-weight:600;

    transition:.25s;
}

.metodo-btn:hover{

    background:#ef4444;

    color:white;

    transform:scale(1.06);
}

.metodo-btn.activo{

    background:#b91c1c;

    color:white;
}

/* ===================== */
/* INPUTS */
/* ===================== */
.inputs-metodo{

    display:flex;

    gap:12px;

    flex-wrap:wrap;

    align-items:center;
}

.inputs-metodo div{

    display:none;
}

.inputs-metodo input{

    width:90px;

    padding:9px;

    border-radius:10px;

    border:1px solid #ddd;

    background:white;

    color:#111;

    font-weight:bold;
}

/* ===================== */
/* BOTÓN EJECUTAR */
/* ===================== */
#btn-iterar{

    padding:11px 18px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    background:
    linear-gradient(
        135deg,
        #ef4444,
        #b91c1c
    );

    color:white;

    font-weight:bold;

    transition:.3s;
}

#btn-iterar:hover{

    transform:scale(1.05);

    box-shadow:
        0 5px 15px rgba(239,68,68,0.4);
}

/* ===================== */
/* gx BOX */
/* ===================== */
.gx-box{

    animation:fadeUp .5s ease;
}

/* TEXTO INFO */
.gx-info{

    color:#6b7280;

    font-size:14px;

    margin-bottom:18px;
}

/* LISTA */
#gx-list{

    display:flex;

    flex-direction:column;

    gap:15px;
}

/* ITEM */
.gx-item{

    background:#fff5f5;

    border-left:6px solid #ef4444;

    border-radius:18px;

    padding:18px;

    transition:.3s;

    position:relative;

    overflow-x:auto;

    box-shadow:
        4px 4px 10px rgba(0,0,0,0.05);
}

.gx-item:hover{

    transform:translateX(4px);
}

/* FORMULA LATEX */
.gx-formula{

    font-size:18px;

    color:#991b1b;

    margin-bottom:12px;

    overflow-x:auto;
}

/* BADGES */
.gx-badge{

    display:inline-block;

    margin-top:5px;

    padding:5px 12px;

    border-radius:999px;

    font-size:12px;

    font-weight:bold;
}

/* OK */
.gx-ok{

    background:#dcfce7;

    color:#166534;
}

/* BAD */
.gx-bad{

    background:#fee2e2;

    color:#991b1b;
}

/* MEJOR */
.gx-best{

    border:2px solid #22c55e;

    background:#f0fdf4;
}

.gx-best::after{

    content:"✓ Mejor candidata";

    position:absolute;

    top:12px;
    right:12px;

    background:#22c55e;

    color:white;

    padding:5px 12px;

    border-radius:999px;

    font-size:11px;

    font-weight:bold;
}

/* ===================== */
/* MATHJAX */
/* ===================== */
.MathJax{

    font-size:1.15em !important;
}

/* ===================== */
/* RESULTADO */
/* ===================== */
.resultado-box{

    text-align:center;

    background:#fff1f2;

    border:2px dashed #ef4444;
}

#resultado-text{

    margin-top:10px;

    font-size:24px;

    color:#b91c1c;

    font-weight:bold;
}

/* ===================== */
/* TABLA */
/* ===================== */
.table-container{

    max-height:350px;

    overflow-y:auto;

    border-radius:12px;
}

table{

    width:100%;

    border-collapse:collapse;

    background:white;
}

/* HEAD */
th{

    background:#ef4444;

    color:white;

    padding:10px;

    font-size:13px;

    position:sticky;

    top:0;
}

/* CELDAS */
td{

    padding:8px;

    text-align:center;

    border-top:1px solid #eee;

    font-size:12px;
}

/* HOVER */
tr:hover{

    background:#fee2e2;
}

/* ===================== */
/* SCROLL */
/* ===================== */
.table-container::-webkit-scrollbar{

    width:6px;
}

.table-container::-webkit-scrollbar-thumb{

    background:#ef4444;

    border-radius:10px;
}

/* gx scroll */
.gx-item::-webkit-scrollbar{

    height:6px;
}

.gx-item::-webkit-scrollbar-thumb{

    background:#ef4444;

    border-radius:999px;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */
@media(max-width:768px){

    #grafica{

        height:350px;
    }

    .selector-metodo{

        justify-content:center;
    }

    .inputs-metodo{

        justify-content:center;
    }

    .gx-formula{

        font-size:15px;
    }

    .header-pro h1{

        font-size:32px;
    }
}