/* ESTILOS PARA LA FICHA */

/* IMAGEN Y GALERIA */
.sh-ficha-galeryBox {
    margin: 20px 0px;
    display: flex;
    gap: 10px;
    aspect-ratio: 5 / 4.5;
}

.sh-ficha-galery {
    width: 20%;
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}

.sh-ficha-galery-list {
    overflow-y: scroll;
    display: flex;
    gap: 5px;
    flex-direction: column;
    margin: 0px;
    padding: 0px;
    height: 100%;
}

.sh-ficha-galery-list>li {
    background-color: #d7d7d7;
    padding: 2px;
    border-radius: 5px;
    width: 100%;
}

a, a:active, a:focus {
    outline: none;
}

.sh-ficha-mainPic {
    padding: 10px 10px 10px 10px;
    margin-left: -4px;
    position: relative;
    border-radius: 0px 5px 5px 0px;
    width: 85%;
    display: inline-block;
    vertical-align: top;
}

/* INFORMACION DE LA FICHA */

.sh-ficha-panelDesc {
    min-height: inherit;
    border-radius: 5px;
    font-family: 'Ubuntu';
}

.sh-ficha-t1 {
    margin: 0px 0px 0px 0px;
    color: #ec1d25;
    text-transform: uppercase;
    background: #fff;
    font-size: 30px;
}

.sh-ficha-subt {
    margin: 0px;
    color: #005f9f;
    background: #fff;
    font-size: 25px;
    border-bottom: thin solid #afafaf;
    padding: 0px 0px 10px;
}

.sh-ficha-cajaPrecios {
    margin: 15px 0 30px 0px;
    text-align: center;
}

.precioPpal {
    font-weight: 500;
}

.sh-ficha-precios-number {
    color: #005f9f;
    font-weight: 600;
    display: flex;
    align-items: center;
    vertical-align: middle;
    font-size: 30px;
    margin-right: 5px;
}

.sh-ficha-precios-tachado {
    font-weight: 300 !important;
    font-size: 23px !important;
    text-decoration: line-through;
}

.sh-ficha-precios-text {
    display: inline-block;
    /* color: #015f9e; */
    color: #ffffff;
    background-color: #F20524;
    /* border: solid thin #969696 !important; */
    padding: 6px 5px;
    vertical-align: middle;
    margin: 0px 4px;
    font-size: 18px;
    line-height: 14px;
    font-weight: 700;
}

.tituloCuota1 {
    display: inline-block;
    color: #000000;
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 15px;
    line-height: 1.4;
    background-color: #ffec00;
    padding: 10px 15px;
    border-radius: 5px;    
    font-weight: 500;
}

.bloqCuota {
    font-size: 24px;
}

.text-cuotas {
    font-family: 'Ubuntu Condensed';
    display: inline;
    width: 0%;
    /* padding: 2px 25px;
    border: solid 1px #F20524; */
    color: #F20524;
}

.bloq-precio-list p {
    font-size: 16px;
    color: #969696;
    font-weight: 500;
}

.cft-collapse {
    border: 0px !important;
}

.cft-detalle {
    background: none;
    border: 0px;
    margin-bottom: 0px;
    padding-bottom: 5px;
    padding-left: 7px;
    margin-top: 0px;
    padding-top: 0px;
    color: #afafaf;
    font-size: 12px;
}

.sh-garantia-oficial {
    background-color: #000000;
    color: #ffffff;
    display: inline-block;
    padding: 2px 12px;
    font-size: 19px;
}

.sh-ficha-precios-cuotasEnvio {
    margin: 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.sh-ficha-precios-legalesEnvio {
    color: #afafaf;
    margin-bottom: 20px;
    font-size: 18px;
}

.es-ficha-precios-box {
    display: flex;
    background-color: #969696;
    border-radius: 5px 5px 0px 0px;
    padding: 5px 10px;
    color: whitesmoke;
    flex-direction: column;
    margin-bottom: 20px;
}

.es-ficha-precios-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    align-items: center;
    text-align: center;
    margin-bottom: 5px;
}

.es-ficha-precios-eggbox {
    display: flex;
    justify-content: center;
    padding: 10px 0px;
    margin-bottom: -20px;
    flex: 1;
}

.es-ficha-precios-egg {
    margin: -5px;
    width: 70px;
}

