/* Página detalle emergencia — landing desde push */
.emergencia-page .section {
    padding: 4rem 0;
}

.emg-hero {
    margin-top: 70px;
    padding: 2.5rem 0 2rem;
    background:
        linear-gradient(180deg, rgba(225, 6, 19, 0.1) 0%, rgba(10, 10, 10, 0) 100%),
        var(--dark-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.emg-hero-inner {
    max-width: 900px;
}

.emg-hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red-light);
    margin-bottom: 0.65rem;
}

.emg-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

.emg-hero h1 span {
    color: var(--red-light);
}

.emg-hero-meta {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0;
}

.emg-layout {
    max-width: 820px;
    margin: 0 auto;
}

.emg-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.98) 0%, rgba(18, 18, 18, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--red);
    border-radius: 20px;
    padding: 2rem 2.25rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.emg-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.emg-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    text-decoration: none;
}

.emg-type-badge:hover {
    color: #fff;
    border-color: rgba(225, 6, 19, 0.45);
}

.emg-type-1,
.emg-type-5 { border-color: rgba(225, 6, 19, 0.45); background: rgba(225, 6, 19, 0.12); }
.emg-type-2 { border-color: rgba(255, 170, 0, 0.45); background: rgba(255, 170, 0, 0.1); }
.emg-type-3 { border-color: rgba(59, 130, 246, 0.45); background: rgba(59, 130, 246, 0.1); }
.emg-type-4 { border-color: rgba(34, 197, 94, 0.45); background: rgba(34, 197, 94, 0.1); }

.emg-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    margin-bottom: 1.75rem;
}

.emg-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.emg-field-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.emg-block {
    margin-bottom: 1.75rem;
}

.emg-block:last-child {
    margin-bottom: 0;
}

.emg-block h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.emg-block p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0;
}

.emg-block a {
    color: var(--red-light);
}

.emg-block a:hover {
    color: var(--red);
}

.emg-socio-card {
    margin-top: 1.25rem;
    padding: 1.75rem 2rem;
    border-radius: 18px;
    border: 1px solid rgba(225, 6, 19, 0.35);
    background: linear-gradient(135deg, rgba(225, 6, 19, 0.12) 0%, rgba(18, 18, 18, 0.95) 55%);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.emg-socio-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffb4b4;
    margin-bottom: 0.45rem;
}

.emg-socio-card h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 0.5rem;
    color: #fff;
}

.emg-socio-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    max-width: 36rem;
}

.emg-socio-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex-shrink: 0;
}

.emg-socio-actions .btn {
    white-space: nowrap;
    justify-content: center;
}

.emg-footer-actions {
    margin-top: 1.25rem;
    text-align: center;
}

.emg-stats-card {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(225, 6, 19, 0.3);
    background: linear-gradient(135deg, rgba(225, 6, 19, 0.1) 0%, rgba(14, 14, 14, 0.98) 50%, rgba(10, 10, 10, 0.99) 100%);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.emg-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red-dark), var(--red-light), var(--red-dark));
}

.emg-stats-card:hover {
    border-color: rgba(225, 6, 19, 0.5);
    box-shadow: 0 16px 44px rgba(225, 6, 19, 0.12);
    transform: translateY(-2px);
    color: inherit;
}

.emg-stats-card-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffb4b4;
    margin-bottom: 0.35rem;
}

.emg-stats-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: #fff;
}

.emg-stats-card p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
    max-width: 28rem;
}

.emg-stats-card-side {
    text-align: center;
    padding: 1rem 0.85rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.07);
    min-width: 0;
}

.emg-stats-card-num {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--red-light) 0%, var(--red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.2rem;
}

.emg-stats-card-num-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.emg-stats-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red-light);
}

.emg-stats-card:hover .emg-stats-card-btn {
    color: #fff;
}

.emg-stats-card-btn svg {
    transition: transform 0.25s ease;
}

.emg-stats-card:hover .emg-stats-card-btn svg {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .emergencia-page .section {
        padding: 2.5rem 0;
    }

    .emg-hero {
        padding: 2rem 0 1.5rem;
    }

    .emg-card {
        padding: 1.5rem 1.25rem;
    }

    .emg-card-grid {
        grid-template-columns: 1fr;
    }

    .emg-socio-card {
        grid-template-columns: 1fr;
        padding: 1.35rem 1.25rem;
    }

    .emg-socio-actions .btn {
        width: 100%;
    }

    .emg-stats-card {
        grid-template-columns: 1fr;
        padding: 1.25rem 1.15rem;
        text-align: left;
    }

    .emg-stats-card-side {
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem 1rem;
        min-width: 0;
    }

    .emg-stats-card-num-label {
        margin-bottom: 0;
    }

    .emg-stats-card-btn {
        margin-left: auto;
    }
}
