
/* Contenedor del modelo 3D */
.model-contenedor {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    padding: 10px;
    box-sizing: border-box;
}

.model-viewer {
    width: 100%;
    height: 100%;
    background-color: #dddddd;
    border-radius: 10px;
    --poster-color: #ffffff00;
}

/* Controles de zoom */
.model-zoom-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.model-zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: none;
    background: rgba(30,30,30,0.8);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.model-zoom-btn:hover {
    background: rgba(30,30,30,1);
    transform: scale(1.05);
}

.model-zoom-plus::after {
    content: '+';
}

.model-zoom-minus::after {
    content: '-';
}

/* Debug info */
.model-debug {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.8);
    color: lime;
    padding: 8px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 10px;
    max-width: 250px;
    z-index: 100;
}

/* Contenedor de controles */
.model-controles-contenedor {
    width: calc(100% - 20px);
    box-sizing: border-box;
    max-width: 900px;
    background: rgb(91 90 90 / 90%);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    gap: 25px;
    justify-content: space-around;
    flex-wrap: wrap;
    box-sizing: border-box;
    margin: 0px 10px;
}

/* Sección de colores */
.model-colores-seccion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.model-seccion-titulo {
    color: #ccc;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.model-colores-grid {
    display: flex;
    gap: 10px;
}

.model-color-btn {
    padding: 0;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.model-color-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.model-color-btn.active {
    border-color: #00ff00;
    box-shadow: 0 0 12px #00ff00;
}

.model-color-gold {
    background: #D4AF37;
}

.model-color-gray {
    background: #888888;
}

.model-color-white {
    background: #ffffff;
}

.model-color-black {
    background: #111111;
}

/* Sección de fondos */
.model-fondos-seccion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.model-fondos-grid {
    display: flex;
    gap: 10px;
}

.model-fondo-btn {
    border-radius: 6px;
    width: 45px;
    height: 45px;
    font-size: 16px;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-fondo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.model-fondo-btn.active {
    border-color: #00ff00;
}

.model-fondo-bright {
    background: #ffffff;
    color: #333 !important;
}

.model-fondo-normal {
    background: #888888;
}

.model-fondo-dark {
    background: #111111;
}

/* Marcas de agua DECOFES */
.watermark {
    position: absolute;
    color: white;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 28px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    opacity: 0.4;
    z-index: 5;
    pointer-events: none;
    user-select: none;
    transform: rotate(45deg);
    white-space: nowrap;
}

.watermark-1 {
    top: 15%;
    left: 10%;
}

.watermark-2 {
    top: 15%;
    right: 10%;
}

.watermark-3 {
    bottom: 15%;
    left: 10%;
}

.watermark-4 {
    bottom: 15%;
    right: 10%;
}

.watermark-5 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

@media (max-width: 600px) {
    .model-contenedor {
        height: 400px;
    }
    
    .model-color-btn, .model-fondo-btn {
        width: 30px;
        height: 30px;
    }
    
    .model-seccion-titulo {
        font-size: 10px;
    }
    
    .watermark {
        font-size: 20px;
    }
    
    .watermark-1, .watermark-2 {
        top: 10%;
    }
    
    .watermark-3, .watermark-4 {
        bottom: 10%;
    }
    
    .watermark-1, .watermark-3 {
        left: 5%;
    }
    
    .watermark-2, .watermark-4 {
        right: 5%;
    }
}