/* Galería de casos de accidentes: carrusel a pantalla completa */
.acc-gal {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    overflow: hidden;
    background: #0c0810;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.acc-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-image: var(--img), linear-gradient(135deg, var(--g1), var(--g2));
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1.08);
    transition: opacity 1.15s cubic-bezier(.22, 1, .36, 1), transform 1.6s cubic-bezier(.16, 1, .3, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.acc-layer.on {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.acc-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 6, 16, .9) 0%, rgba(8, 6, 16, .6) 45%, rgba(8, 6, 16, .3) 100%);
}

.acc-gal::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(8, 6, 16, .6), transparent 30%);
}

.acc-top {
    position: absolute;
    z-index: 4;
    top: 22px;
    left: 6vw;
    font: 500 .8em 'Poppins', sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .8;
}

.acc-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    padding-left: 6vw;
}

.acc-txt {
    width: min(500px, 38vw);
}

.acc-txt > * {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity .45s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}

.acc-txt.out > * {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
}

.acc-txt > :nth-child(2) { transition-delay: .05s; }
.acc-txt > :nth-child(3) { transition-delay: .10s; }
.acc-txt > :nth-child(4) { transition-delay: .15s; }

.acc-k {
    display: inline-block;
    background: var(--amarillo, #F4C20D);
    color: #1b1b1b;
    border-radius: 999px;
    padding: 3px 14px;
    font: 600 .8em 'Rubik', 'Poppins', sans-serif;
    margin-bottom: 12px;
}

.acc-txt h3 {
    margin: 0 0 14px;
    font: 400 clamp(3rem, 7.2vw, 6.4rem)/.95 'Bebas Neue', 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: #fff;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .5);
}

.acc-txt p {
    margin: 0 0 22px;
    font-weight: 300;
    font-size: 1.02em;
    line-height: 1.7;
    max-width: 440px;
    opacity: .92;
}

.acc-btn {
    font: 500 .78em 'Poppins', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .85);
    border-radius: 30px;
    padding: 13px 28px;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), background .25s ease, color .25s ease, box-shadow .3s ease;
}

.acc-btn:hover {
    background: #fff;
    color: #0c0810;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.acc-rail {
    position: absolute;
    left: 46vw;
    right: 0;
    top: 50%;
    transform: translateY(-58%);
    overflow: hidden;
    padding: 24px 0;
}

.acc-strip {
    display: flex;
    gap: 22px;
    transform: translate3d(0, 0, 0);
    transition: transform .95s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.acc-th {
    flex: 0 0 clamp(125px, 13vw, 200px);
    height: clamp(200px, 34vh, 340px);
    position: relative;
    border: 2px solid rgba(255, 255, 255, .18);
    padding: 0;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    background-image: var(--img), linear-gradient(160deg, var(--g1), var(--g2));
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
    transition: transform .55s cubic-bezier(.22, 1, .36, 1), opacity .5s ease, box-shadow .35s ease, border-color .3s ease;
    color: #fff;
    text-align: left;
    will-change: transform, opacity;
}

.acc-th:hover {
    transform: translateY(-6px);
    border-color: #fff;
}

.acc-th.zoom {
    transform: scale(1.25) translate3d(0, -8px, 0);
    opacity: 0;
    transition: transform .85s cubic-bezier(.22, 1, .36, 1), opacity .65s ease;
}

.acc-th span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 12px 12px;
    font: 500 .78em/1.3 'Poppins', sans-serif;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78));
}

.acc-ctl {
    position: absolute;
    z-index: 4;
    left: 46vw;
    right: 6vw;
    bottom: 7vh;
    display: flex;
    align-items: center;
    gap: 22px;
}

.acc-next {
    position: relative;
    font: 600 .74em 'Poppins', sans-serif;
    letter-spacing: .14em;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
    color: #fff;
    border-radius: 30px;
    padding: 13px 38px;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), background .25s ease, box-shadow .3s ease;
}

