/* Necrológicas (página completa) */

.nec-sc-page {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.nec-sc-ambient {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(110% 50% at 50% -10%, rgba(148, 163, 184, 0.12), transparent 50%);
}

.nec-sc-page > *:not(.nec-sc-ambient) {
    position: relative;
    z-index: 1;
}

.nec-sc-hero {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 6px 0 20px;
    padding: 4px 2px 0;
}

.nec-sc-hero__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(145deg, #94a3b8, #64748b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(71, 85, 105, 0.28);
}

.nec-sc-hero__titles {
    min-width: 0;
}

.nec-sc-hero__kicker {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.nec-sc-hero__title {
    margin: 6px 0 0;
    font-size: clamp(18px, 4.8vw, 22px);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.nec-sc-hero__lead {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.45;
    max-width: 40ch;
}

.nec-sc-card {
    position: relative;
    background: linear-gradient(165deg, #ffffff 0%, #fafbfc 55%, #f8fafc 100%);
    border-radius: 20px;
    padding: 18px 18px 16px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 28px -10px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    scroll-margin-top: 76px;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Ancla #necro-ID: resalte sobrio al llegar desde la home o un enlace directo */
.nec-sc-card:target,
.nec-sc-card.nec-sc-card--targeted {
    border-color: #94a3b8;
    box-shadow:
        0 0 0 2px rgba(100, 116, 139, 0.35),
        0 14px 36px -12px rgba(15, 23, 42, 0.14);
}

.nec-sc-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
}

.nec-sc-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding-left: 8px;
}

.nec-sc-card__name {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-transform: none;
}

.nec-sc-card__age {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #64748b;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.nec-sc-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 8px;
}

.nec-sc-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    line-height: 1.45;
}

.nec-sc-row i {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 17px;
    margin-top: 2px;
}

.nec-sc-row b,
.nec-sc-row strong {
    color: #0f172a;
    font-weight: 800;
}

.nec-sc-time {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: #334155;
}

.nec-sc-participan {
    margin: 14px 0 0 8px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    font-size: 13px;
    font-style: italic;
    font-weight: 600;
    color: #64748b;
    line-height: 1.5;
}

.nec-sc-card__foot {
    margin-top: 10px;
    padding: 6px 0 0 8px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
}

.nec-sc-wa {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.nec-sc-wa--subtle {
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #94a3b8;
    background: transparent;
    border: none;
    box-shadow: none;
}

.nec-sc-wa--subtle i {
    font-size: 13px;
    flex-shrink: 0;
    color: #86d4a8;
    opacity: 0.95;
}

.nec-sc-wa--subtle span {
    color: #94a3b8;
}

.nec-sc-wa--subtle:active {
    opacity: 0.75;
    background: #f8fafc;
}

.nec-sc-empty {
    text-align: center;
    padding: 48px 20px;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    background: rgba(255, 255, 255, 0.85);
    color: #64748b;
}

.nec-sc-empty i {
    font-size: 44px;
    opacity: 0.4;
    color: #94a3b8;
}

.nec-sc-empty__sub {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

.nec-sc-empty p {
    margin: 14px 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.nec-sc-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    max-width: 280px;
    margin: 16px auto 0;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: #475569;
    font-weight: 800;
    font-size: 13px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.nec-sc-back i {
    font-size: 20px;
    margin-left: -4px;
}

.nec-sc-back:active {
    background: #f8fafc;
}
