:root {
    /* COLORES PRINCIPALES DE TU PANEL DHRU */
    --primary: #c02633;                  /* Rojo Carmesí principal (Banner superior) */
    --primary-hover: #a01d28;            /* Rojo más oscuro al pasar el mouse */
    --primary-light: rgba(192, 38, 51, 0.08);
    --primary-border: rgba(192, 38, 51, 0.28);
    
    --accent: #818cf8;                   /* Violeta / Índigo (Botones 'Instant' y destacados) */
    --accent-hover: #4f46e5;
    --accent-light: rgba(99, 91, 255, 0.1);
    
    --success: #38a169;                  /* Verde para estado online / verificado */
    --success-light: rgba(56, 161, 105, 0.12);
    --purple: #8b5cf6;
    --purple-light: rgba(139, 92, 246, 0.1);
    
    /* FONDOS Y BORDES */
    --bg-main: #f4f6fa;                  /* Fondo suave idéntico a tu panel Dhru */
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-nav: rgba(255, 255, 255, 0.90);
    --border-color: rgba(226, 232, 240, 0.9);
    --border-hover: rgba(192, 38, 51, 0.4);
    
    /* TIPOGRAFÍA */
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --font-heading: 'Plus Jakarta Sans', 'Poppins', -apple-system, sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    --shadow-sm: 0 2px 8px -1px rgb(42 15 15 / 4%);
    --shadow-md: 0 8px 24px -4px rgb(42 15 15 / 6%);
    --shadow-lg: 0 18px 40px -10px rgba(192, 38, 51, 0.14);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   REGLAS PARA MODO OSCURO (DARK MODE)
   ========================================================================== */
[data-theme="dark"] {
    --bg-main: #0b0f19;
    --bg-card: rgba(21, 30, 47, 0.88);
    --bg-nav: rgba(15, 23, 42, 0.90);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(244, 63, 94, 0.5);

    --primary: #f43f5e;                  /* Rojo neón brillante para contraste oscuro */
    --primary-hover: #fb7185;
    --primary-light: rgba(244, 63, 94, 0.12);
    --primary-border: rgba(244, 63, 94, 0.3);

    --accent: #818cf8;                 /* Púrpura suave para modo oscuro */
    --accent-light: rgba(129, 140, 248, 0.15);

    --text-dark: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;
}

[data-theme="dark"] .ip-box,
[data-theme="dark"] .search-box,
[data-theme="dark"] .cat-chip,
[data-theme="dark"] .server-badge {
    background: rgba(30, 41, 59, 0.7);
    color: var(--text-body);
}

[data-theme="dark"] .search-box input {
    color: var(--text-dark);
}

[data-theme="dark"] .download-card:hover {
    background: rgba(30, 41, 59, 0.95);
}

[data-theme="dark"] .card-footer,
[data-theme="dark"] .footer-bottom {
    background: rgba(15, 23, 42, 0.6);
}

/* Chip Count en Modo Oscuro */
[data-theme="dark"] .cat-chip .chip-count {
    color: #f8fafc;
}

[data-theme="dark"] .cat-chip:hover .chip-count {
    background: rgba(192, 38, 51, 0.3);
    color: #ffffff;
}

/* Redes Sociales en Modo Oscuro */
[data-theme="dark"] .social-icons a,
[data-theme="dark"] .nav-social-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .social-icons a:hover,
[data-theme="dark"] .nav-social-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

[data-theme="dark"] .toast-notification {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .toast-notification i {
    color: var(--success);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-body);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Botón de tema circular */
.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #edf0f5; /* Fondo gris claro redondeado */
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-btn:hover {
    background: #e2e8f0;
    transform: scale(1.06);
}

/* Trazo y color del ícono SVG (Luna) */
.theme-moon-icon {
    width: 20px;
    height: 20px;
    stroke: #0076fa; /* Color Azul*/
    transition: stroke 0.25s ease;
}

/* Apariencia en Modo Oscuro */
[data-theme="dark"] .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-moon-icon {
    stroke: #facc15; /* Sol/Luna amarillo en modo oscuro */
}

/* --------------------------------------------------------------------------
   AMBIENT GLOW BACKGROUNDS
   -------------------------------------------------------------------------- */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(90px);
    opacity: 0.55;
    animation: floatSphere 18s ease-in-out infinite alternate;
}

.glow-1 {
    top: -150px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
}

.glow-2 {
    bottom: -150px;
    right: -100px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.11) 0%, rgba(255, 255, 255, 0) 70%);
    animation-delay: -9s;
}

.glow-3 {
    top: 40%;
    left: 45%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
    animation-delay: -5s;
}

@keyframes floatSphere {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 40px) scale(1.08); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

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

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(56, 161, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 161, 105, 0); }
}

