/* ==========================================================================
   DPanel Web Tool Hub - Estilos Corporativos (Café / Grafito Cálido / Rojo Carmesí)
   ========================================================================== */

:root {
    /* Fondos cálidos café / grafito */
    --bg-primary: #110e0d;
    --bg-secondary: #1a1614;
    --bg-card: rgba(30, 25, 23, 0.85);
    --bg-card-hover: rgba(44, 37, 34, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.035);
    
    --border-color: rgba(255, 255, 255, 0.09);
    --border-highlight: rgba(225, 29, 72, 0.45);
    
    /* Tipografía */
    --text-main: #f9fafb;
    --text-muted: #a8a29e;
    --text-dim: #78716c;
    
    /* Colores de marca */
    --brand-red: #e11d48;
    --brand-red-dark: #be123c;
    --brand-red-glow: rgba(225, 29, 72, 0.4);
    --brand-red-subtle: rgba(225, 29, 72, 0.15);
    
    --brand-coffee: #78350f;
    --brand-coffee-warm: #92400e;
    
    /* Acentos Temáticos por Bloque */
    --accent-amber: #f59e0b;
    --accent-amber-glow: rgba(245, 158, 11, 0.35);
    
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.35);
    
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.35);
    
    --accent-purple: #a855f7;
    --accent-purple-glow: rgba(168, 85, 247, 0.35);

    --accent-rose: #f43f5e;
    --accent-rose-glow: rgba(244, 63, 94, 0.35);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px var(--brand-red-glow);
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(225, 29, 72, 0.14) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(146, 64, 14, 0.16) 0px, transparent 50%),
        radial-gradient(at 50% 30%, rgba(45, 36, 32, 0.35) 0px, transparent 65%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #443834;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: #5c4d47;
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(17, 14, 13, 0.88);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.logo-img {
    height: 38px;
    width: auto;
    max-width: 44px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    filter: drop-shadow(0 0 10px var(--brand-red-glow));
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-coffee-warm));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 16px var(--brand-red-glow);
}

.logo-text h1 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #fca5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.45rem 0.85rem 0.45rem 2.2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 12px var(--brand-red-glow);
    background: rgba(255, 255, 255, 0.08);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.85rem;
    pointer-events: none;
}

/* Mode Switcher Pill (Lila / Azul Suave) */
.mode-pill {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.mode-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
}

.icon-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    color: var(--text-main);
    border-color: var(--brand-red);
    background: var(--bg-card-hover);
}

.icon-btn.has-key {
    border-color: var(--accent-emerald);
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 12px var(--accent-emerald-glow);
}

/* Main Container */
.main-content {
    max-width: 1300px;
    width: 100%;
    margin: 1.25rem auto;
    padding: 0 1.25rem;
    flex: 1;
}

/* Quick Guide Banner */
.guide-banner {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.12), rgba(146, 64, 14, 0.16));
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.guide-steps {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.guide-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-main);
}

.step-num {
    background: var(--brand-red);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: bold;
    box-shadow: 0 0 8px var(--brand-red-glow);
}

.guide-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ==========================================================================
   Section Styling & Thematic Identification
   ========================================================================== */
.section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}

.section-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.sec-color-software { background: rgba(225, 29, 72, 0.2); }
.sec-color-drivers { background: rgba(6, 182, 212, 0.2); }
.sec-color-reparacion { background: rgba(245, 158, 11, 0.2); }
.sec-color-redes { background: rgba(16, 185, 129, 0.2); }
.sec-color-diagnostico { background: rgba(168, 85, 247, 0.2); }
.sec-color-multimedia { background: rgba(244, 63, 94, 0.2); }

