/* ==========================================================================
   dashboard-hub.css
   Estilos dedicados para el Dashboard / Hub de Accesos Rápidos en Inicio
   Soporte híbrido: Grid en Escritorio / Carrusel Swiper en Móviles
   ========================================================================== */

.hub-dashboard-section {
    width: 94%;
    max-width: 1400px;
    margin: 30px auto 20px auto;
    padding: 0 5px;
    box-sizing: border-box;
}

.hub-dashboard-header {
    margin-bottom: 18px;
    text-align: left;
}

.hub-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #d4af37;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.hub-header-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.hub-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hub-header-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0;
    max-width: 700px;
    line-height: 1.4;
}

.hub-swipe-hint {
    display: none;
}

/* ==========================================================================
   Contenedor Swiper & Grid Base
   ========================================================================== */
.hub-dashboard-swiper {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* Grid de Tarjetas del Dashboard (Escritorio por defecto) */
.hub-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    box-sizing: border-box;
}

/* Tarjeta Base */
.hub-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.hub-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55), 0 0 25px rgba(212, 175, 55, 0.15);
}

.hub-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.hub-card-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.hub-card:hover .hub-card-icon-wrap {
    transform: scale(1.08);
}

/* Variaciones de Iconos y Estados */
.icon-gold {
    background: rgba(212, 175, 55, 0.18);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.pill-gold {
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.icon-amber {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.pill-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.icon-emerald {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.pill-emerald {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.icon-purple {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.pill-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.hub-status-pill {
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Contenido de la Tarjeta */
.hub-card-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.hub-card-info p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0 0 18px 0;
    min-height: 48px;
}

.hub-card-info p strong {
    color: #f1f5f9;
}

/* Grupo de Botones de Acción */
.hub-card-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-action-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    border: none;
    transition: all 0.22s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Estilos de Botones */
.btn-gold-solid {
    background: linear-gradient(135deg, #d4af37, #f59e0b);
    color: #0b111e;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-gold-solid:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45);
}

.btn-dark-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-dark-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-amber-solid {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(212, 175, 55, 0.3));
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-amber-solid:hover {
    background: rgba(245, 158, 11, 0.35);
    color: #fff;
    border-color: rgba(245, 158, 11, 0.6);
    transform: translateY(-1px);
}

.btn-emerald-solid {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.3));
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.btn-emerald-solid:hover {
    background: rgba(34, 197, 94, 0.35);
    color: #fff;
    border-color: rgba(34, 197, 94, 0.6);
    transform: translateY(-1px);
}

.btn-purple-solid {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.3));
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.btn-purple-solid:hover {
    background: rgba(168, 85, 247, 0.35);
    color: #fff;
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-1px);
}

/* ==========================================================================
   Comportamiento en Pantallas Grandes / PC (> 768px)
   ========================================================================== */
@media (min-width: 769px) {
    .hub-dashboard-swiper {
        overflow: visible !important;
        width: 100% !important;
    }

    .hub-dashboard-grid,
    .hub-dashboard-grid.swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 18px !important;
        transform: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hub-card,
    .hub-card.swiper-slide {
        width: auto !important;
        height: auto !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .hub-swiper-pagination {
        display: none !important;
    }

    .hub-swipe-hint {
        display: none !important;
    }
}

@media (min-width: 769px) and (max-width: 1150px) {
    .hub-dashboard-grid,
    .hub-dashboard-grid.swiper-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .hub-card-info p {
        min-height: auto;
    }
}

/* ==========================================================================
   Comportamiento en Móviles / Celulares (<= 768px): Ocultar Sección
   (En pantallas móviles la sección se oculta para no recargar el scroll;
    se gestiona alternativamente con Banners Publicitarios en el inicio)
   ========================================================================== */
@media (max-width: 768px) {
    .hub-dashboard-section {
        display: none !important;
    }
}
