/* ============================================================
   P23 Slider Pro v1.0 — Full-screen cinematic product slider
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ── Wrapper reset ── */
.elementor-widget-p23_slider_pro,
.elementor-widget-p23_slider_pro > .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ── ROOT ── */
.p23sp-root {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
}

/* ── BG COLOR ── */
.p23sp-bg-color {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #1a0f08;
    transition: background 0.8s ease;
}

/* ── BG IMAGES ── */
.p23sp-bg-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.9s ease;
}
.p23sp-bg-img.active { opacity: 0.18; }

/* ── VIGNETTES ── */
.p23sp-vignette-radial {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse at 70% 50%, transparent 30%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}
.p23sp-vignette-linear {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to right, rgba(0,0,0,0.72) 0%, transparent 52%);
    pointer-events: none;
}

/* ── LAYOUT ── */
.p23sp-layout {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
}

/* ── LEFT COL ── */
.p23sp-left {
    width: 52%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px 0 8vw;
    position: relative;
}

/* ── SLIDE CONTENT ── */
.p23sp-slide-content {
    position: absolute;
    width: calc(100% - 8vw - 40px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.16,1,.3,1);
}
.p23sp-slide-content.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.p23sp-slide-content.exit {
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Staggered children animation */
.p23sp-slide-content.active .p23sp-eyebrow-row { animation: p23spUp 0.55s cubic-bezier(.16,1,.3,1) both; }
.p23sp-slide-content.active .p23sp-title       { animation: p23spUp 0.6s 0.06s cubic-bezier(.16,1,.3,1) both; }
.p23sp-slide-content.active .p23sp-origin      { animation: p23spUp 0.6s 0.1s cubic-bezier(.16,1,.3,1) both; }
.p23sp-slide-content.active .p23sp-accordion   { animation: p23spUp 0.65s 0.14s cubic-bezier(.16,1,.3,1) both; }
.p23sp-slide-content.active .p23sp-badge       { animation: p23spUp 0.65s 0.18s cubic-bezier(.16,1,.3,1) both; }

@keyframes p23spUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── EYEBROW ROW ── */
.p23sp-eyebrow-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.p23sp-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}
.p23sp-accent-line {
    flex-shrink: 0;
    width: 32px;
    height: 1px;
    opacity: 0.7;
}
.p23sp-counter {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
}
.p23sp-muted { color: rgba(240,237,232,0.38); }

/* ── TITLE ── */
.p23sp-title {
    font-size: 7vw;
    line-height: 0.92;
    letter-spacing: 0.02em;
    color: #f0ede8;
    margin-bottom: 12px;
    white-space: nowrap;
    /* Elementor Group_Control_Typography overrides via {{WRAPPER}} selector */
}

/* ── ORIGIN ── */
.p23sp-origin {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

/* ── ACCORDION ── */
.p23sp-accordion { display: flex; flex-direction: column; }
.p23sp-acc-border-top { border-top: 1px solid rgba(255,255,255,0.07); }

.p23sp-acc-item {
    border-bottom: 1px solid rgba(255,255,255,0.07);
    overflow: hidden;
}

.p23sp-acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    cursor: pointer;
    list-style: none;
}
.p23sp-acc-header::-webkit-details-marker { display: none; }
.p23sp-acc-header:hover .p23sp-acc-label { color: rgba(240,237,232,0.65) !important; }

.p23sp-acc-label {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.18s;
    white-space: nowrap;
    flex-shrink: 0;
}

.p23sp-acc-right { display: flex; align-items: center; gap: 10px; min-width: 0; justify-content: flex-end; flex: 1; }

.p23sp-acc-value {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: rgba(240,237,232,0.6);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p23sp-chevron {
    color: rgba(255,255,255,0.2);
    transition: transform 0.25s ease, color 0.2s;
    flex-shrink: 0;
}

details[open] > .p23sp-acc-header .p23sp-chevron { transform: rotate(180deg); }
details[open] > .p23sp-acc-header .p23sp-acc-value { color: rgba(240,237,232,0.28); }

.p23sp-acc-body {
    padding: 0 0 12px;
    animation: p23spAccOpen 0.2s ease;
}

@keyframes p23spAccOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.p23sp-inner-row { display: flex; align-items: baseline; padding: 4px 0; }
.p23sp-inner-label {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: rgba(240,237,232,0.2);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    min-width: 80px;
    flex-shrink: 0;
}
.p23sp-inner-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(255,255,255,0.07);
    margin: 0 10px;
    position: relative;
    top: -2px;
}
.p23sp-inner-value {
    font-family: 'Space Mono', monospace;
    font-size: 10.5px;
    color: rgba(240,237,232,0.5);
    text-align: right;
}

