.dc-car,
.dc-car * { box-sizing: border-box; }

.dc-car {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    overflow: hidden;
    color: var(--dc-car-text);
    background: #101010;
    border-radius: 22px;
    isolation: isolate;
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
}

.dc-car__viewport { width: 100%; overflow: hidden; }
.dc-car__track {
    display: flex;
    gap: var(--dc-car-gap);
    will-change: transform;
    transition: transform .65s cubic-bezier(.22,.61,.36,1);
}
.dc-car__slide {
    position: relative;
    flex: 0 0 calc((100% - (var(--dc-car-gap) * (var(--dc-car-slides, 1) - 1))) / var(--dc-car-slides, 1));
    min-width: 0;
    height: var(--dc-car-height);
    overflow: hidden;
    background: #161616;
}

/* El fondo ocupa todo el slide, pero la composición reserva una zona limpia para el texto. */
.dc-car__backdrop {
    position: absolute;
    inset: -2px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.015);
    filter: saturate(.95) contrast(1.04);
}
.dc-car__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.78) 30%, rgba(0,0,0,.36) 56%, rgba(0,0,0,.14) 100%),
        linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.06) 62%);
}
.dc-car__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: min(620px, 64%);
    min-height: 100%;
    padding: 58px 7%;
    text-align: left;
}
.dc-car__year {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(0,0,0,.38);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}
.dc-car__title {
    margin: 0 0 17px;
    color: #fff;
    font-size: clamp(32px, 4vw, 62px);
    line-height: .98;
    letter-spacing: -.035em;
    font-weight: 900;
    text-shadow: 0 4px 22px rgba(0,0,0,.55);
}
.dc-car__synopsis {
    max-width: 590px;
    margin: 0 0 28px;
    color: rgba(255,255,255,.88);
    font-size: clamp(15px, 1.35vw, 19px);
    line-height: 1.58;
    text-shadow: 0 2px 12px rgba(0,0,0,.65);
}
.dc-car__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 21px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px;
    background: var(--dc-car-primary);
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
    transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
}
.dc-car__button:hover,
.dc-car__button:focus-visible {
    color: #fff !important;
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 14px 34px rgba(0,0,0,.4);
}
.dc-car__button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.dc-car__arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform .2s, background .2s;
}
.dc-car__arrow:hover { background: var(--dc-car-primary); transform: scale(1.06); }
.dc-car__arrow--prev { left: 18px; }
.dc-car__arrow--next { right: 18px; }
.dc-car__arrow span { font-size: 34px; line-height: 40px; font-family: Arial, sans-serif; }
.dc-car__dots {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 20px;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}
.dc-car__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.42);
    cursor: pointer;
    transition: width .22s, background .22s;
}
.dc-car__dot.is-active { width: 27px; border-radius: 999px; background: var(--dc-car-primary); }
.dc-car--empty { padding: 40px; background: #111; color: #fff; }
.dc-car-notice { padding: 15px 18px; border-left: 4px solid var(--dc-car-primary, #E51D22); background: #f5f5f5; }

@media (min-width: 981px) {
    .dc-car { --dc-car-slides: var(--dc-car-desktop, 1); }
}
@media (max-width: 980px) and (min-width: 681px) {
    .dc-car { --dc-car-slides: var(--dc-car-tablet, 1); }
    .dc-car__content { width: 72%; padding: 48px 7%; }
}
@media (max-width: 680px) {
    .dc-car { border-radius: 14px; }
    .dc-car { --dc-car-slides: var(--dc-car-mobile, 1); }
    .dc-car__slide { height: max(430px, var(--dc-car-height)); }
    .dc-car__shade { background: linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.56)), linear-gradient(0deg, rgba(0,0,0,.84), rgba(0,0,0,.08)); }
    .dc-car__content { width: 88%; padding: 38px 8%; justify-content: flex-end; padding-bottom: 68px; }
    .dc-car__title { font-size: clamp(30px, 10vw, 46px); }
    .dc-car__synopsis { font-size: 15px; line-height: 1.5; margin-bottom: 21px; }
    .dc-car__arrow { width: 40px; height: 40px; margin-top: -20px; }
    .dc-car__arrow span { font-size: 28px; line-height: 32px; }
    .dc-car__arrow--prev { left: 10px; }
    .dc-car__arrow--next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .dc-car__track { transition: none !important; }
    .dc-car__button, .dc-car__arrow { transition: none !important; }
}


/* Correccion de botones del carrusel: aislarlos de los estilos globales del tema WordPress. */
.dc-car button.dc-car__arrow {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    line-height: 1 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
    text-align: center;
    text-transform: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.28);
}
.dc-car button.dc-car__arrow span {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
    transform: translateY(-1px);
}
.dc-car button.dc-car__arrow:focus {
    outline: none;
}
.dc-car button.dc-car__arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
.dc-car button.dc-car__dot {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    flex: 0 0 8px;
    min-width: 8px;
    min-height: 8px;
    width: 8px;
    height: 8px;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px;
    background: rgba(255,255,255,.48);
    box-shadow: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
    text-indent: -9999px;
    overflow: hidden;
}
.dc-car button.dc-car__dot.is-active {
    flex-basis: 27px;
    width: 27px;
    background: var(--dc-car-primary);
}
.dc-car button.dc-car__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}


/* ==========================================================================
   Flechas v1.0.2: iconos Lucide (SVG inline), diseño renovado en escritorio
   y ocultas en móvil (se navega con swipe y puntos).
   ========================================================================== */
.dc-car button.dc-car__arrow {
    width: 58px;
    height: 58px;
    margin-top: -29px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04)), rgba(10,10,10,.55);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    backdrop-filter: blur(12px) saturate(1.4);
    box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.18);
    opacity: .82;
    transition: transform .28s cubic-bezier(.22,.61,.36,1), background .28s ease, border-color .28s ease, opacity .28s ease, box-shadow .28s ease;
}
.dc-car button.dc-car__arrow--prev { left: 26px; }
.dc-car button.dc-car__arrow--next { right: 26px; }

.dc-car button.dc-car__arrow svg {
    display: block;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .28s cubic-bezier(.22,.61,.36,1);
}

.dc-car:hover button.dc-car__arrow { opacity: 1; }

.dc-car button.dc-car__arrow:hover,
.dc-car button.dc-car__arrow:focus-visible {
    color: #fff;
    opacity: 1;
    background: var(--dc-car-primary);
    border-color: rgba(255,255,255,.45);
    transform: scale(1.08);
    box-shadow: 0 14px 36px rgba(0,0,0,.5), 0 0 0 6px rgba(255,255,255,.08);
}
.dc-car button.dc-car__arrow--prev:hover svg { transform: translateX(-2px); }
.dc-car button.dc-car__arrow--next:hover svg { transform: translateX(2px); }
.dc-car button.dc-car__arrow:active { transform: scale(.96); }

/* Móvil: sin flechas */
@media (max-width: 680px) {
    .dc-car button.dc-car__arrow { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .dc-car button.dc-car__arrow,
    .dc-car button.dc-car__arrow svg { transition: none !important; }
}