@keyframes brandPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 0 12px 2px rgba(255, 106, 0, 0.3); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(200%) rotate(25deg); }
}

@keyframes iconBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(3px); }
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    margin-right: 6px;
    vertical-align: middle;
    animation: pulseDot 2s infinite;
}

/* --------------------------------------------------------------------------
   TOP NAVBAR (FULL WIDTH GLASSMORPHISM HEADER)
   -------------------------------------------------------------------------- */
.gsm-navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 20px;
    border: 1px solid var(--primary-border);
    animation: brandPulse 4s infinite ease-in-out;
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand-text h1 span {
    color: var(--primary);
}

.portal-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.8px;
}

.nav-center-status {
    display: flex;
    align-items: center;
}

.server-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-body);
    box-shadow: var(--shadow-sm);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ip-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.ip-box:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(192, 38, 51, 0.25);
}

.ip-box strong {
    color: var(--primary);
    font-weight: 700;
}

.copy-icon {
    font-size: 12px;
    color: var(--text-light);
}

.ip-box:hover .copy-icon {
    color: var(--primary);
}

.nav-social-buttons {
    display: flex;
    gap: 8px;
}

.nav-social-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(226, 232, 240, 0.7);
    color: var(--text-body);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.nav-social-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(192, 38, 51, 0.25);
}

/* --------------------------------------------------------------------------
   MAIN APP CONTAINER
   -------------------------------------------------------------------------- */
.gsm-main-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 32px;
}

/* --------------------------------------------------------------------------
   HERO DASHBOARD & STATS COUNTER
   -------------------------------------------------------------------------- */
.hero-dashboard {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 0.5s ease-out;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 106, 0, 0.2);
}

.hero-main-info h2 {
    font-family: var(--font-heading);
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.6px;
}

.hero-main-info h2 span {
    color: var(--primary);
}

.hero-main-info p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 14.5px;
    max-width: 620px;
}

/* SEARCH BOX */
.search-box-wrapper {
    margin-top: 20px;
    max-width: 580px;
}

.search-box {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(192, 38, 51, 0.25), var(--shadow-md);
    transform: translateY(-1px);
}

.search-icon {
    color: var(--text-light);
    font-size: 16px;
}

.search-box:focus-within .search-icon {
    color: var(--primary);
}

.search-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
}

.search-box input::placeholder {
    color: var(--text-light);
}

.clear-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
}

.clear-btn:hover {
    color: var(--accent);
}

.search-shortcut kbd {
    background: rgba(226, 232, 240, 0.6);
    color: var(--text-muted);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    font-family: monospace;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* STATS COUNTER GRID */
.stats-counter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.stat-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-icon-box.blue {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-icon-box.orange {
    background: var(--accent-light);
    color: var(--accent);
}

.stat-icon-box.green {
    background: var(--success-light);
    color: var(--success);
}

.stat-icon-box.purple {
    background: var(--purple-light);
    color: var(--purple);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info strong {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.text-success { color: var(--success) !important; }
.text-accent { color: var(--accent) !important; }

.stat-info span {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   QUICK FILTER BAR (TOP BORDER PROTECTED BY 10px PADDING AND MARGIN)
   -------------------------------------------------------------------------- */
.quick-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 10px 4px; /* <--- 10px TOP PADDING ENSURES THE OVAL RING IS NEVER CUT OFF BY OVERFLOW-X */
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
}

.filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
    flex-shrink: 0;
}

/* CHIP BUTTONS (TOP BORDER SAFEGUARDED) */
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1.5px solid var(--primary-border);
    color: var(--text-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    margin: 2px 0; /* Safety margin so top/bottom ring never touches overflow edge */
}

.cat-chip i {
    color: var(--primary);
    font-size: 13px;
}

.cat-chip .chip-count {
    color: var(--text-muted);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.cat-chip:hover {
    border-color: var(--primary) !important;
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgb(204 0 0 / 15%);
}

.cat-chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary) !important;
    box-shadow: rgba(192, 38, 51, 0.3) 0px 4px 14px;
}

.cat-chip.active i {
    color: #ffffff;
}

.cat-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* NO RESULTS CARD */
.no-results-card {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    margin: 40px 0;
    backdrop-filter: blur(10px);
}

.no-results-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
}

.no-results-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.no-results-card p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 460px;
    margin: 0 auto 20px;
}

.reset-search-btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.reset-search-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   CATEGORY SECTIONS & REIMAGINED MULTI-COLUMN GRID (APP TILES)
   -------------------------------------------------------------------------- */
.category-section {
    margin-top: 36px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out calc(var(--sec-delay, 0s));
}

.category-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cat-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1px solid rgba(255, 106, 0, 0.2);
}

