/* CONSTRUMIN V3: estilos exclusivos de la portada de prueba */

#cm-premium-hero.cm26-v3 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.cm26-v3 .cm26-stage {
    position: relative;
    display: grid;
}

.cm26-v3 .cm26-panel {
    grid-area: 1 / 1;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px);
    transition:
        opacity .85s ease,
        transform .85s ease,
        visibility .85s;
}

.cm26-v3 .cm26-panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 2;
}

.cm26-v3 .cm-gold {
    background-size: 250% 100% !important;
    animation: cm26Gold 6s ease-in-out infinite;
    transition: filter .3s ease;
}

.cm26-v3 .cm-gold:hover {
    filter: drop-shadow(0 0 14px rgba(246,211,130,.55));
    animation-duration: 2s;
}

@keyframes cm26Gold {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cm26-v3 .cm26-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 17px;
    background: rgba(9,16,22,.75);
    border: 1px solid rgba(232,194,115,.35);
    border-radius: 50px;
    backdrop-filter: blur(12px);
}

.cm26-v3 .cm26-arrow {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(236,202,132,.5);
    border-radius: 50%;
    background: transparent;
    color: #f7d994;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.cm26-v3 .cm26-arrow:hover {
    background: #dcb367;
    color: #17212b;
}

.cm26-v3 .cm26-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.cm26-v3 .cm26-dot {
    position: relative;
    width: 39px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,.27);
    cursor: pointer;
}

.cm26-v3 .cm26-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 0;
    background: linear-gradient(90deg,#ad792a,#ffe3a2);
}

.cm26-v3 .cm26-dot.is-active::after {
    animation: cm26Progress 6s linear forwards;
}

.cm26-v3.is-paused .cm26-dot.is-active::after {
    animation-play-state: paused;
}

@keyframes cm26Progress {
    from { width: 0; }
    to { width: 100%; }
}

.cm26-v3 .cm26-panel .cm-visual img {
    transition: transform .8s ease;
}

.cm26-v3 .cm26-panel.is-active .cm-visual:hover img {
    transform: scale(1.045);
}

@media (max-width: 900px) {
    .cm26-v3 .cm26-controls {
        bottom: 12px;
    }

    .cm26-v3 .cm26-panel {
        padding-bottom: 55px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cm26-v3 *,
    .cm26-v3 *::after {
        animation: none !important;
        transition: none !important;
    }

    .cm26-v3 .cm26-dot.is-active::after {
        width: 100%;
    }
}

/* CM26_AJUSTE_ALTURA: portada compacta e imágenes proporcionadas */

#cm-premium-hero.cm26-v3 .cm26-panel {
    padding-top: 50px;
    padding-bottom: 85px;
}

#cm-premium-hero.cm26-v3 .cm26-panel .cm-visual {
    height: 365px;
    min-height: 0;
    max-height: 365px;
    padding: 18px;
    overflow: hidden;
}

#cm-premium-hero.cm26-v3 .cm26-panel .cm-visual img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 900px) {
    #cm-premium-hero.cm26-v3 .cm26-panel {
        padding: 40px 24px 75px;
    }

    #cm-premium-hero.cm26-v3 .cm26-panel .cm-visual {
        height: 290px;
        max-height: 290px;
    }
}

/* CM26_IMAGEN_LIMPIA_V5
   Imagen grande, limpia y sin marcos */

#cm-premium-hero.cm26-v3 .cm26-panel .cm-visual {
    width: 100%;
    height: 410px;
    min-height: 410px;
    max-height: 410px;

    padding: 0 !important;
    margin: 0;

    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    overflow: visible;
}

#cm-premium-hero.cm26-v3 .cm26-panel .cm-visual::before,
#cm-premium-hero.cm26-v3 .cm26-panel .cm-visual::after {
    display: none !important;
    content: none !important;
}

#cm-premium-hero.cm26-v3 .cm26-panel .cm-visual img {
    width: 100%;
    height: 100%;
    max-width: 540px;
    max-height: 410px;

    display: block;
    margin: 0 auto;

    object-fit: contain;
    object-position: center;

    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

@media (max-width: 900px) {
    #cm-premium-hero.cm26-v3 .cm26-panel .cm-visual {
        height: 340px;
        min-height: 340px;
        max-height: 340px;
    }

    #cm-premium-hero.cm26-v3 .cm26-panel .cm-visual img {
        max-height: 340px;
        max-width: 100%;
    }
}

