/* ==========================================================================
   RC Hero Slider — Réplica responsive del LayerSlider id=4
   --------------------------------------------------------------------------
   Desktop  ≥992px : grid 3 columnas (copy · media · card) con ratio 7:3
   Tablet   768-991: grid 2 columnas (copy arriba, media + card abajo)
   Mobile   <768   : stack vertical (media · card · copy)
   Animaciones: CSS keyframes, activadas por .is-active en cada slide.
   ========================================================================== */

.rc-hero-slider {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 28px;
    overflow: hidden;
    border-radius: 6px;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background: #1e1a16;
    aspect-ratio: 7 / 3;
    max-height: 600px;
    isolation: isolate;
}

.rc-hero-slider:focus-visible {
    outline: 3px solid #F2AD0F;
    outline-offset: 2px;
}

.rc-hero__viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.rc-hero__track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ---------- SLIDE base (fade transition) ---------- */
.rc-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .7s ease, visibility 0s linear .7s;
}
.rc-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
    transition: opacity .7s ease, visibility 0s linear 0s;
}

.rc-hero__bg {
    position: absolute;
    inset: 0;
    background: url('/img/0-base-banner-2_641c5a168fd73.jpg') center/cover no-repeat;
    z-index: 0;
}
.rc-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,0) 60%);
}

.rc-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 480px) minmax(240px, 320px);
    gap: clamp(12px, 2vw, 32px);
    padding: clamp(20px, 4vh, 48px) clamp(20px, 4vw, 64px);
    align-items: center;
}

/* ================================================================
   COPY (texto izquierda)
   ================================================================ */
.rc-hero__copy {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.8vw, 20px);
    max-width: 470px;
    opacity: 0;
    transform: translateX(-40px) rotate(-2deg);
    transition: opacity .8s .15s ease, transform .9s .15s cubic-bezier(.16, 1, .3, 1);
}
.is-active .rc-hero__copy {
    opacity: 1;
    transform: translateX(0) rotate(0);
}

.rc-hero-slider .rc-hero__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 2.8vw, 40px);
    line-height: 1.15;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    margin: 0 !important;
    padding: 0;
    letter-spacing: -.5px;
    text-transform: none;
    border: 0;
}

.rc-hero__desc {
    font-size: clamp(13px, 1.2vw, 16px);
    line-height: 1.5;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
    margin: 0;
    max-width: 460px;
    opacity: .95;
}

.rc-hero-slider a.rc-hero__cta,
.rc-hero-slider a.rc-hero__cta:link,
.rc-hero-slider a.rc-hero__cta:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    background: #d11326;
    color: #fff !important;
    padding: clamp(10px, 1.4vw, 16px) clamp(18px, 2vw, 28px);
    border-radius: 8px;
    font-weight: 600;
    font-size: clamp(14px, 1.2vw, 17px);
    text-decoration: none !important;
    box-shadow: 0 8px 20px -4px rgba(209, 19, 38, .45), 0 2px 4px rgba(0, 0, 0, .2);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
    border: 0;
}
.rc-hero-slider a.rc-hero__cta:hover,
.rc-hero-slider a.rc-hero__cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -6px rgba(209, 19, 38, .6), 0 4px 6px rgba(0, 0, 0, .25);
    background: #b80f20;
    color: #fff !important;
    text-decoration: none !important;
}
.rc-hero-slider a.rc-hero__cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ================================================================
   MEDIA (imagen producto)
   ================================================================ */
.rc-hero__media {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    opacity: 0;
    transform: translateX(60px) rotate(18deg);
    transition: opacity .9s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1);
}
.is-active .rc-hero__media {
    opacity: 1;
    transform: translateX(0) rotate(0);
}
.rc-hero__product {
    max-width: 100%;
    max-height: 95%;
    object-fit: contain;
    filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .35));
}

/* ================================================================
   CARD (precio + estrellas)
   ================================================================ */
