/* C9 — hub de apps */
:root {
    --hub-bg: #ecf3f0;
    --hub-text: #13241f;
    --hub-muted: #5a6e67;
    --hub-kids: #0f766e;
    --hub-kids-soft: #d8efe9;
    --hub-vol: #0369a1;
    --hub-vol-soft: #e0f2fe;
    --hub-pais: #c2410c;
    --hub-pais-soft: #ffedd5;
    --hub-surface: rgba(255, 255, 255, 0.78);
    --hub-border: rgba(19, 36, 31, 0.1);
    --font-display: "Fraunces", "Georgia", serif;
    --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body.hub-page {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--hub-text);
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(ellipse 70% 55% at 12% -5%, rgba(15, 118, 110, 0.18), transparent 55%),
        radial-gradient(ellipse 55% 45% at 95% 5%, rgba(3, 105, 161, 0.14), transparent 50%),
        radial-gradient(ellipse 50% 40% at 70% 100%, rgba(194, 65, 12, 0.1), transparent 55%),
        linear-gradient(165deg, #e8f2ee 0%, var(--hub-bg) 45%, #e6eef5 100%);
    background-attachment: fixed;
}

.hub-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem 3rem;
}

.hub-hero-inner {
    width: min(520px, 100%);
    animation: hub-in 0.55s var(--ease) both;
}

@keyframes hub-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.hub-brand {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 8vw, 3.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 0.85rem;
    background: linear-gradient(120deg, #0f766e 0%, #0369a1 55%, #c2410c 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hub-headline {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    font-weight: 550;
    letter-spacing: -0.02em;
    margin-bottom: 0.45rem;
}

.hub-lead {
    color: var(--hub-muted);
    font-size: 1.02rem;
    line-height: 1.5;
    margin-bottom: 1.75rem;
    max-width: 28rem;
}

.hub-apps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hub-app {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: inherit;
    background: var(--hub-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--hub-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(19, 36, 31, 0.06);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
    animation: hub-rise 0.5s var(--ease) both;
}

.hub-app:nth-child(2) { animation-delay: 0.06s; }
.hub-app:nth-child(3) { animation-delay: 0.12s; }

@keyframes hub-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hub-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(19, 36, 31, 0.1);
}

.hub-app:active {
    transform: scale(0.99);
}

.hub-app-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
}

.hub-app-kids .hub-app-mark {
    background: linear-gradient(145deg, #14978c, var(--hub-kids));
}
.hub-app-vol .hub-app-mark {
    background: linear-gradient(145deg, #0ea5e9, var(--hub-vol));
}
.hub-app-pais .hub-app-mark {
    background: linear-gradient(145deg, #ea580c, var(--hub-pais));
}

.hub-app-kids:hover { border-color: rgba(15, 118, 110, 0.35); background: linear-gradient(180deg, #fff, var(--hub-kids-soft)); }
.hub-app-vol:hover { border-color: rgba(3, 105, 161, 0.35); background: linear-gradient(180deg, #fff, var(--hub-vol-soft)); }
.hub-app-pais:hover { border-color: rgba(194, 65, 12, 0.35); background: linear-gradient(180deg, #fff, var(--hub-pais-soft)); }

.hub-app-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.hub-app-body strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.hub-app-body span {
    color: var(--hub-muted);
    font-size: 0.9rem;
}

.hub-session {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--hub-muted);
}

@media (prefers-reduced-motion: reduce) {
    .hub-hero-inner,
    .hub-app {
        animation: none !important;
    }
}
