/* Hub “¿Qué necesitás hoy?” — portada v2 */
.td-home-hub {
    width: 100%;
}

.td-home-hub__card {
    border-radius: 22px;
    padding: 16px 14px 14px;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 55%),
        radial-gradient(90% 60% at 0% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
        var(--td-surface, #f8fafc);
    border: 1px solid var(--td-line, #cbd5e1);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.65) inset,
        0 14px 36px -18px rgba(15, 23, 42, 0.18);
}

.td-home-hub__head {
    margin-bottom: 14px;
}

.td-home-hub__kicker {
    margin: 0 0 6px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--td-muted, #64748b);
}

.td-home-hub__title {
    margin: 0;
    font-size: clamp(1.35rem, 1vw + 1.15rem, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--td-text, #0f172a);
}

.td-home-hub__lead {
    margin: 6px 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--td-muted, #64748b);
}

.td-home-hub__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.td-home-hub__tile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 10px 10px 11px;
    border-radius: 16px;
    text-decoration: none !important;
    color: var(--td-text, #0f172a);
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.td-home-hub__tile:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 2px;
}

.td-home-hub__tile:active {
    transform: scale(0.98);
}

.td-home-hub__tile--wide {
    grid-column: 1 / -1;
    min-height: 52px;
    border-width: 1.5px;
}

.td-home-hub__tile-ico {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1.05rem;
    line-height: 1;
}

.td-home-hub__tile-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.td-home-hub__tile-label {
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.td-home-hub__tile-sub {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--td-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-home-hub__tile-chev {
    flex-shrink: 0;
    font-size: 0.85rem;
    opacity: 0.45;
    margin-right: 2px;
}

.td-home-hub__tile--salud .td-home-hub__tile-ico { background: #d1fae5; color: #047857; }
.td-home-hub__tile--movilidad .td-home-hub__tile-ico { background: #ffedd5; color: #c2410c; }
.td-home-hub__tile--clima .td-home-hub__tile-ico { background: #e0f2fe; color: #0369a1; }
.td-home-hub__tile--urgente .td-home-hub__tile-ico { background: #fee2e2; color: #b91c1c; }
.td-home-hub__tile--urgente {
    border-color: #fca5a5;
    background: linear-gradient(145deg, #fff5f5, #fef2f2);
}
.td-home-hub__tile--urgente .td-home-hub__tile-label { color: #991b1b; }
.td-home-hub__tile--comercios .td-home-hub__tile-ico { background: #fce7f3; color: #be185d; }
.td-home-hub__tile--noticias .td-home-hub__tile-ico { background: #fef3c7; color: #b45309; }
.td-home-hub__tile--ofertas .td-home-hub__tile-ico { background: #ede9fe; color: #6d28d9; }
.td-home-hub__tile--servicios .td-home-hub__tile-ico { background: #dbeafe; color: #1d4ed8; }

@media (hover: hover) and (pointer: fine) {
    .td-home-hub__tile:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px -8px rgba(15, 23, 42, 0.18);
    }

    .td-home-hub__tile--urgente:hover {
        box-shadow: 0 6px 18px -6px rgba(220, 38, 38, 0.25);
    }
}

html[data-theme="dark"] .td-home-hub__card {
    background: linear-gradient(145deg, #1a2438 0%, #141c2e 100%);
    border-color: #334155;
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .td-home-hub__title {
    color: var(--td-text, #eef2f7);
}

html[data-theme="dark"] .td-home-hub__tile {
    background: #141c2e;
    border-color: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .td-home-hub__tile--urgente {
    background: linear-gradient(145deg, #2a1518, #1a1218);
    border-color: #7f1d1d;
}

html[data-theme="dark"] .td-home-hub__tile--urgente .td-home-hub__tile-label {
    color: #fecaca;
}

@media (min-width: 640px) {
    .td-home-hub__card {
        padding: 18px 16px 16px;
    }

    .td-home-hub__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .td-home-hub__tile--wide {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .td-home-hub__tile:active,
    .td-home-hub__tile:hover {
        transform: none;
    }
}