.rc-hero__card {
    position: relative;
    background: #F2AD0F;
    border-radius: 20px;
    padding: clamp(14px, 1.8vw, 24px) clamp(16px, 2vw, 26px);
    text-align: center;
    color: #292019;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35);
    opacity: 0;
    transform: translateY(20px) scale(.9);
    transition: opacity .8s .35s ease, transform .9s .35s cubic-bezier(.16, 1, .3, 1);
}
.is-active .rc-hero__card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.rc-hero__badge {
    display: inline-block;
    background: #ed2711;
    color: #fff;
    padding: 6px 16px;
    border-radius: 14px;
    border: 2px solid #fdcfcb;
    font-weight: 700;
    font-size: clamp(12px, 1.2vw, 15px);
    letter-spacing: .5px;
    margin-bottom: clamp(6px, 1vw, 10px);
    text-transform: uppercase;
}

.rc-hero__stars {
    position: relative;
    display: inline-block;
    font-size: clamp(14px, 1.3vw, 18px);
    color: #c2c2c2;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: clamp(4px, .8vw, 8px);
}
.rc-hero__stars::before {
    content: '★★★★★';
}
.rc-hero__stars > span {
    position: absolute;
    inset: 0;
    overflow: hidden;
    color: #ed2711;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s .7s cubic-bezier(.16, 1, .3, 1);
}
.rc-hero__stars > span::before {
    content: '★★★★★';
}
.is-active .rc-hero__stars > span {
    clip-path: inset(0 0 0 0);
}

.rc-hero__price {
    font-weight: 800;
    font-size: clamp(32px, 3.8vw, 54px);
    line-height: 1;
    color: #292019;
    margin: clamp(4px, .8vw, 8px) 0;
}

.rc-hero__model {
    font-weight: 700;
    font-size: clamp(13px, 1.2vw, 16px);
    line-height: 1.2;
    color: #292019;
    margin-bottom: clamp(3px, .6vw, 6px);
}

.rc-hero__sub {
    font-size: clamp(11px, 1vw, 13px);
    line-height: 1.4;
    color: #292019;
    opacity: .85;
}

/* ================================================================
   SLIDE 4 · REPUESTOS (3 imágenes flotantes)
   ================================================================ */
.rc-hero__media--parts {
    position: relative;
}
.rc-hero__part {
    position: absolute;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .25));
    opacity: 0;
    transition: opacity .8s ease, transform 1.2s cubic-bezier(.16, 1, .3, 1);
}
.rc-hero__part--1 {
    top: 8%; right: 10%;
    width: 62%; height: auto;
    transform: translate(40px, 20px) rotate(12deg);
    transition-delay: .2s;
    z-index: 3;
}
.rc-hero__part--2 {
    top: 28%; left: 4%;
    width: 52%; height: auto;
    transform: translate(-40px, 20px) rotate(-10deg);
    transition-delay: .45s;
    z-index: 2;
}
.rc-hero__part--3 {
    bottom: 6%; right: 28%;
    width: 42%; height: auto;
    transform: translate(20px, 40px) rotate(14deg);
    transition-delay: .7s;
    z-index: 1;
}
.is-active .rc-hero__part {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
}

/* ================================================================
   NAV ARROWS
   ================================================================ */
.rc-hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(38px, 3.2vw, 50px);
    height: clamp(38px, 3.2vw, 50px);
    border: 2px solid #72605f;
    background: #f5eede;
    color: #72605f;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    font-size: clamp(14px, 1.2vw, 17px);
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.rc-hero__nav:hover,
.rc-hero__nav:focus-visible {
    background: #F2AD0F;
    color: #292019;
    transform: translateY(-50%) scale(1.08);
    outline: none;
}
.rc-hero__nav--prev { left: clamp(10px, 1.5vw, 22px); }
.rc-hero__nav--next { right: clamp(10px, 1.5vw, 22px); }