/* ── BADGE ── */
.p23sp-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 24px;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    width: fit-content;
}

/* ── RIGHT COL ── */
.p23sp-right {
    width: 48%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ── PRODUCT ── */
.p23sp-product {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease 0.2s, transform 0.6s cubic-bezier(.34,1.3,.64,1) 0.2s;
    pointer-events: none;
}
.p23sp-product.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    animation: p23spFloat 4s ease-in-out infinite;
    animation-delay: 0.6s;
}

@keyframes p23spFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Glow */
.p23sp-glow {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    pointer-events: none;
    z-index: 0;
}

/* Rings */
.p23sp-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid;
    pointer-events: none;
}
.p23sp-ring-outer {
    width: 320px; height: 320px;
    transform: translate(-50%, -60%);
    animation: p23spSpin 20s linear infinite;
}
.p23sp-ring-inner {
    width: 260px; height: 260px;
    transform: translate(-50%, -60%);
    animation: p23spSpinRev 15s linear infinite;
}
@keyframes p23spSpin    { to { transform: translate(-50%,-60%) rotate(360deg); } }
@keyframes p23spSpinRev { to { transform: translate(-50%,-60%) rotate(-360deg); } }

/* Product image */
.p23sp-product-img {
    width: clamp(140px, 14vw, 240px);
    object-fit: contain;
    filter: drop-shadow(0 20px 44px rgba(0,0,0,0.5));
    display: block;
    position: relative;
    z-index: 2;
    transition: filter 0.4s ease;
}
.p23sp-product:hover .p23sp-product-img {
    filter: drop-shadow(0 28px 56px rgba(0,0,0,0.7));
}

/* Placeholder */
.p23sp-placeholder {
    width: clamp(140px, 12vw, 200px);
    aspect-ratio: 9/13;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.15);
    position: relative;
    z-index: 2;
}
.p23sp-placeholder span {
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.8;
}

/* Product label */
.p23sp-product-label { text-align: center; z-index: 2; position: relative; }
.p23sp-product-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.p23sp-product-process {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ── ARROWS ── */
.p23sp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.45);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.p23sp-arrow:hover { color: #fff; border-color: transparent; transform: translateY(-50%) scale(1.08); }
.p23sp-arrow:active { transform: translateY(-50%) scale(0.93); }
.p23sp-arrow-prev { left: 2.5vw; }
.p23sp-arrow-next { right: 2.5vw; }

/* ── DOTS ── */
.p23sp-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 30;
}
.p23sp-dot {
    height: 6px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    transition: all 0.35s cubic-bezier(.16,1,.3,1);
    padding: 0;
    width: 6px;
}
.p23sp-dot.active { width: 24px; }

/* ── META CORNERS ── */
.p23sp-meta-br {
    position: absolute;
    bottom: 24px; left: 8vw;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 30;
}
.p23sp-meta-tr {
    position: absolute;
    top: 24px; right: 8vw;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: right;
    z-index: 30;
    line-height: 1.7;
}

/* ── PREMIOS (dentro del acordeón, idéntico a las filas internas) ── */
.p23sp-award {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0;
    line-height: 1.4;
    color: rgba(240,237,232,0.5);
    padding: 4px 0;
}
.p23sp-award + .p23sp-award {
    border-top: 1px dotted rgba(255,255,255,0.07);
}
.p23sp-award span:last-child {
    flex: 1;
}

.p23sp-award-ico {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 11px;
    line-height: 1;
    position: relative;
    top: 2px;
}

/* Awards summary value (mismo peso que los demás) */
.p23sp-acc-awards .p23sp-acc-value { font-weight: 400; }

/* ════════════════════════════════════════════
   RESPONSIVE — Tablet
════════════════════════════════════════════ */
@media (max-width: 1024px) and (min-width: 769px) {
    .p23sp-left  { padding-right: 24px; }
    .p23sp-title { font-size: clamp(44px, 8vw, 72px); }
}