.acc-next:hover {
    background: rgba(255, 255, 255, .34);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.acc-next:active {
    transform: scale(.95);
}

.acc-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, .3);
    border-radius: 2px;
    position: relative;
}

.acc-line i {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #fff;
    border-radius: 2px;
    transition: width .95s cubic-bezier(.22, 1, .36, 1);
}

.acc-num {
    font: 400 2.2em 'Bebas Neue', 'Oswald', sans-serif;
    min-width: 1.6em;
    text-align: right;
}

.acc-det {
    position: fixed;
    z-index: 5000;
    inset: 0;
    background: rgba(8, 6, 16, .82);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: accIn .35s ease both;
}

.acc-det[hidden] {
    display: none;
}

@keyframes accIn {
    from { opacity: 0; }
}

.acc-det > div {
    position: relative;
    max-width: 640px;
    max-height: 88dvh;
    overflow: auto;
    background: #fff;
    color: #2b1b1b;
    border-radius: 24px;
    padding: 28px 30px 26px;
    border-top: 8px solid var(--amarillo, #F4C20D);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.acc-det h4 {
    margin: 0 0 4px;
    font: 400 2.2em/1 'Bebas Neue', 'Oswald', sans-serif;
    color: var(--azul, #8E1B2B);
    text-transform: uppercase;
}

.acc-det small {
    display: block;
    margin-bottom: 12px;
    opacity: .7;
}

.acc-det h5 {
    margin: 14px 0 4px;
    font: 700 .8em 'Poppins', sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--azul, #8E1B2B);
}

.acc-det p {
    margin: 0;
    line-height: 1.7;
    font-size: .95em;
}

.acc-det .acc-fu {
    font-size: .78em;
    opacity: .65;
    margin-top: 14px;
}

.acc-det .acc-x {
    position: absolute;
    top: 8px;
    right: 14px;
    border: 0;
    background: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--azul, #8E1B2B);
}

/* Teléfonos */
@media (max-width: 760px) {
    .acc-gal {
        height: auto;
        min-height: 620px;
        padding-bottom: 24px;
    }

    .acc-layer::after {
        background: linear-gradient(180deg, rgba(8, 6, 16, .72) 0%, rgba(8, 6, 16, .84) 55%, rgba(8, 6, 16, .95) 100%);
    }

    .acc-top {
        top: 16px;
        left: 20px;
        right: 20px;
        font-size: .72em;
        letter-spacing: .12em;
    }

    .acc-wrap {
        position: relative;
        inset: auto;
        align-items: flex-start;
        padding: 54px 20px 18px;
    }

    .acc-txt {
        width: 100%;
    }

    .acc-txt h3 {
        font-size: clamp(2.4rem, 12vw, 3.6rem);
        margin-bottom: 10px;
    }

    .acc-txt p {
        font-size: .9em;
        line-height: 1.55;
        max-width: none;
        margin-bottom: 14px;
    }

    .acc-btn {
        padding: 10px 22px;
        font-size: .74em;
    }

    .acc-rail {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        padding: 6px 20px 14px;
    }

    .acc-strip {
        gap: 12px;
    }

    .acc-th {
        flex: 0 0 112px;
        height: 142px;
        border-radius: 12px;
    }

    .acc-th span {
        font-size: .68em;
        padding: 18px 8px 8px;
    }

    .acc-ctl {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        padding: 4px 20px 0;
        gap: 12px;
    }

    .acc-next {
        padding: 10px 22px;
        font-size: .72em;
        white-space: nowrap;
    }

    .acc-num {
        font-size: 1.7em;
    }

    .acc-det > div {
        padding: 22px 20px;
        border-radius: 20px;
    }

    .acc-det h4 {
        font-size: 1.8em;
        padding-right: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .acc-layer, .acc-strip, .acc-th, .acc-txt > *, .acc-line i, .acc-det {
        transition: none;
        animation: none;
    }
}