/* ================================================================
   BULLETS
   ================================================================ */
.rc-hero__bullets {
    position: absolute;
    left: 50%;
    bottom: clamp(12px, 2vh, 20px);
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.rc-hero__bullets button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.rc-hero__bullets button:hover {
    background: rgba(255, 255, 255, .5);
}
.rc-hero__bullets button.is-active {
    background: #F2AD0F;
    border-color: #F2AD0F;
    transform: scale(1.25);
}
.rc-hero__bullets button:focus-visible {
    outline: 2px solid #F2AD0F;
    outline-offset: 2px;
}

/* ================================================================
   TABLET (768–991)
   ================================================================ */
@media (max-width: 991.98px) {
    .rc-hero-slider {
        aspect-ratio: auto;
        max-height: none;
        height: auto;
        min-height: 520px;
        border-radius: 6px;
        margin-bottom: 20px;
    }
    .rc-hero__viewport {
        min-height: 520px;
    }
    /* En tablet/mobile el activo es relative para dar altura al track
       (min-height del parent no propaga bien a children absolute). */
    .rc-hero__slide.is-active {
        position: relative;
    }
    .rc-hero__slide:not(.is-active) {
        position: absolute;
        inset: 0;
    }
    .rc-hero__inner {
        grid-template-columns: 1.1fr 1fr;
        grid-template-areas:
            "copy  media"
            "card  media";
        padding: clamp(20px, 3vh, 36px) clamp(20px, 3vw, 40px);
        gap: 20px;
        align-content: center;
    }
    .rc-hero__copy { grid-area: copy; max-width: 100%; }
    .rc-hero__media {
        grid-area: media;
        min-height: 420px;
        grid-row: span 2;
    }
    .rc-hero__product {
        max-height: 100%;
        width: auto;
        max-width: 100%;
    }
    .rc-hero__card {
        grid-area: card;
        align-self: start;
        max-width: 360px;
    }
    .rc-hero__title { font-size: clamp(20px, 2.8vw, 30px); }
    .rc-hero__desc  { font-size: 14px; }
    .rc-hero__price { font-size: clamp(32px, 4.5vw, 42px); }
    /* Slide 4 parts — ocupan más en tablet */
    .rc-hero__part--1 { top: 2%;  right: 2%;  width: 68%; }
    .rc-hero__part--2 { top: 38%; left: -4%;  width: 56%; }
    .rc-hero__part--3 { bottom: 2%; right: 18%; width: 46%; }
    /* Suavizar el banner en tablet — imagen de producto debe destacar */
    .rc-hero__bg { filter: brightness(.82) saturate(.9); }
    .rc-hero__bg::after {
        background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.1) 100%);
    }
}

/* ================================================================
   MOBILE (<768)
   ================================================================ */
