/* ============================================================
   styles.css — Lab Interactivo: Arreglos de Estructuras (TDA)
   ============================================================ */

/* --- Scrollbars personalizados --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- Bloque de código resaltado --- */
.code-highlight {
    background-color: #1e293b;
    color: #f8fafc;
    line-height: 1.6;
    tab-size: 4;
}
.code-highlight code {
    white-space: pre;
}

/* --- Estado activo del paso en el sidebar --- */
.step-active {
    border-left: 4px solid #4a99cb;
    background-color: #f0f9ff;
}

/* --- Consola simulada --- */
.console-window {
    background-color: #0b1220;
    color: #7ef0a8;
    font-family: 'Fira Code', monospace;
    font-size: 11.5px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 90px;
}

/* --- Animaciones --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeInUp .32s ease-out both;
}

@keyframes pulseSoft {
    0%, 100% { opacity: 1; }
    50%      { opacity: .55; }
}
.pulse-soft {
    animation: pulseSoft 1.6s ease-in-out infinite;
}

/* --- Tarjetas de atributos / slots de memoria --- */
.mem-slot {
    transition: transform .18s ease, box-shadow .18s ease;
}
.mem-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -6px rgba(32, 80, 108, .35);
}

/* --- Inputs del simulador --- */
.sim-input {
    width: 100%;
    padding: .5rem .65rem;
    font-size: .72rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: .5rem;
    color: #1e293b;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.sim-input:focus {
    border-color: #4a99cb;
    box-shadow: 0 0 0 2px rgba(74, 153, 203, .25);
}

/* --- Tabla de ventajas --- */
.advantage-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* --- Impresión --- */
@media print {
    aside, header, footer, #reflectionSection, #btnPrev, #btnNext { display: none !important; }
    main { overflow: visible !important; }
}