/* ==========================================
   RESET Y VARIABLES BASE
========================================== */
.mz-gallery-wrapper {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: #070B14;
    color: #94A3B8;
    padding: 40px;
    border-radius: 12px;
    box-sizing: border-box;
    width: 100%;
}
.mz-gallery-wrapper * { box-sizing: border-box; margin: 0; padding: 0; }

/* Tipografías y Etiquetas */
.mz-tag { color: #00E5FF; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.mz-tag-purple { color: #B388FF; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.mz-gallery-header h2 { color: #FFFFFF; font-size: 28px; margin-top: 5px; font-weight: 700; }

/* ==========================================
   VISTA 1: GALERÍA
========================================== */
.mz-gallery-header { display: flex; justify-content: space-between; margin-bottom: 30px; }
.mz-gallery-container { display: grid; grid-template-columns: 220px 1fr 380px; gap: 30px; }

/* Menú Lateral */
.mz-sidebar { background-color: #0B1120; border: 1px solid #1E293B; border-radius: 12px; padding: 20px 0; display: flex; flex-direction: column; justify-content: space-between; }
.mz-sidebar-title { color: #475569; font-size: 11px; padding: 0 20px 15px; letter-spacing: 1px; }
.mz-nav-list { list-style: none; }
.mz-nav-item { padding: 12px 20px; cursor: pointer; border-left: 3px solid transparent; transition: all 0.3s ease; display: flex; flex-direction: column; }
.mz-nav-num { font-size: 11px; color: #64748B; margin-bottom: 4px; }
.mz-nav-name { color: #CBD5E1; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: space-between; }
.mz-dot { display: none; width: 6px; height: 6px; background-color: #FF6B00; border-radius: 50%; box-shadow: 0 0 8px #FF6B00; }
.mz-nav-item:hover { background-color: rgba(255, 255, 255, 0.03); }
.mz-nav-item.active { border-left-color: #FF6B00; background-color: rgba(255, 107, 0, 0.05); }
.mz-nav-item.active .mz-nav-name { color: #FFFFFF; }
.mz-nav-item.active .mz-dot { display: block; }
.mz-sidebar-footer { padding: 20px 20px 0; font-size: 10px; color: #475569; display: flex; flex-direction: column; }

/* Reproductor Central */
.mz-main-player { background-color: #0B1120; border: 1px solid #1E293B; border-radius: 12px; padding: 25px; }
.mz-video-container { position: relative; width: 100%; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; background: #000; margin-bottom: 25px; border: 1px solid #1E293B;}
.mz-video-container video { width: 100%; height: 100%; object-fit: cover; }
.mz-video-overlay { position: absolute; top: 15px; left: 15px; }
.mz-video-tag { background: rgba(0,0,0,0.7); color: #fff; padding: 4px 10px; font-size: 10px; border-radius: 4px; letter-spacing: 1px; font-weight: 600;}
.mz-player-info h3 { color: #FFFFFF; font-size: 22px; margin-bottom: 10px; }
#mz-info-subtitle { color: #94A3B8; font-size: 14px; font-weight: normal; margin-left: 10px; }
.mz-player-info p { font-size: 14px; line-height: 1.6; margin-bottom: 25px; color: #94A3B8;}
.mz-player-actions { display: flex; gap: 15px; }
.mz-btn-primary { background-color: #FF6B00; color: #fff; border: none; padding: 12px 24px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14px; transition: 0.2s; display: flex; align-items: center;}
.mz-btn-primary:hover { background-color: #E65A00; box-shadow: 0 0 15px rgba(255,107,0,0.3); }
.mz-btn-secondary { background-color: transparent; color: #fff; border: 1px solid #334155; padding: 12px 24px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.2s; display: flex; align-items: center;}
.mz-btn-secondary:hover { background-color: #1E293B; }

/* Tarjetas Derecha */
.mz-downloads-intro { font-size: 13px; line-height: 1.5; margin-bottom: 20px; }
.mz-downloads-list { display: flex; flex-direction: column; gap: 12px; }
.mz-download-card { background-color: #0B1120; border: 1px solid #1E293B; border-radius: 10px; padding: 15px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: all 0.3s; }
.mz-download-card:hover { border-color: #334155; }
.mz-download-card.active { border-color: #FF6B00; box-shadow: 0 0 20px rgba(255,107,0,0.08); background-color: rgba(255,107,0,0.02);}
.mz-card-icon { width: 40px; height: 40px; background: #1E293B; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #00E5FF;}
.mz-download-card.active .mz-card-icon { color: #FF6B00; }
.mz-card-info { flex-grow: 1; }
.mz-card-meta { font-size: 10px; color: #64748B; letter-spacing: 0.5px; font-weight: bold;}
.mz-card-title { color: #fff; font-size: 14px; margin: 3px 0; }
.mz-card-filename { font-size: 11px; color: #475569; font-family: monospace; }
.mz-btn-zip { background: #fff; color: #0F172A; text-decoration: none; padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: bold; transition: 0.2s;}
.mz-btn-zip:hover { background: #e2e8f0; }

/* ==========================================
   VISTA 2: DETALLES E INSTRUCCIONES
========================================== */
#mz-view-details { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.mz-details-topbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid #1E293B; margin-bottom: 20px; }
.mz-btn-back { background: transparent; border: 1px solid #334155; color: #CBD5E1; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; transition: 0.2s;}
.mz-btn-back:hover { background: #1E293B; color: #fff;}
.mz-tag-prototype { background: #1E293B; color: #94A3B8; padding: 6px 12px; border-radius: 4px; font-size: 11px; font-weight: 600; }

.mz-details-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; background: #0B1120; padding: 25px; border-radius: 12px; border: 1px solid #1E293B; }
.mz-dh-left h2 { color: #fff; font-size: 24px; margin-top: 8px; }
.mz-dh-right { display: flex; align-items: center; gap: 20px; }
.mz-dh-select-group { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #94A3B8;}
#mz-resource-select { background: #070B14; color: #fff; border: 1px solid #334155; padding: 10px 15px; border-radius: 6px; outline: none; font-size: 13px; min-width: 200px; cursor: pointer;}
.mz-btn-green { background: #10B981; color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 6px; font-weight: 600; font-size: 14px; transition: 0.2s; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);}
.mz-btn-green:hover { background: #059669; box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);}

.mz-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* Instrucciones (Izquierda) */
.mz-details-left { background: #0B1120; padding: 30px; border-radius: 12px; border: 1px solid #1E293B; }
.mz-section-title { color: #fff; font-size: 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

.mz-instructions-content { font-size: 14px; line-height: 1.7; color: #CBD5E1; margin-bottom: 40px; }
.mz-instructions-content ol { padding-left: 0; list-style-type: none; counter-reset: mz-counter; }
.mz-instructions-content li { position: relative; padding-left: 45px; margin-bottom: 20px; }
.mz-instructions-content li::before { 
    counter-increment: mz-counter; content: counter(mz-counter); 
    position: absolute; left: 0; top: 0; width: 28px; height: 28px; 
    background: rgba(16, 185, 129, 0.1); border: 1px solid #10B981; color: #10B981; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-weight: bold; font-size: 12px; 
}

/* Caja de descarga inferior */
.mz-download-box { background: #070B14; border: 1px dashed #334155; border-radius: 8px; padding: 20px; }
.mz-download-box h4 { font-size: 13px; color: #fff; margin-bottom: 15px; }
.mz-download-inner { display: flex; justify-content: space-between; align-items: center; background: #0B1120; padding: 15px; border-radius: 6px; border: 1px solid #1E293B;}
.mz-file-info { display: flex; flex-direction: column; }
.mz-filename { color: #fff; font-family: monospace; font-size: 13px; font-weight: bold; margin-bottom: 4px; }
.mz-filemeta { color: #64748B; font-size: 11px; }
.mz-btn-outline { background: transparent; border: 1px solid #334155; color: #fff; text-decoration: none; padding: 10px 15px; border-radius: 6px; font-size: 12px; font-weight: bold; transition: 0.2s;}
.mz-btn-outline:hover { background: #1E293B; border-color: #475569;}

/* Video y Código (Derecha) */
.mz-details-right { background: #0B1120; padding: 30px; border-radius: 12px; border: 1px solid #1E293B; }
.mz-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mz-step-counter { font-size: 12px; color: #64748B; font-weight: 600; }
.small-video { aspect-ratio: 16/9; margin-bottom: 30px; }

.mt-4 { margin-top: 30px; }
.mz-code-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.mz-btn-copy { background: transparent; color: #94A3B8; border: none; font-size: 12px; cursor: pointer; transition: 0.2s; }
.mz-btn-copy:hover { color: #fff; }

.mz-code-block { background: #070B14; border: 1px solid #1E293B; border-radius: 8px; padding: 20px; overflow-x: auto; }
.mz-code-block pre { margin: 0; }
.mz-code-block code { font-family: 'Consolas', 'Courier New', monospace; font-size: 13px; color: #3de092; line-height: 1.5; }