@media (max-width: 767.98px) {
    .rc-hero-slider {
        min-height: 700px;
        border-radius: 0;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        max-width: 100vw;
    }
    .rc-hero__viewport {
        min-height: 700px;
    }
    .rc-hero__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "card"
            "copy";
        padding: 18px 16px 24px;
        gap: 14px;
        align-content: start;
    }
    .rc-hero__copy  { grid-area: copy;  text-align: center; align-items: center; }
    .rc-hero__media { grid-area: media; min-height: 280px; height: 280px; }
    .rc-hero__product { max-height: 100%; width: auto; max-width: 100%; }
    .rc-hero__card  { grid-area: card;  padding: 14px 18px; max-width: 420px; margin: 0 auto; width: 100%; }
    .rc-hero-slider a.rc-hero__cta { align-self: center; padding: 11px 22px; }
    .rc-hero__title { font-size: 20px; line-height: 1.25; }
    .rc-hero__desc  { font-size: 13px; }
    .rc-hero__price { font-size: 36px; }
    .rc-hero__model { font-size: 13px; }
    .rc-hero__sub   { font-size: 11px; }
    .rc-hero__badge { font-size: 12px; padding: 5px 12px; }

    /* Suavizar el banner en mobile — imagen de producto debe destacar */
    .rc-hero__bg { filter: brightness(.78) saturate(.85); }
    .rc-hero__bg::after {
        background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.15) 100%);
    }

    /* Nav en el medio-vertical de la imagen, no abajo */
    .rc-hero__nav {
        top: 140px; /* centrado verticalmente sobre la imagen de 280px */
        transform: translateY(-50%);
        width: 36px; height: 36px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
    }
    .rc-hero__nav:hover,
    .rc-hero__nav:focus-visible { transform: translateY(-50%) scale(1.08); }
    .rc-hero__nav--prev { left: 10px; }
    .rc-hero__nav--next { right: 10px; }

    /* Slide 4 · 3 imágenes en grid 2x2 más grandes */
    .rc-hero__media--parts {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 140px 140px;
        gap: 8px;
        min-height: 280px;
        height: 280px;
    }
    .rc-hero__part {
        position: static;
        width: 100%;
        height: 100%;
        transform: translateY(20px) scale(.9);
        transition-delay: 0s;
        max-height: 100%;
    }
    .rc-hero__part--1 { grid-column: 1 / 3; grid-row: 1; height: 140px; transition-delay: .1s; }
    .rc-hero__part--2 { grid-column: 1;     grid-row: 2; height: 140px; transition-delay: .25s; }
    .rc-hero__part--3 { grid-column: 2;     grid-row: 2; height: 140px; transition-delay: .4s; }
    .is-active .rc-hero__part { transform: translateY(0) scale(1); }
}

/* ================================================================
   Prefers-reduced-motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    .rc-hero__slide,
    .rc-hero__copy,
    .rc-hero__media,
    .rc-hero__card,
    .rc-hero__part,
    .rc-hero__stars > span {
        transition-duration: .1s !important;
    }
    .rc-hero__copy,
    .rc-hero__media,
    .rc-hero__card,
    .rc-hero__part {
        transform: none !important;
    }
}

/* ================================================================
   Fallback: navegadores sin aspect-ratio (IE11 / viejos)
   ================================================================ */
@supports not (aspect-ratio: 7 / 3) {
    .rc-hero-slider { height: 0; padding-top: 42.857%; max-height: 600px; }
    .rc-hero-slider > .rc-hero__viewport { position: absolute; inset: 0; }
}

/* ================================================================
   DEFENSAS contra el tema Warehouse
   - h2/h4 dentro del slider NO deben heredar color del tema
   - ocultar LayerSlider plugin si el hook sigue renderizando
   ================================================================ */
.rc-hero-slider .rc-hero__title,
.rc-hero-slider h2.rc-hero__title,
.rc-hero-slider h2.rc-hero__model,
.rc-hero-slider h4.rc-hero__price {
    color: #fff;
}
.rc-hero-slider .rc-hero__model,
.rc-hero-slider .rc-hero__price {
    color: #292019 !important;
    text-transform: none;
    letter-spacing: normal;
    font-weight: inherit;
    border: 0;
}
.rc-hero-slider .rc-hero__price { font-weight: 800 !important; }
.rc-hero-slider .rc-hero__model { font-weight: 700 !important; }
.rc-hero-slider .rc-hero__sub,
.rc-hero-slider .rc-hero__desc,
.rc-hero-slider .rc-hero__badge { letter-spacing: normal; }
/* Ocultar LayerSlider plugin solo en la página home — defensa adicional.
   Specificity alta para ganar al CSS interno del plugin (que usa #id + !important). */
body#index [id^="layerslider_"],
body#index .ls-wp-container,
body#index .ls-fullscreen-wrapper,
body#index .elementor-widget[data-widget_type*="layerslider"],
html body .page-home [id^="layerslider_"],
html body .page-home .ls-wp-container,
html body .page-home .ls-fullscreen-wrapper {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}
