    html,
    body {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        font-family: Arial, sans-serif;
        background: #f5f5f5;
    }

    model-viewer {
        width: 100%;
        height: 100vh;
        --poster-color: transparent;
        background-color: #f5f5f5;
    }

    #ar-button {
        position: absolute;
        bottom: 190px;
        right: 25%;
        transform: translateX(-50%);
        background: #003c77;
        color: white;
        padding: 12px 24px;
        border: none;
        border-radius: 20px;
        font-size: 16px;
        cursor: pointer;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 10;
        transition: all 0.3s ease;
    }

    #ar-button:hover {
        background: #001e3f;
        transform: translateX(-50%) scale(1.05);
    }







    .slider {
        position: absolute;
        bottom: 90px;
        width: 100%;
        display: flex;
        justify-content: center;
        z-index: 10;
    }

    .slides {
        display: flex;
        background: rgba(255, 255, 255, 0.9);
        padding: 10px;
        border-radius: 40px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        overflow-x: auto;
    }

    .slide {
        flex-shrink: 0;
        width: 64px;
        height: 64px;
        margin: 0 8px;
        border-radius: 12px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        cursor: pointer;
        border: 3px solid transparent;
        transition: all 0.3s ease;
        background-color: #fff;
    }

    .slide:hover {
        transform: scale(1.1);
    }

    .slide.selected {
        border-color: #002b55;
        ;
        box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.3);

    }



    .model-info {
        position: absolute;
        top: 70px;
        left: 20px;
        background-color: rgba(255, 255, 255, 0.9);
        padding: 10px 16px;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    .info-icon {
        position: fixed;
        /* o absolute, según dónde lo pongas */
        top: 85px;
        left: 40px;
        cursor: pointer;
        z-index: 999;
    }

    .tooltip-text {
        visibility: hidden;
        opacity: 0;
        width: max-content;
        background-color: #333;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 4px 8px;
        position: absolute;
        z-index: 1;
        top: 10%;
        left: 500%;
        transform: translateX(-50%);
        transition: opacity 0.3s;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .info-icon:hover .tooltip-text,
    .info-icon:focus .tooltip-text {
        visibility: visible;
        opacity: 1;
    }


    .info-icon-img {
        width: 30px;
        height: 30px;
        vertical-align: middle;
    }






    .loading {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 16px 24px;
        border-radius: 8px;
        font-size: 18px;
        z-index: 100;
    }

    #backButton {
        position: fixed;
        top: 40px;
        left: 20px;
        z-index: 1000;
        background: #003c77;
        color: #ffffff;
        border: none;
        padding: 10px 15px;
        border-radius: 20px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }


    #goButton {
        position: fixed;
        top: 40px;
        left: 20px;
        z-index: 1000;
        background: #003c77;
        color: #ffffff;
        border: none;
        padding: 10px 15px;
        border-radius: 20px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }





    /* Modal base */
    .custom-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        font-family: Arial, sans-serif;
    }



    .custom-modal[hidden] {
        display: none;
    }

    /* Modal content */
    .custom-modal-content {
        background: white;
        padding: 30px 35px;
        border-radius: 30px;
        max-width: 400px;
        width: 90%;
        position: relative;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
        text-align: center;
    }

    /* Botón cerrar */
    .close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #555;
        transition: color 0.3s ease;
    }

    .close-btn:hover {
        color: #000;
    }

    #customRatingTitle {
        margin-bottom: 15px;
        font-weight: 700;
        font-size: 1.5rem;
        color: #222;
    }

    .custom-modal p {
        font-size: 1rem;
        margin-bottom: 20px;
        color: #444;
    }

    /* Contenedor de botones vertical */
    .rating-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 25px;
    }

    /* Botones estrellas */
    .rating-buttons button {
        font-size: 18px;
        cursor: pointer;
        background: #e0e0e0;
        border: none;
        border-radius: 30px;
        padding: 12px 24px;
        color: #333;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        font-weight: 600;
        transition: all 0.3s ease;
        user-select: none;
        text-align: left;
        white-space: nowrap;
        /* impide que el texto se divida */
        overflow-x: auto;
        /* scroll si no cabe */
        max-width: 100%;
    }

    /* Hover para botones estrellas */
    .rating-buttons button:hover {
        background: #e0e0e0;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

    /* Estado seleccionado */
    .rating-buttons button.selected {
        background: #003c77;
        color: white;
        box-shadow: 0 6px 14px rgba(66, 133, 244, 0.6);
    }

    /* Footer de modal */
    .modal-footer {
        text-align: right;
        margin-top: 10px;
    }

    /* Botones Cancelar y Enviar */
    #cancelCustomBtn,
    #submitCustomBtn {
        padding: 12px 24px;
        font-size: 16px;
        border-radius: 30px;
        cursor: pointer;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border: none;
        transition: all 0.3s ease;
        min-width: 120px;
        user-select: none;
        font-weight: 600;
        margin-left: 5px;
    }

    #submitCustomBtn {
        background: #003c77;
        color: white;
    }

    #submitCustomBtn:hover {
        background: #001e3f;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

    #cancelCustomBtn {
        background: #e0e0e0;
        color: #333;
    }

    #cancelCustomBtn:hover {
        background: #001e3f;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    /* Responsive: reducir padding horizontal en móviles */
    @media (max-width: 400px) {
        .rating-buttons button {
            padding: 12px 16px;
        }
    }


    /* Fondo oscuro y centrado */
#compatibilityModal,
#desktopModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    font-family: Arial, sans-serif;
}

/* Ocultar cualquier modal con hidden */
#compatibilityModal[hidden],
#desktopModal[hidden] {
    display: none;
}

/* Contenedor del modal */
.custom-modal-content {
    background: #fff;
    padding: 28px 32px;
    border-radius: 28px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Botones */
#acceptCompatibilityBtn,
#acceptDesktopBtn {
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    background-color: #003c77;
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

#acceptCompatibilityBtn:hover,
#acceptDesktopBtn:hover {
    background-color: #001e3f;
    box-shadow: 0 6px 14px rgba(66, 133, 244, 0.5);
}






