/* Listado de emergencias */
.emergencias-page .section {
    padding: 4rem 0;
}

.emgs-hero {
    margin-top: 70px;
    padding: 2.75rem 0 2rem;
    background:
        linear-gradient(180deg, rgba(225, 6, 19, 0.12) 0%, rgba(10, 10, 10, 0) 100%),
        var(--dark-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.emgs-hero-inner {
    max-width: 1100px;
}

.emgs-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;
}

.emgs-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

.emgs-hero h1 span {
    color: var(--red-light);
}

.emgs-hero-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 40rem;
    margin: 0 0 1.25rem;
    line-height: 1.65;
}

.emgs-hero-total {
    display: inline-flex;
    align-items: baseline;
    gap: 0.65rem;
    padding: 0.85rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(225, 6, 19, 0.35);
    background: rgba(225, 6, 19, 0.08);
}

.emgs-hero-total-num {
    font-size: clamp(2.25rem, 5vw, 3.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;
}

.emgs-hero-total-label {
    font-size: 0.92rem;
    color: #fff;
    font-weight: 600;
}

.emgs-stats-strip {
    margin-top: -1.5rem;
    padding-bottom: 0.5rem;
}

.emgs-stats-inner {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(15, 15, 15, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.emgs-stats-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.emgs-stats-head h2 {
    font-size: 1.1rem;
    margin: 0;
}

.emgs-stats-head span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.emgs-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.emgs-stat-pill {
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.emgs-stat-pill:hover {
    border-color: rgba(225, 6, 19, 0.35);
    background: rgba(225, 6, 19, 0.06);
    transform: translateY(-2px);
    color: inherit;
}

.emgs-stat-pill-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--red-light);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.emgs-stat-pill-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.emgs-featured-stats {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 1.5rem;
    align-items: center;
    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;
}

.emgs-featured-stats::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));
}

.emgs-featured-stats:hover {
    border-color: rgba(225, 6, 19, 0.5);
    transform: translateY(-2px);
    color: inherit;
}

.emgs-featured-stats-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffb4b4;
    margin-bottom: 0.35rem;
}

.emgs-featured-stats h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: #fff;
}

.emgs-featured-stats p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
    max-width: 28rem;
}

.emgs-featured-stats-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);
}

.emgs-featured-stats-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red-light);
}

.emgs-list-head {
    margin-bottom: 2rem;
    text-align: center;
}

.emgs-list-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.emgs-list-head p {
    color: var(--text-secondary);
    margin: 0;
}

.emergencias-page .emergencies-grid {
    margin-top: 0;
}

.emgs-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.emgs-card-link:hover,
.emgs-card-link:focus {
    color: inherit;
}

.emgs-card-link:hover .emergency-type,
.emgs-card-link:focus .emergency-type,
.emgs-card-link:hover .emergency-number,
.emgs-card-link:focus .emergency-number {
    color: var(--red-light);
}

.emgs-socio-card {
    margin-top: 2.5rem;
    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;
}

.emgs-socio-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffb4b4;
    margin-bottom: 0.45rem;
}

.emgs-socio-card h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 0.5rem;
    color: #fff;
}

.emgs-socio-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    max-width: 36rem;
}

.emgs-socio-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex-shrink: 0;
}

.emgs-socio-actions .btn {
    white-space: nowrap;
    justify-content: center;
}

.emgs-years {
    background: linear-gradient(180deg, transparent 0%, rgba(225, 6, 19, 0.03) 50%, transparent 100%);
}

.emgs-years-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.emgs-year-card {
    display: block;
    text-align: center;
    padding: 1.25rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(26, 26, 26, 0.7);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.emgs-year-card:hover {
    border-color: rgba(225, 6, 19, 0.35);
    transform: translateY(-2px);
    color: inherit;
}

.emgs-year-card.active {
    border-color: rgba(225, 6, 19, 0.55);
    background: rgba(225, 6, 19, 0.1);
}

.emgs-year-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.emgs-year-count {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.emgs-year-card.active .emgs-year-num {
    color: var(--red-light);
}

.emgs-back {
    margin-top: 2rem;
    text-align: center;
}

@media (max-width: 1100px) {
    .emgs-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .emgs-stat-pill:nth-child(5) {
        grid-column: 1 / -1;
    }

    .emgs-featured-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .emergencias-page .section {
        padding: 3rem 0;
    }

    .emgs-hero {
        padding: 2rem 0 1.5rem;
    }

    .emgs-socio-card {
        grid-template-columns: 1fr;
        padding: 1.35rem 1.25rem;
    }

    .emgs-socio-actions .btn {
        width: 100%;
    }

    .emgs-featured-stats {
        padding: 1.25rem 1.15rem;
    }

    .emgs-featured-stats-side {
        text-align: left;
    }
}