.category-section-title h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.4px;
}

.cat-count-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--primary-border);
}

/* 3-4 COLUMN GRID FOR SOFTWARE CARDS */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* --------------------------------------------------------------------------
   REIMAGINED VERTICAL SOFTWARE APP CARDS
   -------------------------------------------------------------------------- */
.download-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    position: relative;
}

.download-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    background: #ffffff;
}

/* Cabecera con fondo oscuro para capturas de programas */
.card-header-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantiene el programa entero sin recortar nada */
    padding: 8px;       /* Le da un margen limpio para que no toque los bordes */
    display: block;
    transition: transform 0.4s ease;
}
.download-card:hover .card-header-img img {
    transform: scale(1.06);
}

.file-type-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Body */
.card-body {
    padding: 18px 20px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.card-title {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.card-title i {
    color: var(--primary);
    font-size: 16px;
    margin-top: 2px;
}

.card-badges-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.badge-new {
    background: var(--purple-light);
    color: var(--purple);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 800;
}

.badge-verified {
    background: var(--success-light);
    color: var(--success);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
}

.card-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 14px;
}

.card-tags {
    margin-top: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.tag-chip {
    background: rgba(226, 232, 240, 0.6);
    color: var(--text-body);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tag-chip.ready {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(56, 161, 105, 0.2);
}

/* Card Footer */
.card-footer {
    padding: 14px 20px 18px;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* --------------------------------------------------------------------------
   SIGNATURE DOWNLOAD BUTTON (PRESERVING BRAND BLUE TRANSLUCENT STYLE)
   -------------------------------------------------------------------------- */
.download-btn {
    width: 135px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    background: var(--primary);
    border: 1px solid var(--primary-border);
    color: white;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(0, 136, 204, 0.06);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: translateX(-100%) rotate(25deg);
    pointer-events: none;
}

.download-btn:hover::before {
    animation: shimmer 0.8s ease-in-out;
}

.download-btn:hover {
    background: rgb(244 63 93 / 24%);;
    border-color: var(--primary-border);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 63, 93, 0.075); 0px 4px 14px;;
}

.download-btn:hover .btn-icon {
    animation: iconBounce 0.5s ease infinite alternate;
}

.download-btn:active {
    transform: translateY(0) scale(0.98);
}

.status-ok {
    color: var(--success) !important;
    font-size: 11.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-ok i {
    font-size: 8px;
}

/* --------------------------------------------------------------------------
   FLOATING SUPPORT DOCK
   -------------------------------------------------------------------------- */
.floating-support-dock {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.dock-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: var(--transition-fast);
}

.dock-btn.telegram {
    background: #0088cc;
}

.dock-btn.whatsapp {
    background: #25d366;
}

.dock-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* TOAST NOTIFICATION */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--text-dark);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification i {
    color: var(--success);
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.gsm-footer {
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
}

.footer-container {
    max-width: 1440px;
    margin: auto;
    padding: 0 32px 30px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 35px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo i {
    font-size: 22px;
    color: var(--primary);
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    margin-bottom: 14px;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

.footer-links a i {
    font-size: 10px;
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-contact p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(226, 232, 240, 0.7);
    color: var(--text-body);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.social-icons a:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(192, 38, 51, 0.25);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 32px;
    background: rgba(255, 255, 255, 0.5);
}

.footer-bottom-content {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 12.5px;
}

.footer-tagline {
    font-weight: 600;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .hero-dashboard {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stats-counter-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .nav-container {
        padding: 12px 20px;
    }

    .nav-center-status,
    .nav-social-buttons {
        display: none;
    }

    .gsm-main-container {
        padding: 24px 16px;
    }

    .hero-main-info h2 {
        font-size: 26px;
    }

    .stats-counter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* ==========================================================================
   AJUSTE RESPONSIVO PARA PANTALLAS PEQUEÑAS (MÓVILES <= 480PX)
   ========================================================================== */
@media (max-width: 480px) {
    /* Reduce los márgenes y separaciones generales del encabezado */
    .nav-container {
        padding: 10px 12px;
        gap: 8px;
    }

    /* Ajusta el área del logo y texto para ganar espacio */
    .brand-group {
        gap: 8px;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .brand-text h1 {
        font-size: 16px;
    }

    .portal-tag {
        font-size: 8.5px;
    }

    /* Agrupa la caja de IP y el botón con menor separación */
    .nav-actions {
        gap: 8px;
    }

    .ip-label {
        display: none;
    }

    .ip-box {
        font-size: 11px;
        padding: 5px 8px;
        gap: 5px;
    }

    /* Modifica el botón a un tamaño compacto de 36px */
    .theme-toggle-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .theme-moon-icon {
        width: 18px;
        height: 18px;
    }
}