/* ===== Reset y Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ===== Contenedor principal ===== */
.hub-container {
    max-width: 900px;
    width: 100%;
}

/* ===== Header ===== */
.hub-header {
    background: linear-gradient(135deg, #D2691E 30%, #6c757d 70%);
    border-radius: 20px 20px 0 0;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}

.hub-header .logo-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.2rem 2rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hub-header .logo-box img {
    max-width: 180px;
    max-height: 70px;
    object-fit: contain;
}

.hub-header h1 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.hub-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 400;
}

/* ===== Grid de tarjetas ===== */
.hub-grid {
    background: #ffffff;
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* ===== Tarjeta de sistema ===== */
.hub-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 2rem 1.5rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.hub-card:hover {
    transform: translateY(-4px);
    border-color: #D2691E;
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.15);
}

.card-icon {
    background: linear-gradient(135deg, #D2691E, #e8913a);
    color: #ffffff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
}

.hub-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.hub-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #D2691E;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s;
}

.hub-card:hover .card-action {
    gap: 0.7rem;
}

/* ===== Footer ===== */
.hub-footer {
    background: #f9f9f9;
    border-radius: 0 0 20px 20px;
    padding: 1.2rem 2rem;
    text-align: center;
    border-top: 1px solid #e8e8e8;
}

.hub-footer p {
    color: #999;
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .hub-header {
        padding: 2rem 1.2rem 1.5rem;
        border-radius: 16px 16px 0 0;
    }

    .hub-header h1 {
        font-size: 1.4rem;
    }

    .hub-grid {
        padding: 1.5rem 1.2rem;
        grid-template-columns: 1fr;
    }

    .hub-footer {
        border-radius: 0 0 16px 16px;
    }
}