.es-ficha-precios-egg>img {
    filter: drop-shadow(2px 2px 2px #00000038);
}

.promo-desc-efvo-ficha {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-size: 21px;
    font-weight: 400;
}

.es-ficha-envios-box {
    background-color: #F2E325 !important;
    color: black;
    text-align: center;
    padding: 10px;
    justify-content: center;
    margin: -15px 0px 5px;
    border-radius: 0px;
    font-size: 15px;
}

.btn-comprar {
    background-color: #ec1d25;
    width: 100%;
    font-size: 23px;
    font-family: 'Ubuntu Condensed';
    padding: 0px;
    margin: 0px 0px 10px;
}

.btn-comprar-wsp {
    color: #ffffff;
    background-color: #0dc143;
    width: 100%;
    font-size: 23px;
    font-family: 'Ubuntu Condensed';
    padding: 0px;
    margin: 0px 0px 10px;
    border-radius:5px;
    border: none;
}

.btn-comprar-wsp:hover {
    color: #ffffff;
    background-color: #009c2f;
}

/* EQUIPOS PREVENTA */

.cartel-reservado-prev-ficha {
    width: 100%;
    position: absolute;
    text-align: center;
    bottom: 15%;
    padding: 8px;
    background-color: #f20524;
    color: #ffffff;
    font-size: 2rem;
}

.cartel-reservado-prev-ficha h4 {
    margin: 0;
}

.cartel-reservado-prev-ficha span {
    font-weight: 700;
}

.cartel-preventa-ficha {
    position: absolute;
    top: 40%;    
    left: 50%;    
    transform: translate(-50%, -50%);    
    z-index: 999;    
    text-align: center;
}

.cartel-preventa-ficha h3 {
    font-size: 5.2rem;    
    color: red;
    font-weight: 800;
    font-family: 'Ubuntu', sans-serif;
    text-shadow:
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff;
}
                            

/* EQUIPOS PREVENTA */



/* mediaquerys */

@media (max-width: 767px) {
    .tituloCuota1 {
        font-size: 14px;
        padding: 8px 12px;
        margin-top: 10px;
        margin-bottom: 8px;
    }
}

@media (min-width: 768px) {
    .es-ficha-precios-box {
        flex-direction: row;
    }

    .es-ficha-precios-name {
        width: 100%;
        margin-bottom: 0px;
    }

    .es-ficha-precios-eggbox {
        justify-content: flex-end;
    }
}

@media (min-width: 1200px) {
    .es-ficha-precios-box {
        flex-direction: row;
    }

    .es-ficha-precios-name span {
        font-size: 11px;
    }
}

@media (min-width: 1280px) {
    .container-fluid {
        padding: 0 !important;
    }
}

/* ===== ESTILOS PARA CARRUSEL DE GALERIA (Desktop) ===== */

/* Contenedor del carrusel */
#carrusel-galeria-container {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Flechas del carrusel */
.carrusel-nav {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    pointer-events: none;
}

#carrusel-galeria-container:hover .carrusel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: all;
}

.carrusel-arrow {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin: 0 10px;
}

.carrusel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.carrusel-arrow:active {
    transform: scale(0.95);
}

.carrusel-arrow-left:hover,
.carrusel-arrow-right:hover {
    background-color: rgba(20, 120, 200, 0.9);
}

/* Efecto fade para cambio de imagen */
@keyframes fadeGaleria {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

#main-gallery-img.fade-effect {
    /* animation: fadeGaleria 0.4s ease-in-out; */
}

/* Media query solo para desktop (md y superiores) */
@media (min-width: 992px) {
    #carrusel-galeria-container {
        cursor: pointer;
    }
    
    /* Ocultar indicadores en desktop */
    .gallery-dots {
        display: none !important;
    }
}

/* Ajustes de responsive para la galería */
@media (max-width: 991px) {
    .sh-ficha-galeryBox {
        aspect-ratio: auto;
        flex-direction: column-reverse;
    }

    #carrusel-galeria-container {
        width: 100% !important;
        margin-left: 0 !important;
        border-radius: 5px;
        position: relative;
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }

    #carrusel-galeria-container:active {
        cursor: grabbing;
    }

    #carrusel-galeria-container img {
        touch-action: none;
    }

    .sh-ficha-mainPic {
        width: 100% !important;
        border-radius: 5px !important;
    }

    /* Galería de miniaturas en mobile */
    #galeria-mobile {
        width: 100% !important;
        height: auto !important;
        margin-top: 10px;
    }

    #galeria-mobile .sh-ficha-galery-list {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        height: 80px;
        gap: 8px;
    }

    #galeria-mobile .sh-ficha-galery-list li {
        min-width: 70px;
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    #galeria-mobile .sh-ficha-galery-list li img {
        height: 100%;
        object-fit: cover;
    }

    /* Indicadores de puntos */
    .gallery-dots {
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
        display: flex !important;
        gap: 6px;
        z-index: 5;
    }

    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgb(91 91 91);
        cursor: pointer;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.7);
    }

    .dot.active {
        background-color: rgb(91 91 91);
        transform: scale(1.3);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    }
}