.section-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-software { background: rgba(225, 29, 72, 0.15); color: #fca5a5; border: 1px solid rgba(225, 29, 72, 0.3); }
.badge-drivers { background: rgba(6, 182, 212, 0.15); color: #a5f3fc; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-reparacion { background: rgba(245, 158, 11, 0.15); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-redes { background: rgba(16, 185, 129, 0.15); color: #a7f3d0; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-diagnostico { background: rgba(168, 85, 247, 0.15); color: #e9d5ff; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-multimedia { background: rgba(244, 63, 94, 0.15); color: #fecdd3; border: 1px solid rgba(244, 63, 94, 0.3); }

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

/* Tool Card Base */
.tool-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.25s ease;
}

/* Distinct Card Top Bars & Glows by Section */
.card-reparacion::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.card-reparacion:hover { border-color: rgba(245, 158, 11, 0.4); box-shadow: 0 0 16px var(--accent-amber-glow); }
.icon-reparacion { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); }

.card-redes::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.card-redes:hover { border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 0 16px var(--accent-emerald-glow); }
.icon-redes { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); }

.card-diagnostico::before { background: linear-gradient(90deg, #a855f7, #6366f1); }
.card-diagnostico:hover { border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 0 16px var(--accent-purple-glow); }
.icon-diagnostico { background: rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.3); }

.card-multimedia::before { background: linear-gradient(90deg, #f43f5e, #e11d48); }
.card-multimedia:hover { border-color: rgba(244, 63, 94, 0.4); box-shadow: 0 0 16px var(--accent-rose-glow); }
.icon-multimedia { background: rgba(244, 63, 94, 0.15); border-color: rgba(244, 63, 94, 0.3); }

/* Hardware Driver Cards */
.card-nvidia::before { background: linear-gradient(90deg, #84cc16, #22c55e); }
.card-nvidia:hover { border-color: rgba(132, 204, 22, 0.5); box-shadow: 0 0 16px rgba(132, 204, 22, 0.3); }
.icon-nvidia { background: rgba(132, 204, 22, 0.12); border-color: rgba(132, 204, 22, 0.3); }

.card-amd::before { background: linear-gradient(90deg, #ef4444, #b91c1c); }
.card-amd:hover { border-color: rgba(239, 68, 68, 0.5); box-shadow: 0 0 16px rgba(239, 68, 68, 0.3); }
.icon-amd { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); }

.card-intel::before { background: linear-gradient(90deg, #38bdf8, #0284c7); }
.card-intel:hover { border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 0 16px rgba(56, 189, 248, 0.3); }
.icon-intel { background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.3); }

.tool-card:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
}

.tool-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.tool-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.tool-info h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

.tool-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.tool-tags {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.65rem;
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.tag.admin {
    background: rgba(225, 29, 72, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(225, 29, 72, 0.3);
}

.tag.ram {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.tag.tag-hardware {
    background: rgba(56, 189, 248, 0.15);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.tool-actions {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    gap: 0.5rem;
}

/* Botones de acción discretos en fondo gris */
.btn-copy {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 0.42rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.btn-copy.copied,
.btn-ghost.copied,
.btn-preset.copied,
.btn-primary.copied,
.copied {
    background: var(--accent-emerald) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 0 15px var(--accent-emerald-glow) !important;
}

/* Botones específicos de hardware */
.btn-hardware-nvidia { background: rgba(132, 204, 22, 0.12); border-color: rgba(132, 204, 22, 0.3); color: #d9f99d; }
.btn-hardware-nvidia:hover { background: #65a30d; color: white; box-shadow: 0 0 15px rgba(132, 204, 22, 0.4); }

.btn-hardware-amd { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); color: #fca5a5; }
.btn-hardware-amd:hover { background: #dc2626; color: white; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }

.btn-hardware-intel { background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.3); color: #bae6fd; }
.btn-hardware-intel:hover { background: #0284c7; color: white; box-shadow: 0 0 15px rgba(56, 189, 248, 0.4); }

/* App Installer Matrix */
.app-matrix-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
}

.matrix-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.matrix-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.btn-ghost {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.28rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

.btn-preset {
    background: rgba(225, 29, 72, 0.12);
    border: 1px solid rgba(225, 29, 72, 0.3);
    color: #fecdd3;
    padding: 0.28rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-preset:hover {
    background: var(--brand-red);
    color: white;
    box-shadow: 0 0 10px var(--brand-red-glow);
    border-color: transparent;
}

/* App Matrix Grid */

.app-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.app-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-highlight);
}

.app-checkbox-label input[type="checkbox"] {
    accent-color: var(--brand-red);
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.app-checkbox-label.checked {
    background: rgba(225, 29, 72, 0.15);
    border-color: var(--brand-red);
}

.app-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.app-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-category {
    font-size: 0.63rem;
    color: var(--text-dim);
    display: block;
}

.matrix-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.selected-count {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.selected-count strong {
    color: #fca5a5;
}

/* Botón Principal Discreto (Rojo Marronáceo Cálido) */
.btn-primary {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.35), rgba(146, 64, 14, 0.45));
    border: 1px solid rgba(225, 29, 72, 0.5);
    color: #fecdd3;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-coffee-warm));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 0 20px var(--brand-red-glow);
    border-color: transparent;
}

/* ==========================================================================
   MediaElch Compact Module (Inside .tool-card)
   ========================================================================== */
.media-compact-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.media-mini-dropzone {
    border: 1px dashed rgba(244, 63, 94, 0.4);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
    background: rgba(244, 63, 94, 0.04);
    font-size: 0.75rem;
    color: #fca5a5;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-mini-dropzone:hover {
    background: rgba(244, 63, 94, 0.12);
    border-color: var(--accent-rose);
}

.media-input-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.media-input-row input {
    flex: 1;
    padding: 0.35rem 0.6rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    outline: none;
    transition: border 0.2s;
}

.media-input-row input:focus {
    border-color: var(--accent-rose);
}

/* Footer */
.app-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.15rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-top: auto;
}

/* Modal Styling */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    padding: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-main);
}

.auth-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-icon {
    font-size: 1.5rem;
}

.auth-title-group h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.auth-title-group p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-guide-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
}

.modal-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.45rem 0.75rem;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.auth-input-wrapper:focus-within {
    border-color: var(--brand-red);
    box-shadow: 0 0 15px var(--brand-red-glow);
}

.auth-input-wrapper.shake {
    animation: shakeAnim 0.4s ease-in-out;
    border-color: var(--brand-red);
}

@keyframes shakeAnim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.auth-input-icon {
    font-size: 1.1rem;
    user-select: none;
    opacity: 0.75;
    flex-shrink: 0;
}

.auth-input-wrapper input {
    flex: 1;
    min-width: 180px;
    background: transparent;
    border: none;
    outline: none;
    color: #fca5a5;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    padding: 0.25rem 0.25rem;
}

.auth-input-wrapper input::placeholder {
    color: #78716c;
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

.icon-btn-text {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.3rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.icon-btn-text:hover {
    opacity: 1;
}

.btn-unlock {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-coffee-warm));
    border: none;
    color: white;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-unlock:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px var(--brand-red-glow);
}

.btn-lock {
    background: rgba(225, 29, 72, 0.15);
    border: 1px solid rgba(225, 29, 72, 0.3);
    color: #fca5a5;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-lock:hover {
    background: var(--brand-red);
    color: white;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: rgba(26, 22, 20, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--accent-emerald);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-emerald-glow);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    color: white;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
}

.toast.error {
    border-color: var(--brand-red);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px var(--brand-red-glow);
}

.toast.warning {
    border-color: var(--accent-amber);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-amber-glow);
}

.toast.fade-out {
    animation: toastFade 0.3s forwards;
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastFade {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        display: flex;
        flex-direction: column;
    }
    #sec-apps {
        order: 98; /* Pasa el instalador de software al final en mÃ³viles */
    }
    #sec-drivers {
        order: 99; /* Pasa el bloque de drivers justo debajo de las aplicaciones */
    }
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box {
        width: 100%;
    }
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .guide-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .domain-prefix {
        display: none;
    }
}


/* ==========================================================================
   Grupos Horizontales Compactos (Sin Cabecera) con Apps en Cuadrícula A-Z
   ========================================================================== */
.app-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.category-block {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.65rem;
    transition: all 0.2s ease;
}

.category-block:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.025);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 0.45rem;
}

@media (max-width: 580px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.35rem;
    }
    .app-checkbox-label {
        padding: 0.35rem 0.5rem;
    }
}