/* =========================================================
   BITS · SIMULADOR RAID & CUSTOM SWEETALERT2
   ========================================================= */

/* --- SIMULADOR RAID --- */
.raid-simulador {
    display: grid;
    gap: 2rem;
    background: var(--bg);
    border: 1px solid var(--line-fuerte);
    border-radius: var(--r);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.raid-simulador__controles {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.raid-btn {
    flex: 1 1 180px;
    padding: .85rem 1rem;
    background: var(--elev-1);
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .85rem;
    border-radius: var(--r-sm);
    cursor: pointer;
    text-align: left;
    transition: all var(--ease);
}

.raid-btn small { 
    display: block; 
    font-size: .7rem; 
    color: var(--dim); 
    margin-top: .2rem; 
}

.raid-btn:hover { 
    border-color: var(--accent); 
    color: var(--text); 
}

.raid-btn.active {
    background: var(--elev-2);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px -5px var(--accent);
}

.raid-simulador__info {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.5rem;
}

.raid-info__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: .8rem;
}

.raid-info__header h3 { 
    font-size: 1.3rem; 
    color: var(--text); 
}

.raid-badge {
    font-family: var(--font-mono);
    font-size: .75rem;
    padding: .3rem .7rem;
    border-radius: 2px;
    background: hsl(var(--h) 30% 20%);
    color: var(--accent);
    border: 1px solid var(--line-fuerte);
}

.raid-simulador__info p { 
    color: var(--muted); 
    font-size: .98rem; 
    line-height: 1.6; 
}

.raid-info__detalles {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.2rem;
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--dim);
}

.raid-info__detalles i { 
    font-style: normal; 
    color: var(--text); 
}

.raid-simulador__visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.raid-discos {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    width: 100%;
}

.disco {
    width: 110px;
    height: 150px;
    background: var(--elev-1);
    border: 2px solid var(--line-fuerte);
    border-radius: var(--r-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: .8rem .6rem;
    position: relative;
    overflow: hidden;
    transition: all 300ms ease;
}

.disco__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: .68rem;
    color: var(--dim);
}

.disco__led {
    width: 8px; 
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.disco__bloques {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: auto;
}

.disco-bloque {
    height: 16px;
    background: var(--elev-2);
    border: 1px dashed var(--line);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: .6rem;
    display: grid;
    place-items: center;
    color: var(--text);
    opacity: 0;
    transform: translateY(10px);
    transition: all 400ms ease;
}

.disco-bloque.escribiendo {
    opacity: 1;
    transform: translateY(0);
    border-style: solid;
}

.disco-bloque.data { 
    background: hsl(var(--h) 80% 45%); 
    border-color: var(--accent); 
}

.disco-bloque.paridad { 
    background: #d97706; 
    border-color: #f59e0b; 
    color: #fff; 
}

.disco.fallado {
    border-color: #e5484d;
    background: rgba(229, 72, 77, 0.08);
}

.disco.fallado .disco__led {
    background: #e5484d;
    box-shadow: 0 0 10px #e5484d;
}

.disco.fallado::after {
    content: "¡FALLO!";
    position: absolute;
    inset: 0;
    background: rgba(20, 19, 27, 0.85);
    color: #e5484d;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: .85rem;
    display: grid;
    place-items: center;
}

.raid-simulador__acciones {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- SWEETALERT2 MINIMALISTA (BITS DARK THEME) --- */
.bits-swal-popup {
    background: #14131b !important;
    border: 1px solid var(--accent, #007acc) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    padding: 1rem 1.2rem !important;
}

.bits-swal-popup.swal2-toast {
    align-items: center !important;
}

.bits-swal-title {
    color: #ffffff !important;
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bits-swal-error-popup {
    border-color: #e5484d !important;
}