/* ════════════════════════════════════════════
   RESPONSIVE — Mobile (≤768px)
   Approach CSS-puro: el .p23sp-right (producto) se reordena
   con flex `order` para quedar entre origen y acordeón.
   NO se mueve el DOM con JS — más robusto.
════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Root crece con el contenido */
    .p23sp-root {
        height: auto !important;
        min-height: 100svh;
    }

    /* Layout vertical */
    .p23sp-layout {
        flex-direction: column;
        height: auto;
        min-height: auto;
        position: relative;
        z-index: 10;
    }

    /* Columna izquierda = contenido textual */
    .p23sp-left {
        width: 100% !important;
        height: auto;
        padding: 100px 22px 16px;
        justify-content: flex-start;
        box-sizing: border-box;
        order: 1;
    }

    /* Slides apilados; activo define altura */
    .p23sp-slide-content {
        position: absolute;
        top: 100px;
        left: 22px;
        width: calc(100% - 44px);
        display: flex;
        flex-direction: column;
    }
    .p23sp-slide-content.active {
        position: relative;
        top: 0;
        left: 0;
    }

    /* Orden del contenido textual */
    .p23sp-eyebrow-row { order: 1; margin-bottom: 14px; }
    .p23sp-title       { order: 2; }
    .p23sp-origin      { order: 3; margin-bottom: 22px; }
    .p23sp-accordion   { order: 4; }
    .p23sp-badge       { order: 5; }

    /* ── PRODUCTO ──
       La columna derecha pasa a ser un bloque normal DEBAJO del
       contenido (order:2 dentro del layout column). */
    .p23sp-right {
        width: 100% !important;
        height: auto;
        min-height: 56vw;
        padding: 12px 0 48px;
        order: 2;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* CRÍTICO: el producto deja de ser absolute para no superponerse */
    .p23sp-product {
        position: relative !important;
        inset: auto !important;
    }
    /* Solo el activo se muestra; los demás colapsan sin ocupar espacio */
    .p23sp-product:not(.active) {
        position: absolute !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Título legible, 2 líneas */
    .p23sp-title {
        font-size: clamp(40px, 12vw, 64px) !important;
        white-space: normal;
        line-height: 0.92;
        margin-bottom: 10px;
    }

    /* ── ACORDEÓN: clickeable, por encima de las flechas ── */
    .p23sp-accordion {
        position: relative;
        z-index: 25;
    }
    .p23sp-acc-item   { position: relative; z-index: 25; }
    .p23sp-acc-header { padding: 14px 0; }

    .p23sp-acc-label { font-size: 9px; letter-spacing: 0.16em; }
    .p23sp-acc-value {
        font-size: 10.5px;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .p23sp-inner-value { font-size: 10.5px; }
    .p23sp-inner-label { min-width: 70px; }
    .p23sp-award       { font-size: 10.5px; }

    /* Anillos y glow del producto */
    .p23sp-ring-outer { width: 230px; height: 230px; }
    .p23sp-ring-inner { width: 188px; height: 188px; }

    /* ── FLECHAS: al fondo, NUNCA sobre el acordeón ── */
    .p23sp-arrow {
        width: 42px;
        height: 42px;
        top: auto;
        bottom: 24px;
        transform: none;
        z-index: 21;
    }
    .p23sp-arrow:hover  { transform: scale(1.06); }
    .p23sp-arrow:active { transform: scale(0.92); }
    .p23sp-arrow-prev { left: 16px; }
    .p23sp-arrow-next { right: 16px; }

    /* Ocultar esquinas meta */
    .p23sp-meta-br, .p23sp-meta-tr { display: none; }

    .p23sp-badge { font-size: 8.5px; margin-top: 20px; }

    /* Dots centrados al fondo */
    .p23sp-dots { bottom: 26px; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — Mobile pequeño (≤420px)
════════════════════════════════════════════ */
@media (max-width: 420px) {
    .p23sp-left { padding: 92px 16px 16px; }
    .p23sp-slide-content { width: calc(100% - 32px); left: 16px; }
    .p23sp-slide-content.active { left: 0; }
    .p23sp-title { font-size: clamp(34px, 13vw, 52px) !important; }
    .p23sp-acc-value { max-width: 120px; }
    .p23sp-ring-outer { width: 200px; height: 200px; }
    .p23sp-ring-inner { width: 162px; height: 162px; }
    .p23sp-arrow { width: 38px; height: 38px; }
}
