.seccion-prod {
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    /* margin-top: 70px; */
    max-width: 1300px;
    padding-top: 70px;
    padding-bottom: 70px;
}

.prod-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.prod-imagen-container {
    height: 410px;
    width: 100%;
    position: relative;
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.slider-flip-card {
    width: 100%;
    height: 100%;
    perspective: 1600px;
    border-radius: 16px;
}

.slider-flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.15, 1);
    border-radius: 16px;
}

.slider-flip-card.is-flipped .slider-flip-inner {
    transform: rotateY(180deg);
}

.slider-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    background: #fff;
}

.slider-face-front {
    z-index: 2;
}

.slider-face-back {
    transform: rotateY(180deg);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.slider-face-back iframe {
    width: 100%;
    height: 337px !important;
    border: 0;
    border-radius: 16px;
}

.slider-embed-header {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 9;
}

.modern-embed-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.sketchfab-embed-wrapper {
    width: 100%;
}

.sketchfab-embed-wrapper iframe {
    width: 100%;
}

@media (max-width: 768px) {
    .sketchfab-embed-wrapper iframe {
        height: 300px !important;
    }
}

.sketchfab-credit {
    font-size: 12px;
    margin: 8px 3px 0;
    color: #4a4a4a;
}

.sketchfab-credit a {
    color: #1CAAD9;
    font-weight: 600;
    text-decoration: none;
}

.sketchfab-credit a:hover {
    text-decoration: underline;
}

.swiffy-slider {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

#customize-thumbnails-gallery {
    height: 100%;
}

.slider-video-toggle {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 66px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #ffffff;
    color: #232323;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    z-index: 8;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.slider-video-toggle:hover {
    transform: translateY(-1px);
    border-color: #c9c9c9;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.slider-video-toggle:focus-visible {
    outline: 2px solid #a8a8a8;
    outline-offset: 2px;
}

.slider-video-toggle-back {
    position: static;
    width: 58px;
    height: 66px;
    background: #ffffff;
    color: #2d2d2d;
    border-color: #d3d3d3;
}

.slider-video-toggle .toggle-text {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
}

.slider-video-toggle i {
    font-size: 14px;
}

.slider-item-ratio .slider-container>*>* {
    object-fit: contain !important;
}

.slider-nav {
    opacity: 0.4 !important;
}

.prod-imagen {
    width: 100%;
    height: 250px;
    background-image: url('../../repos/images/a1_1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
    position: relative;
}

.prod-imagen.flipped {
    transform: rotateY(180deg);
}

.video-360-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    display: none;
}

.prod-detalles {
    width: 100%;
    max-width: 100%;
    padding: 0 5px;
    text-align: center;
}

.prod-categoria {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.prod-titulo {
    font-size: 22px;
    margin: 10px 0;
    color: #222;
    font-weight: 600;
}

.prod-descripcion {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center;
}

.prod-opciones {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prod-subtitulo {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.prod-botones {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.prod-botones button {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.prod-botones button:hover {
    background: #eee;
}

.prod-botones .boton-activo {
    background: #333;
    color: #fff;
    border-color: #333;
}

.prod-colores {
    display: flex;
    gap: 12px;
    margin: 10px 0;
    justify-content: center;
}

.prod-colores div {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.prod-colores div::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.prod-colores div:hover::after {
    border-color: #ccc;
}

.color-activo {
    border-color: #333 !important;
}

.color-activo::after {
    border-color: #333 !important;
}

#color-blanco {
    background-color: #fff;
}

#color-negro {
    background-color: #333;
}

.prod-color-nombre {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.loading-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #333;
    animation: spin 1s ease-in-out infinite;
}

.slider-container.loading-active {
    position: relative;
    min-height: 300px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-carga {
    padding: 20px;
    text-align: center;
    color: #d9534f;
}

.no-imagenes {
    padding: 20px;
    text-align: center;
    color: #777;
}

.img-fluid.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.img-fluid {
    opacity: 0;
}

.container-volver {
    margin-bottom: 20px;
    padding: 0 15px;
}

.volver-al-listado {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.volver-al-listado:hover {
    background-color: #e9ecef;
    color: #000;
    text-decoration: none;
}

.volver-al-listado i {
    font-size: 14px;
}

.volver-al-listado a {
    color: #333;
}

.prod-categoria {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.prod-categoria a {
    color: #525151;
    text-decoration: none;
    transition: color 0.3s;
}

.prod-categoria a:hover {
    color: #000000;
}

.prod-categoria .separador {
    margin: 0 5px;
    color: #999;
}

.prod-categoria .active {
    color: #7c848b;
    font-weight: 500;
}

.container-volver {
    margin-bottom: 20px;
    padding: 0 15px;
}

.volver-al-listado {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 30px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.volver-al-listado:hover {
    background-color: #e9ecef;
    color: #000;
    text-decoration: none;
}

/* Swiffy */
.slider-item-ratio-21x9 {
    --swiffy-slider-item-ratio: 14/9 !important;
}

.slider-nav-round .slider-nav::before,
.slider-nav-square .slider-nav::before {
    background-color: #ffffff00 !important;
}

/* Estilos para desktop */
@media (min-width: 992px) {
    .prod-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 60px;
    }

    .prod-imagen-container {
        flex: 1;
        max-width: 60%;
    }

    .prod-detalles {
        flex: 1;
        max-width: 40%;
        text-align: left;
        padding: 0;
    }

    .prod-opciones {
        align-items: flex-start;
    }

    .prod-botones {
        justify-content: flex-start;
    }

    .prod-colores {
        justify-content: flex-start;
    }

    .prod-color-nombre {
        display: inline-block;
        margin-left: 10px;
        margin-top: 0;
    }

    .prod-descripcion {
        text-align: left;
    }
}

/* Estilos para tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .prod-container {
        flex-direction: column;
    }

    .prod-imagen-container {
        max-width: 100%;
    }

    .prod-detalles {
        max-width: 100%;
    }

    .prod-categoria {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 15px;
        font-size: 10px;
        color: #666;
    }

    .prod-opciones {
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Estilos para mobile */
@media (max-width: 767px) {

    .slider-face-back iframe {
        height: 300px !important;
    }

    .prod-container {
        flex-direction: column;
    }

    .prod-imagen-container {
        height: auto;
        max-width: 100%;
    }

    .prod-detalles {
        max-width: 100%;
    }

    .h-100 {
        height: 130% !important;
        margin-top: 65px !important;
    }

    #customize-thumbnails-gallery {
        height: 50vh !important;
    }

    .prod-imagen-container {
        height: 50vh;
        min-height: 340px;
        margin-top: 30px;
    }

    .slider-face-back {
        padding: 0;
    }

    .seccion-prod {
        width: 100%;
        margin: 0px auto;
        padding: 20px;
        background-color: #fff;
        border-radius: 12px;
        font-family: 'Montserrat', sans-serif;
        box-sizing: border-box;
        /* margin-top: 70px; */
        max-width: 1300px;
        padding-top: 0px;
        padding-bottom: 0px;
        border-radius: 85px;
    }
}

#medida-null {
    display: none;
}

.card-comp {
    background: linear-gradient(135deg, #80B8B1 0%, #39524F 50%);
    color: white;
    border-radius: 7px;
    width: 100%;
    max-width: 1300px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    display: flex;
    flex-direction: column;
    height: auto;
    margin: 0 auto;
    margin-top: 50px;
    padding: 60px 20px;
}

.card-comp-desc {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0px !important;
    margin: 0 !important;
}

.h-100 {
    height: 100% !important;
    /* margin-top: -173px !important; */
}


.prod-youtube {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border: 2px solid #424242;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #424242;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.prod-youtube:hover {
    background: #424242;
    color: white;
}

.video-youtube-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-youtube-embed {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 70%;
}

.video-youtube-embed iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.close-youtube {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}