*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}
:root{
    --border:#dee2e6;
    --border2:#777777;
    --gray:#f1f1f1;
    --green-fill: #5e9d5e;
    --green-border: #386F3B;
    --shadow: 1px 5px 10px rgb(0 0 0 / 15%);
    --shadowLight:rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    --primary-color: #007BFF;
    --secondary-color: #6C757D;
    --success-color: #28A745;
    --danger-color: #DC3545;
    --warning-color: #FFC107;
    --info-color: #17A2B8;
    --light-color: #F8F9FA;
    --dark-color: #343A40;

    --main:#9ebf1a;
    --ccc: #ccc;
    --main-hover: #bada2a;

}
body{
    background:#fafafa;
    /* Para probar que el color del lienzo sea translucido u opaco */
    /* background-image: url("https://picsum.photos/id/1025/600/400"); */
    
}
ul{
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.user-select-none {
    user-select: none;          /* estándar moderno */
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE/Edge */
  }

 .padding-top-disenio{
	/* Para quitar el margen que quedo despues de ocultar el header*/
	margin:-40px 0 !important;
} 
/* section{
    padding:0;
	
}*/
.size-texts{
    font-size: 12px;
}
/* col flexbox para la interfaz de usuario */
.col-sideLeft{
	width:22%;
    height:100vh;
    border-radius:7px;
    border:1px solid var(--border);
}

.col-main{
	/* width:62%; */
	width:78%;
    display:flex;
    flex-direction:column;
    /* justify-content:center; */
    /* align-items:center; */
    gap:10px;
}
.container-indicador-canva {
    width: 100%;
    overflow-x: auto; /* Añade un scroll horizontal si es necesario */
    white-space: nowrap; /* Evita el salto de línea del contenido */
    padding: 0 0 30px;
    /* display:flex;
    flex-direction:column; */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding:40px 0;
    /* Para aumentar el alto de la zona de edicion del canva */
    height:90vh;
    min-height:500px;
}

#zoom-wrapper {
    transform-origin: top left;
    display: flex;
    /* border:1px solid blue; */
    flex-direction: column;
    align-items: center;
}


.mensaje-scroll{
    display:none;
}
.container-indicador-canva ul{
    display:flex;
    list-style: none;
    gap:30px;
    color:var(--green-border);
    font-size:1.1rem;
}
.col-rightSide{
	/* width:16%; */
	width:100%;
    /* border:1px solid red; */
    padding: 15px 10px;
    display:flex;
    flex-wrap:wrap;
    justify-content:space-evenly;
    /* flex-direction: column; */
    gap:50px;
    border-radius:7px;
    position:relative;  
    background: #fff;
    border:1px solid var(--border);
    transition: all .3s ease-in-out;
    /* position:relative; */
}
.col-rightSide.reduce{
    padding:0 10px;
    justify-content:start;
    transition: all .3s ease-in-out;
    background: transparent;
    border:none;
    position:relative;
    gap:25px;
}
.col-rightSide.reduce h5{
    display: none;
}

.col-rightSide.reduce .btn-rightOptions{
    width:30;
    height:35px;
}

.container-btn-reduce{
    position:absolute;
    bottom:0;
    right:0;
}
.btn-reduce, #reset-view{
    background:#fff;
    width:30px;
    height:35px;
    border:1px solid var(--border);
    border-radius: 4px;
    padding: 3px 2px;

    box-shadow:var(--shadowLight);

}
#reset-view{
    position:relative;
}
#reset-view img{
    width:100%;
}

.zoom-controls{
    
    flex-direction: row;
    z-index:4;
    display: flex;
    gap:10px;
}
.zoom-controls .btn{
    box-shadow:var(--shadowLight);

}

.col-rightSide.reduce .zoom-controls{
    position:absolute;
    top:100%;
    flex-direction: column;
    gap:2px;
    
}
.btn-reduce i{
    font-size:1.2rem;
}


.nombre-producto{
    width:100%;
    text-align: center;
    margin-bottom:-29px;
    font-size:1.2rem;
    
}
.col-rightSide .nombre-reduce{
    display: none;
}
.col-rightSide.reduce .nombre-producto.nombre-reduce{
    /* margin-bottom:-50px; */
     margin-bottom:0;
    
    width:fit-content;
    display:block;
    /* max-width: 400px; */
    font-size:1rem;
}
.nombre-producto small{
    font-size:.9rem;
}
.col-rightSide.reduce .nombre-amplied{
    display:none;
}
/* --------------------------- Para el iframe --------------------------- */
.inner-header, .footer{
    display:none !important;
}
body.js{
    padding-bottom:130px;
    height:fit-content;
}
/* --------------------------- LeftSideBar --------------------------- */

.sideLeft{
    padding:0;
    max-height: 700px;
    overflow-y: auto; /* Agrega una barra de desplazamiento vertical si es necesario */
}
::-webkit-scrollbar {
    width: 7px;
}
/* Estilo para el riel de la barra de desplazamiento en navegadores webkit */
::-webkit-scrollbar-track {
    background-color: var(--gray); /* Color del riel */
}

/* Estilo para el mango de la barra de desplazamiento en navegadores webkit */
::-webkit-scrollbar-thumb {
    background-color: #ccc; /* Color del mango */
}

/* Estilo para el fondo del mango cuando está siendo arrastrado en navegadores webkit */
::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Color del mango cuando es hover */
}
/* Estilo específico para el scroll horizontal */
::-webkit-scrollbar:horizontal {
    height: 7px; /* Ajusta según sea necesario */
}

/* Estilo específico para el mango horizontal */
::-webkit-scrollbar-thumb:horizontal {
    background-color: #ccc; /* Color del mango horizontal */
}

/* Estilo específico para el fondo del mango horizontal cuando está siendo arrastrado */
::-webkit-scrollbar-thumb:horizontal:hover {
    background-color: #555; /* Color del mango horizontal cuando es hover */
}
.sideLeft .back-link{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafafa;
    border-bottom:1px solid var(--border);
    border-right:1px solid var(--border);
    border-radius: 1px;
}
.sideLeft .back-link .back-href{
    /* padding:0 20px; */
    display: flex;
    justify-content: center;
    /* border:1px solid red; */
    width:100%;
}

.back-link img{
    width: 35px;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* boton volver atras en celular */
.contenedor-footer-sideLeft{
    display: flex;
    justify-content: center;
    position:relative; 
}

.back-link.back-responsive{
    position:absolute;
    top:0;
    left:0;
    background: #fafafa;

    display:none;
    border:1px solid #ccc;
    padding:0 10px;
}

/* -------Boton para aumentar y reducir el alto --------- */
.resize-handle {
    /* position: absolute; */
    /* bottom: 0; */
    /* left: 50%; */
    display:none;
    
    background:#fff;
    width:30px;
    height:35px;
    border:1px solid var(--border);
    border-radius: 4px;
    padding: 3px 2px;

    cursor: ns-resize;
}
.resize-handle img {
    user-select: none; /* No se selecciona */
    pointer-events: none; /* El click pasa al botón, no a la imagen */
    width: 100%;
}

.bloq-side, .bloq-3d{
    /* border:1px solid var(--border); */
    padding:10px 2px;
    display:flex;
    flex-wrap:wrap;
    flex-direction:column;
    align-items:center;
    justify-content:center !important;
    cursor:pointer;
    transition:all .4s ease;
}
.bloq-side:hover{
    background:var(--gray) !important;
    transition:all .4s ease;
}

.bloq-side h6, .bloq-3d h6{
    text-align:center;
    font-size:.8rem;
    /* font-weight:500; */
}
.bloq-side .img-bloq-side, .bloq-3d .img-bloq-side{
    width:30px;
    /* border:1px solid #ccc; */
}
.bloq-3d .img-bloq-side{
    width:80%;
}
.bloq-side .img-bloq-side img, .bloq-3d .img-bloq-side img{
    width:100%;
}
.bloq-3d{
    padding:10px 2px ;
}
.inner-3d{
    padding:2px 5px;
    border-radius: 7px;
    box-shadow:var(--shadowLight);
    background: var(--main);
    display: flex;
    flex-direction: column;
    align-items: center;
    border:none;
    color:#fff;
    /* Para ocultarlo en desktop */
    display:none;
}
.inner-3d.right-section{
    /* Para mostrarlo en desktop */
    display:flex;
    flex-direction:row;
    padding: 0 20px;
    gap:5px;
    align-items: center;
    min-height:40px;
    
}
.inner-3d.right-section .img-bloq-side{
    width:30px;
}
.inner-3d.right-section .img-bloq-side img{
    width:100%;
}
.inner-3d.right-section .label-btn-desktop{
    font-weight: normal;
    font-size:1.1rem;
    margin:0;
}

.label-btn-mobile{
    display:none;
}
/* -------------- contenido-side -------------- */

.contenido-side{
    padding: 20px 0;
    height: 95vh;
    /* width: 100%; */
    max-height: 95vh;
    overflow-y: auto; /* Agrega una barra de desplazamiento vertical si es necesario */
    overflow-x: hidden !important;
    z-index: 1;
}

.contenido-side h4{
    font-size:1.1rem;
}

/* -------------- Right-side -------------- */
.col-rightSide h4, .col-rightSide h5{
    text-align:center;
}
.col-rightSide h5{
    font-size:1rem;
    font-weight: normal;
}
.col-rightOpciones{
    display: flex;
    flex-wrap:wrap;
    gap:10px;
    /* varsion horizontal */
    justify-content:center;
}
.btn-rightOptions{
    width:30px;
    height:35px;
    display:flex;
    justify-content:center;
    align-items:center;
    padding: 3px 2px;
    border:1px solid var(--border);

    background-color:#fff;
    font-size:1.25rem;
    box-shadow: var(--shadowLight);
    transition:all .4s ease;
}
.btn-rightOptions:disabled{
    border:1 solid var(--border);
}

.btn-rightOptions img{
    width:100%;
}
.btn-rightOptions:hover{
    background: var(--gray);
    transition:all .4s ease;
}

.right-functions.vaso3D-section{
    display:flex;
    flex-direction:column;
    align-items:center;
}
.col-rightSide.reduce .right-functions.vaso3D-section{
    flex-direction:row;
    align-items:center;
}
/* --------------------------- Colores del vaso --------------------------- */
.color-table {
    display: none;
    /* position: absolute; */
    border: 1px solid #ccc;
    background-color: white;
    z-index: 1000;
}
.accordion{
    min-width:150px;
    width:90%;
    margin:auto;
}

.accordion-item {
    border-top: 1px solid var(--border) !important;
    margin-bottom:20px;
    background-color: #fff !important;
}
.accordion-item .acordion-btnTranslucido{
    flex-direction:column;
}
.accordion-item .acordion-btnTranslucido span{
    font-size:.8rem;
    /* font-weight:bold; */
}

  /* Cambia el color de fondo de los botones del acordeón cuando están activos */
.accordion-button:not(.collapsed) {
    background-color: #fff !important;
}

.accordion-button{
    padding:5px 10px;
    box-shadow: var(--shadowLight);

}
.accordion-body .option-color{
    display:flex;
    border:1px solid var(--gray);
    justify-content:center;
    padding:10px 0;
    cursor:pointer;
    transition:all .4s ease;
}
.accordion-body .option-color:hover{
    transition:all .4s ease;
    background: var(--gray);
}
.option-color .options-container-personalized{
    width:80%;
    display:flex;
    /* border:1px solid red; */
    align-items:center;
}
.option-color .options-container-personalized p{
    margin-left:15px;
}

.accordion-body .option-color .color-title{
    margin-bottom:0;
}
/* CSS para dar estilo a los elementos desactivados*/
.accordion-button.disabled {
    pointer-events: none; /* Evita que el elemento sea clickeable */
    opacity: 0.3; /* Puedes ajustar la opacidad según tus necesidades */
}
/* ------------------------------- Colores del Diseño -------------------------------- */
/* .custom-tooltip {
    --bs-tooltip-bg: var(--green-fill);
    --bs-tooltip-opacity:1;
    border:1px solid #ccc;
} */
.table-color-actual{
    width:100%;
    /* height:50px; */
    display:flex;
    /* justify-content: center; */
    gap:10px;
}
.color-cube{
    width:20px;
    height:20px;
    border:1px solid var(--border2);
}


/* Estilos para el accordion-body */
/* .accordion-body {
    max-height: 200px; 
    overflow-y: auto; 
    padding:0;
} */

/* Cuadro donde se muestra el color global de los elementos */
#color-actual{
    width:50px;
    height:40px;
    border:1px solid #ccc;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;

}

#color-table-globales td{
    width:30px; 
    height:30px;
}
.container-paleta-color{
    margin-top:20px;
}
.container-paleta-color h6{
    width:100%;
}
.container-paleta-color, .colores-clasicos, 
.colores-deModa, .colores-metalicos, 
.colores-miscelaneos, .colores-bd{
    /* development design */
    margin-bottom:20px;

    display:flex;
    flex-wrap:wrap;
    /* justify-content: space-around; */
    gap:10px;

}

.paleta-color{
    position: relative; /* para que el tooltip se posicione respecto a este */
    display: inline-block;
    width:50px;
    height:40px;
    border:1px solid #ccc;
    border-radius: 5px;
    cursor:pointer;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;

}
.container-transparencia{
    background-image: url('/images/png-background.webp');
    
}

/* Tooltip global que se inyecta en <body> */
.tooltip-color {
    position: fixed;
    transform: translateX(-50%);
    background: var(--green-fill);
    color: #fff;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none; /* <- no bloquea mouseleave */
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.1s ease; /* más rápido */
}

.tooltip-color::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: var(--green-fill) transparent transparent transparent;
}

.color-table td {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Switch para cambiar entre modo individual y global*/
.container-msg-switch{
    display:flex;
    flex-direction: column;
}
.container-msg-switch h6{
    font-size:1rem;
    /* font-weight: 400; */
}
.msg-switch{
    text-align:center;
}
/* The switch - the box around the slider */
.switch {
    font-size: 16px; /* Ajusta el tamaño de la fuente según tus necesidades */
    position: relative;
    display: inline-block;
    width: 2.5em; /* Ajusta el ancho según tus necesidades */
    height: 1.5em; /* Ajusta la altura según tus necesidades */
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cc1100;
    transition: .4s;
    border-radius: 8px; /* Ajusta el radio de la esquina según tus necesidades */
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.1em; /* Ajusta la altura según tus necesidades */
    width: 1.1em; /* Ajusta el ancho según tus necesidades */
    border-radius: 6px; /* Ajusta el radio de la esquina según tus necesidades */
    left: 0.2em; /* Ajusta la posición izquierda según tus necesidades */
    bottom: 0.2em; /* Ajusta la posición inferior según tus necesidades */
    transform: rotate(270deg);
    background-color: rgb(255, 255, 255);
    transition: .4s;
}

.switch input:checked + .slider {
    background-color: #21cc4c;
}

.switch input:checked + .slider:before {
    transform: translateX(0.9em); /* Ajusta la posición X según tus necesidades */
}
/* --------------------------- Textos --------------------------- */
#nuevo-texto, .btn-general{
    background:var(--main);
    color:#fff;
    padding:5px 0;
    border:1px solid var(--green-fill);
    font-weight: 600;
    transition: all .4s ease;
}
#nuevo-texto{
    border:none;
    width:100%;
    /* min-width */

}
#ver3DBtn.btn-general{
    width:100%;
}
.btn-general.btn-red{
    background: var(--danger-color);
}
#btn-medidas{
    width:100%;
    border-radius:0;
}
#btn-medidas:hover{
    color:#fafafa;
}
/* Estilo específico para botones deshabilitados */
.btn-general[disabled],
.btn-general.btn-red[disabled] {
  background-color: #6C757D; /* Color gris para botones deshabilitados, ajusta según sea necesario */
  color: #8C8C8C; /* Color del texto para botones deshabilitados, ajusta según sea necesario */
}
#nuevo-texto:hover, .btn-general:hover{
    background:var(--main-hover);
    transition: all .4s ease;
}
.col-texts{
    display:flex;
    flex-direction:column;
    gap:10px;
}
#fontSizeSelect {
    font-size: 14px;
}

#fontSizeSelect option {
    /* Para disminuir el largo de la lista desplegable del select */
    font-size: 12px;
}

#text-editor{
    width: 100%;
    height: 150px;
    padding:5px 10px;
}
.btns-fontStyle{
    display:flex;
    justify-content:space-around;
    gap:5px;
}
/* .container-fonts{
    display:flex;
    align-items:end;
} */
.fontStyleBtn{
    padding: 3px 10px;
    border:none;
    background-color:#fff;
    font-size:1.25rem;
    box-shadow: var(--shadowLight);
    /* margin:10px auto; */
}
#cursivaBtn{
    font-style:italic;
}
#negritaBtn{
    font-weight:bold;
}
.btnActivated{
    background-color:lightblue;
}
/* --------------------------- Seccion de subir imagen --------------------------- */

/* Estilo personalizado para el botón de input file */
/* #image-upload {
    display: inline-block;
    color: transparent;
    border: none;
    cursor: pointer;
} */

/* Oculta el texto completamente */
/* #image-upload::-webkit-file-upload-button {
    visibility: hidden;
    display:none !important;
    width:200px !important;
}
 */

/* Estilo opcional para el texto alrededor del botón */
/* #file-label {
    width:200px;
    color:white;
    background:#4CAF50;
    border:1px solid #000;
} */
/* --------------------------- Descargar como PDF --------------------------- */

#download-pdf {
    background: var(--green-fill);
    border: 1px solid var(--gree-border);
    box-shadow:var(--shadowLight);
}

.button {
    position: relative;
    width: 160px;
    /* height: 40px; */
    padding:7px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: 2px solid #17795E;
    background-color: #209978;
    overflow: hidden;
}

.button,
.button__icon,
.button__text {
    transition: all 0.3s;
}

.button .button__text {
    /* transform: translateX(25px); */
    color: #fff;
    font-weight: 600;
}

.button .button__icon {
    position: absolute;
    transform: translateX(113px);
    height: 100%;
    width: 39px;
    background-color: #17795E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button .svg {
    width: 20px;
    fill: #fff;
}

.button:hover {
    background: #17795E;
}

.button:hover .button__text {
    color: transparent;
}

.button:hover .button__icon {
    width: 100%;
    transform: translateX(-10px);
}

.button:active .button__icon {
    background-color: #146c54;
}

.button:active {
    border: 1px solid #146c54;
}

/* --------------------------- Medidor --------------------------- */

#medidor-content{
    height:600px;
}
/* #select-medidas option{
    border:1px solid red !important;
    height:200px !important;
    font-size:.8rem !important;
} */
.nice-select{
    width:90%;
}
.nice-select ul{
    border:1px solid var(--gray);
    /* height:300px; */
    color:#000 !important;
    display:flex !important; 
    flex-direction:column !important;
    overflow-y: auto; /* Habilita el desplazamiento vertical cuando el contenido excede la altura máxima */
    width:200px;
}
.nice-select ul li{
    border:1px solid var(--gray);
    font-size:.9rem;
    width:90% !important;
    padding:0;
    display:flex;
    justify-content:center;
    align-items:center;
}
/* --------------------------- Objeto Canva (Lienzo) --------------------------- */

#canvas{
    /* Por alguna razon no me deja poner width y height*/
    /* border: 1px dashed var(--border2); */
    background:#fff;
    box-shadow: var(--shadowLight);
    /* width:100%;
    height:400px; */
}
.color-palette {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.color-button {
    width: 30px;
    height: 30px;
    cursor: pointer;
    border: 1px solid #ccc;
}
/* Para centrar el canva */
.container-canva{
    display:flex;
    gap:20px;
    cursor:default;
}
#canvasSecundario {
    display: block;
    background:#fff;
    box-shadow: var(--shadowLight);
}

/*-------------------------- GALERIA ----------------------------*/


.galeria-container {
    position: relative;
}

.galeria {
    display: flex;
    /* transition: transform 0.5s ease; */
    padding: 15px 0;
    padding-right:20px;
    gap:10px;
    overflow-x: hidden; /* oculta el scroll */
    scroll-behavior: smooth !important; /* animación suave */

    user-select: none; /* Evita selección de texto al arrastrar */
    -webkit-user-select: none;
    -ms-user-select: none;
    cursor:grab;
}

.galeria-item {
    flex: 0 0 auto;
    transition: transform 0.5s ease;
    background: var(--gray);
    padding:10px 13px;
    border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    cursor:pointer;
}

.galeria-prev,
.galeria-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 44px;
    color: var(--dark-color);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 99;
}

.galeria-prev {
    left: 0;
}

.galeria-next {
    right: 0;
}
#canvas3DContainer {
    width: 400px;
    height: 400px;
  }



  /* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    /* top: 10%; */
    width: 100%;
    height: 100%;
    padding-right: 1% !important;
    margin-left: 0px !important;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
    z-index: 100;
  }
  
  .modal-content {
    margin: 5% auto;
    padding: 20px;
    width: 80%;

  }
  
  .close {
    transform:translateY(100px) translateX(-100px);
    /* transform:; */
    color: #ffffff;
    float: right;
    font-size: 40px;
    font-weight: bold;
    opacity:1 !important;    
  }
  
  .close:hover,
  .close:focus {
    color: var(--green-fill);
    text-decoration: none;
    cursor: pointer;
  }
.btns-modal-3d{
    position:fixed;
    width:100%;
    left:0;
    flex-wrap:wrap;
    flex-direction:column;
    /* gap:20px; */

}
.aviso-modal{
    padding:5px;
    width:100% !important; 
}
.content-btn{
    display:flex;
    justify-content:center;
    gap:20px;
}

/*-------------------------HOVER DE BOTON-------------------*/

.btn3d {
    --previusColor: #00A97F;
    --color: var(--green-fill);
    --color2: rgb(10, 25, 30);
    padding: 0.4em 1.75em;
    background-color: transparent;
    border-radius: 6px;
    border: .3px solid var(--color);
    transition: .5s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    font-weight: 300;
    font-size: 17px;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    text-transform: uppercase;
    color: var(--color);
   }
   
   .btn3d::after, .btn3d::before {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    transform: skew(90deg) translate(-50%, -50%);
    position: absolute;
    inset: 50%;
    left: 25%;
    z-index: -1;
    transition: .5s ease-out;
    background-color: var(--color);
   }
   
   .btn3d::before {
    top: -50%;
    left: -25%;
    transform: skew(90deg) rotate(180deg) translate(-50%, -50%);
   }
   
   .btn3d:hover::before {
    transform: skew(45deg) rotate(180deg) translate(-50%, -50%);
   }
   
   .btn3d:hover::after {
    transform: skew(45deg) translate(-50%, -50%);
   }
   
   .btn3d:hover {
    /* color: var(--color2); */
    color: var(--light-color);
   }
   
   .btn3d:active {
    filter: brightness(.7);
    transform: scale(.98);
   }

   /*------------------------------UPLOAD IMAGE-------------------------------------*/

   .upload-image {
    border: none;
    padding: 0.75rem 1.5rem;
    background-color: #00A97F;
    color: #ffffff;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
    align-items: center;
    border-radius: 0.5rem;
    user-select: none;
    gap: 0.75rem;
    box-shadow: 0 4px 6px -1px #488aec31, 0 2px 4px -1px #488aec17;
    transition: all .6s ease;
    width:100%;
  }
  
  .upload-image:hover {
    box-shadow: 0 10px 15px -3px #488aec4f, 0 4px 6px -2px #488aec17;
  }
  
  .upload-image:focus,.upload-image:active {
    opacity: .85;
    box-shadow: none;
  }
  
  .upload-image svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .bold-text{
    font-weight: bold;
  }

.zoomable-image {
    cursor: pointer;
    width: 60px;
    transition: transform 0.3s ease-in-out;
}
.json.zoomable-image{
    width:140px;
}

.galeria-item:hover .zoomable-image {
    transform: scale(1.1); 
}

/*-----------------------BOTON DE MOVIL SWITCH-------------------------*/
.toggle {
    --bg-toggle: #252524;
    --bg-circle: #B7C13E;
    width: 120px;
    height: 60px;
    background-color: var(--bg-toggle);
    box-shadow: 0 .3rem 5rem 0 rgba(125, 125, 125, 0.25);
    border-radius: 4rem;
    display: flex;
    align-items: center;
    padding: 0 .3rem;
    transition: background-color 400ms;
  }
  
  .toggle__circle {
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-color: var(--bg-circle);
    border-radius: 50%;
    position: relative;
    transition: margin 400ms ease-in-out, background-color 1000ms;
  }
  
  .toggle__circle::after,
  .toggle__circle::before {
    content: '';
    position: absolute;
    background-color: var(--bg-toggle);
    bottom: 118%;
    transform-origin: bottom left;
  }
  
  .toggle__circle::before {
    width: 15px;
    height: 25px;
    left: 32%;
    border-radius: 0% 100% 0% 100% / 0% 27% 73% 100%;
    transform: translateX(-70%) rotate(-2deg);
  }
  
  .toggle__circle::after {
    width: 25px;
    height: 30px;
    left: 48%;
    border-radius: 100% 0% 100% 0% / 100% 0% 100% 0%;
    transform: rotate(-20deg);
  }
  
  #burger-btn:checked + .toggle > .toggle__circle {
    margin-left: calc(120px - (.3rem * 2) - 50px);
  }
  
  #burger-btn:checked + .toggle {
    --bg-toggle: #B7C13E;
    --bg-circle: #252524;
  }


.burger-menu {
    display: none;
}

.show-menu {
    display: none;
}
/* @media screen and (max-width: 768px) {
    .col-sideLeft {
        display: none;
    }

    .burger-menu {
        display: block;
        position: absolute;
        top: 10%;
        z-index: 7;
    }

    .show-menu {
        display: block;
    }
} */

/*-------------------COLOR ORIENTACION -----------------------*/

.lado-1, .lado-2, 
.lado-3, .lado-4 {
    background-color: #fff; 
    color: var(--dark-color); /* Texto en color negro */
    border:1px dashed var(--border2);
    font-size:1.2rem;
}

/*-----------------------BUTTONS MODAL 3D-----------------------*/
.option-btn {
    background-color: #f2f2f2;
    border: none;
    color: black;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 8%;
}

.option-btn.active {
    background-color: #B7C13E;
    color: white;
}


/* ------------------------ seccion convertir img a svg ------------------------ */
.subir-archivo-content{
    overflow-x:auto;
}
#reduceSvg{
    width:150px !important;
    /* display:block; */
    /* border:1px solid red; */
    padding:20px 0 !important;
    height:fit-content;
    z-index:2 !important;
    cursor:pointer;
    margin:auto;
}
#reduceSvg svg{
    width:100% !important;
    height:fit-content !important;
    padding:0 !important;
    z-index:1 !important;
    cursor:pointer !important;
    box-shadow: 0 0 40px 10px rgba(0, 255, 0, 0.5) !important;

}
.color-want, 
.color-change,
.footer-btn-wrapper{
    display:none !important;
    
}

.browse-icon{
    display:none !important;
}

.btn-wrap{
    max-width:180px;
    background-color:var(--green-fill) !important;
    color:#fff !important;
    padding: 15px;
    border-radius:10px;
    border: #fff !important;
}
.browse-btn{
    display: flex;
    color:#fff !important;
    background:var(--green-fill);
}
.browse-btn:hover{
    display: flex;
    color:#fff !important;
    background:var(--green-border)!important;
}
.browse-text{
    display: none;
}
.files-dropzone-list{
    text-align: center !important;
}
.signal-red{
    color: #fafafa;
    /* font-weight: bold; */
}
.enlace_tutorial_texto{
    font-size:1.05rem;
}
.enlace_tutorial{
    color:var(--danger-color);
    font-style: italic;
}
#canvas-container .signal-red{
    color:var(--danger-color);
    font-weight: normal;
    font-size:.9rem;
}
#canvas-container{
    min-height:750px;
    overflow:hidden;
    cursor:grab;
}
/* ---------------- Boton para subir imagen png ---------------- */
#btnSubir{
    padding:15px;
    max-width: 170px;
    border-radius: 10px;
    color:var(--bs-white);
    background-color: var(--green-fill);
    border:none;
}
#previewImg{
    box-shadow: 0 0 40px 10px rgba(0, 255, 0, 0.5) !important;
}


/* ------------------------ Boton para compartir diseño ------------------------ */


.container3dClass{
    background:#212121;
    background-image:linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('/frontend/img/personalizacion_vasos/fondo-eco-verde.png');
    /* ecoingenio-logo2-green.webp */
    background-repeat: repeat;
    background-size:85%;
    /* border:1px solid red; */
    width:100%;
    height:600px;
    /* margin:0 30px; */
}
.container-share3D{
    display: flex;
    flex-direction: column;
    gap:20px;
    padding: 20px 0;
}
.canva-modelo3d{
    padding:40px 0 !important;
    display:flex;
    justify-content:center;
}
.logo-ecoingenio3d{
    position:fixed;
    top:0;
    left:0;
    /* border:1px solid red; */
    background:#fafafa;
    z-index:10;
    padding:3px;
}
.logo-ecoingenio3d img{
    width:180px;

}
.subtitulo3d p{
    text-align:center;
    font-size:1.1rem;
}

/* box design */
/* .box-design{
    padding:
} */
.design-column{
    background-color:var(--bs-white);
    box-shadow: var(--shadowLight);
    position:relative;
    border-radius:10px;
}
.Content3D{
    position:relative;

}
.box-design{
    border-bottom:1px solid var(--border);
    padding: 20px 0;
    /* z-index:0; */
}
.box-design .paleta-color{
    width:40px;
    height:30px;
}

.btn-hidden{
    background:var(--bs-white);
    box-shadow: var(--shadowLight);
    width:fit-content;
    position:absolute;
    top:0;
    left:20px;
    z-index:2;
}

.aviso-design {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 2;
    font-size: 0.95rem;
    background: #e9f7ef;
    border-left: 4px solid #28a745;
    color: #2e7d32;
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
}
.aviso-design span {
    color: #1b5e20;
    font-weight: 600;
}
/* ------------------------- botones de importar/exportar json canva ------------------------ */
.jsonBtns{
    width:30px;
}
/* ===== CSS para modal JSON (usa los IDs/clases que tenés) ===== */
#jsonModal {
    display: none; /* oculto por defecto */
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    background: rgba(0,0,0,0.45);
    z-index: 10; /* tal como pediste */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* cuadro interior */
#jsonModal .modal-content {
    width: min(640px, 92%);
    max-width: 640px;
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    position: relative;
    box-sizing: border-box;
    max-height: 80vh;
    overflow-y: auto;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* X de cierre (estilo botón plano) */
.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    background: transparent;
    border: none;
    padding: 6px;
    border-radius: 6px;
    transition: background .12s ease, color .12s ease;
    user-select: none;
}

/* hover X */
.modal-close:hover {
    background: rgba(0,0,0,0.06);
    color: #000;
}

/* Título */
#jsonModal h3 {
    margin: 6px 0 12px 0;
    font-size: 18px;
    color: #111;
}

/* input file estilo (mejor legibilidad) */
#jsonModal input[type="file"] {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #e3e3e3;
    background: #fafafa;
    font-size: 14px;
    color: #222;
}


#abrirModalJSON{
    border:none;
}


/* contenido pequeño dentro del modal: centrado y con espacio */
#jsonModal .modal-content > * + * {
    margin-top: 12px;
}

/* responsive: en pantallas muy pequeñas, menos padding */
@media (max-width: 420px) {
#jsonModal .modal-content {
    padding: 14px;
}
.modal-close { top: 8px; right: 8px; }
}

#jsonModal {
    display: none; /* MUY IMPORTANTE */
}

.btn-jsons{
    gap:4px;
    padding: 4px;
}

#btnCargarJSON{
    background: var(--main);
    color:var(--bs-white);
    padding:5px 0;
    border:none;
    border-radius:7px;
}
/* =================== Footer ============================ */
footer{
    display:flex;
    justify-content: center;
    
}
footer a{
    text-decoration: none;
    color:var(--green-border);
}
footer p{
    /* border:1px solid #ccc; */
    text-align: center;
    position: relative; /* o fixed si querés que siempre esté visible */
    z-index: 10; /* mayor que el container */
}


/* ================= pagina de modelo3d ==================== */
.row-btns-3d{
    display:flex;
    justify-content:center;        
}
.left-modelo3d-functions{
    width: 80%;
    /* border:1px solid #ccc; */
    display:flex;
    justify-content: end;
    padding: 0 150px;
}
.left-modelo3d-functions .option-btn{
    height:fit-content;
}
.right-functions.modelo3d{
    width: 100%;
    display:flex;
    /* flex-direction:column; */
    /* border:1px solid #ccc; */
    justify-content: space-around;
    gap:10px;
}

.btns-pdf-downloads{
    display:flex;
    /* flex-direction:column; */
    gap:15px;
}

.btn-ficha{
    background-color:var(--bs-white);
    color:var(--main);
    font-weight: 500;
    border:1px solid var(--border);
    transition:all .3s ease-in-out;
    box-shadow: var(--shadowLight);
}

.btn-ficha:hover{
    background-color: var(--main);
    color:var(--bs-white);
    transition:all .3s ease-in-out;
}

#whatsapp-share{
    padding:8px;
    background:#128c7f;
    color:#fff;
    /* border-radius:5px; */
    text-decoration:none;
    /* font-weight:bold; */
    height:fit-content;
    transition:all .3s ease-in-out;
    box-shadow: var(--shadow);
}
#whatsapp-share:hover{
    background:#128C7E;
    transition:all .3s ease-in-out;
}
.wa-logo{
    width:20px;
}

/* ------------------------------ Modal 3D ---------------------------------- */

/* Fondo oscuro al abrir modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999; /* Fondo */
}

/* Caja del modal */
.modal3D {
    background: #fafafa;
    padding: 10px;
    border-radius: 10px;
    min-width: 300px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
    z-index: 1000; /* Encima del fondo */
}

/* Botón cerrar (X) */
.modal-close {
    position: absolute;
    padding:6px 7px 3px;
    top: 0px;
    right: 0px;
    background: #fff;
    border: 1px solid #ccc;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
    z-index: 2;
}

/* Animación de entrada */
@keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Botón abrir modal */
.simulacion-modelo{
    width:500px;
    height:500px;
    border-radius:7px;
    /* border:1px solid #ccc; */
    background-color: #fafafa;
    /* background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.25)),
    url('/images/simulacion_fondo.webp'); */
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url('/images/fondo-custom2.webp');
    background-size: contain;
    display:flex;
    flex-direction: column-reverse;
    position:relative;

}

/* boton de compartir 3d */
#canvasForm{
    position:relative;
    /* border:1px solid red; */
    display:flex;
    justify-content: center;
}
.container-btn-modelo3d{
    position:absolute;
    bottom:5px;
    width:100%;
    display:flex; 
    justify-content: space-around;
}

#guardarModeloBtn, .copiarModeloBtn{
    
    background:var(--light-color);
    color:var(--green-fill);
    font-weight: 400;
    border-radius:7px;
    padding:5px 10px;
    border:none;
    box-shadow: var(--shadowLight);

}

#message{
    /* background:#222; */
    
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(10, 15, 10, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    width: fit-content;
    /* border-radius: 15px;  */
    border-radius:7px; 
    /* #33ff00 */
    color: var(--bs-white); 
    padding: 10px; 
    position: absolute; 
    top: 60px; 
    left: 50%; 
    transform: 
    translateX(-50%); 
    z-index: 100; 
    font-size: 25px;
}
/* ---------------- loader para simulacion 3d ------------ */

.loader-3d {

    color: #fff;
    border-radius: 0;
    font-size: 16px;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
    /* border:1px solid red; */
    width:50%;
    display:flex;
    flex-direction:column;
    align-items: center;
    position:absolute;
    top:40%;
    left:25%;
    font-weight: bold;
}

.loader-icon{
    width:50%;
    /* border:1px solid #000; */
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

/* ---------------- Codigo qr --------------- */

#qr-input{
    width:100%;
    padding:5px;
    border:1px solid var(--border2);
}
#qr-generate{
    width:100%;
    padding:3px 0;
    background-color: var(--main);
    color:var(--bs-white);
    border:none;
    transition:all .4s ease-in-out;
}
#qr-generate:hover{
    background:var(--main-hover);
    transition:all .4s ease-in-out;
}
#qr-container{
    width:100%;
    cursor:pointer;
    margin-top:20px;
    display:flex;
    justify-content: center;
}
/* --------------------------- Seccion de colores dinamicos del elemento svg -------------------------- */

.container-element-color{
    display:flex;
    gap:10px;
    max-width: 400px;
    flex-wrap: wrap;
    max-height:73px;
    overflow-y:scroll;
}
.mini-color{
    width:25px;
    height:25px;
    border:1px solid #ccc;
    border-radius: 5px;
    cursor:pointer;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}
.mini-color.active{
    border:6px solid var(--main);
}
/* ------------------------ seccion de responsive ------------------------ */
@media (max-width: 1421px) {
    /* --------- pagina de modelo3d compartido --------- */
    .left-modelo3d-functions{
        padding: 0 230px;
        width:90%;
    }

    .right-functions.modelo3d{
        /* flex-direction:column; */
        /* width: 30%; */
        align-items: center;
    }
    #whatsapp-share{
        width:fit-content;
    }
}
@media (max-width: 1200px) {
    /* --------- colsideRight --------- */
    .col-rightSide.reduce .nombre-producto.nombre-reduce{
        display:none;
    }
    .col-rightSide.reduce .nombre-amplied{
        display:block;
        margin-bottom:-15px;
    }
    /* --------- pagina de modelo3d compartido --------- */
    .left-modelo3d-functions{
        padding: 0 150px;
    }

    /* .right-functions.modelo3d{
        width: 40%;
    } */
    

}
@media (max-width: 991px) {
    .galeria-container {
        padding:0 15px;
    }
    /* col flexbox para la interfaz de usuario */
    .col-main {
        width: 100%;
        /* order: 1; Ahora será el primer elemento */
    }
    /* .col-rightSide{
        order:2;
        box-shadow: var(--shadow);

    } */
    /* #canvas-container{
        order:1;
    } */
    .col-sideLeft {
        /* order: 2; Cambia el orden de aparición, ahora será el segundo */
        display:flex;
        flex-direction:column;
        /* border:1px solid blue; */
        width: 98%;
        height:auto;

        margin:20px auto;
        box-shadow: var(--shadow);
    }
    .sideLeft{
        /* border:1px solid blue; */
        display:flex;
        justify-content:space-around;
        width:100%;
        border:1px solid var(--border);

    }
    .sideLeftContent{
        /* border:1px solid green; */
        display:flex;
        width:100%;
        padding:0;
    }   
    .sideLeftRow{
        position:relative;
    }

    .sideLeft .back-link{
        width: fit-content;
        display:none;
    }

    .back-link.back-responsive{
        display: block;
        border-bottom-left-radius: 9px;
    }

    .contenido-side,#medidor-content{
        height:150px;
        min-height: 50px;
        width:100%;
        padding: 10px 0;
        /* border:1px solid red; */
    }
/* ------------para aumentar reducir en js --------------- */
    .contenido-side{
        max-height: 100%;   /* limitado al padre */
        overflow-y: auto;   /* scroll si se necesita */
    }
    .resize-handle {
        display:flex;
        justify-content: center;
        align-items: center;
    }

    .bloq-side, .bloq-3d{ /* No funciona todavia */
        padding:0;
        /* border:1px solid #000; */
    }
    .bloq-side .img-bloq-side, .bloq-3d .img-bloq-side{
        width:35px;
    }
    .bloq-3d .img-bloq-side{
        width:40px;
    }
    #zoom-wrapper{
        padding-left:100px;
    }
    /* ----------------- seccion de color del vaso ----------------- */
    .accordion-body .color-cube{
        width:100px;
    }
    /* ----------------- seccion de color del disenio ----------------- */

    .container-color-disenio{
        display:flex;
        /* flex-wrap:wrap; */

    }
    .first-container-cS{
        width:300px;
    }
    .first-container-cS.container-full{
        width:100%;
    }
    /* ----------------- seccion de textos ----------------- */
    .container-flex-texts{
        display:flex;
        /* flex-wrap:wrap; */

        gap:10px;
    }
    #nuevo-texto{
        height:fit-content;
        font-size:.8rem;
        box-shadow: var(--shadow);

    }

    /* ----------------- seccion de textos ----------------- */
    .sub-contenido-side{
        width:70%;
        margin:auto;
    }

    #canvas-container>.container-fluid{
        width:100% !important;
        padding:0 !important;
        /* border:1px solid var(--info-color); */

    }
    /* ----------------- CANVA ----------------- */
    .container-indicador-canva {
        padding: 70px 0 !important;
        background-image:url('/frontend/img/personalizacion_vasos/scrolleable.svg') !important;
        background-repeat: repeat;
        /* border:1px solid red; */
        align-items: start;
    }

    .signal-red{
        font-weight: normal;
        font-size:.8rem !important;
    }

    .canva-modelo3d{
        padding:40px 0 !important;
        display:block;
        /* justify-content:center; */
    }

    .close {
        transform:translateY(100px) translateX(0);    
    }

    .inner-3d{
        /* Para mostrarlo en mobile */

        display:flex;
    }
    .inner-3d.right-section, .right-functions.vaso3D-section{
        /* Para ocultarlo en mobile */
        display:none;
        
    }
    /* --------- pagina de modelo3d compartido --------- */
    
    
    .left-modelo3d-functions{
        padding: 0 90px;
    }

    /* .right-functions.modelo3d{
        width: 50%;
    } */
    #whatsapp-share {
        font-size:.9rem;
    }

    .container-share3D{
        padding-top:40px;
    }

    .aviso-design{
        position:static;
    }

}

@media (max-width: 767px) {
    /* ------------------ col-rightSide ------------------*/
    .col-rightSide h5{
        font-size:.9rem;
    }
    
    /* ------------------ sideLeft ------------------*/
    
    .sideLeftContent h4{
        font-size:1rem;
    }
    .sideLeftContent h6{
        font-size:.8rem;
    }
    .sideLeftContent h2{
        font-size:.8rem;
    }

    .contenido-side,#medidor-content{
        height:125px;
    }
    .bloq-side h6, .bloq-3d h6{
        font-size:.7rem;
    }
    .bloq-side .img-bloq-side, .bloq-3d .img-bloq-side{
        width:30px;
    }
    .bloq-3d .img-bloq-side{
        width:40px;
    }
    /* ----------------- seccion de textos ----------------- */

    #nuevo-texto{
        font-size:.7rem;
    }


    

    .mensaje-scroll{
        display:block;
        font-size:1rem;
    }

    /* --------- pagina de modelo3d compartido --------- */
    
    .row-btns-3d{
        flex-direction: column-reverse;
    }
    .left-modelo3d-functions{
        padding: 0;
        width: 100%;
        justify-content:center ;
    }

    .right-functions.modelo3d{
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }
    #whatsapp-share{
        font-size:.85rem;
    }
    .logo-ecoingenio3d img{
        width: 130px;
    }
}

@media (max-width: 575px) {
    .paleta-color, #color-actual{
        width:30px;
        height:25px;
    }
    /* volver atras */
    .back-link.back-responsive{
        padding:2px 10px;
    }
    .back-link.back-responsive img{
        width:30px;
    }

    /* ------------------ modal 3d nuevo ---------------- */
    .simulacion-modelo{
        width:450px;
        height:450px;
    }

    /* ------------------ modal 3d compartido ---------------- */

    .container-share3D{
        padding: 40px 15px 20px 15px; /*top right bottom left*/
    }
    .subtitulo3d p{
        font-size:.9rem;
    }
    
}

@media (max-width: 450px) {
	.padding-top-disenio{
		padding:0;
		/* Para quitar el margen que quedo despues de ocultar el header*/
		margin:-60px 0 !important;
	}
    .bloq-side, .bloq-3d{
        width:50px;
    }
    .bloq-side .img-bloq-side, .bloq-3d .img-bloq-side{
        width:25px;
    }
    .bloq-3d .img-bloq-side{
        width:40px;
    }
    .bloq-side h6, .bloq-3d h6{
        font-size:.6rem;
    }
    .contenido-side{
        padding:10px;
    }

    .galeria{
        padding:0;
    }
    .galeria-item{
        padding:2px;
    }
    .zoomable-image{
        width:45px;
    }

    .label-btn-mobile{
        display:block;
        margin-bottom: 5px;
    }
    .label-btn-desktop{
        display:none;
    }

    /* ----------------- seccion de colores ----------------- */

    .table-color-actual{
        height:fit-content;
        
    }
    #color-disenio-content .table-color-actual{
        display:flex;
        flex-direction:column;
        gap:0;
    }
    .container-color-disenio{
        flex-wrap:wrap;

    }
    #color-disenio-content .container-color-disenio{
        flex-wrap:nowrap;

    }
    #color-table-globales{
        padding:0 10px;
    }
    /* ----------------- seccion de textos ----------------- */
    .container-flex-texts{
        flex-wrap:wrap;

        gap:5px;
    }
    #text-editor{
        width:50%;
    }
    .btn-container{
        width:100%;
        display:flex;
        justify-content:center;
    }
    #nuevo-texto{
        padding:5px 10px;
    }
    /* ----------------- col-sideRight ----------------- */
    .col-rightSide{
        padding: 10px;
    }
    .col-rightSide, .col-rightSide.reduce{
        gap:10px;
    }
    .btn-rightOptions{
        width:35px;
        height:45px;
        padding: 2px;
        font-size:1.15rem;
    }

    .button {
        width: 140px;
        height: 35px;
    }
    .button .button__text {
        transform: translateX(5px);
        font-weight: normal;
        font-size:.8rem;
    }
    .button:hover .button__text {
        color: #fff;
    }
    .button .button__icon {
        display:none;
        transform: translateX(100px);
        height: 100%;
        width: 39px;
    }
    
    .button .svg {
        width: 20px;
    }

    .col-rightSide.reduce .zoom-controls{
        flex-direction: row;
        padding:5px 0;
        left:10px;
    }

    .col-rightSide.reduce .nombre-amplied, .col-rightSide .nombre-amplied{
        margin-bottom:0;
    }
    /* ----------------- seccion del canva ----------------- */
    #canvas-container{
        min-height:850px;
        margin-bottom:10px;
    }
    .signal-red{
        line-height: 1.3;
    }
    .aviso-modal .signal-red{
        line-height:normal;
    }
    .whatsapp-button {
        bottom: 10px;
        left: 10px;
    }
    /* ----------------- Pagina de compartir modelo 3d ----------------- */
    .container3dClass{
        width:90%;
    }
    .compartido3d{
        padding:30px 0;
    }
    .logo-ecoingenio3d img{
        width:150px;
    }

    /* .right-functions.modelo3d{
        padding:10px 0;
    } */
     
    #whatsapp-share{
        font-size:.8rem;
    }
    .wa-logo{
        width:15px;
    }

    /* ------------------ modal 3d nuevo ---------------- */
    .modal-overlay{
        padding:0;
    }
    .modal3D{
        width:100vw;
        padding:5px;
    }
    .simulacion-modelo{
        width:100%;
        height:90vh;
    }
    #guardarModeloBtn, .copiarModeloBtn{
        padding:5px 10px;
        font-size:.9rem;
    
    }

    /* ------------------ Footer ---------------- */
    footer{
        padding:0 15px;

    }
    footer .footerText{
        font-size:.9rem;
    }
}

@media (max-width: 375px) {
    
    /* ----------------- col-sideLeft ----------------- */
    
    .sideLeftContent h4{
        font-size:.9rem;
    }
    .sideLeftContent h6{
        font-size:.7rem;
    }
    .sideLeftContent h2{
        font-size:.7rem;
    }

    .col-sideLeft {
        margin: 20px auto 5px auto;
    }
    

    .bloq-side h6, .bloq-3d h6{
        font-size:.6rem;
    }

    .bloq-side .img-bloq-side{
        width:20px;
    }

    /* Btn 3d new */
    .bloq-3d .inner-3d.btn-open{
        width:100%;
    }
    .bloq-3d .img-bloq-side{
        width:30px;

    }
    /* boton de descargar pdf */
    #download-pdf{
        width: fit-content;
    }
    .button .button__text{
        transform: translateX(0);
    }

    .btn-wrap{
        padding:7px 10px;
    }
    /* ----------------- col-sideRight ----------------- */

    .col-rightSide h5{
        font-size:.8rem;
    }

    .col-rightSide.reduce .nombre-amplied{
        margin:10px 0;
    }

    /* ----------------- seccion de textos ----------------- */
    
    #text-editor{
        width:100%;
    }

    .contenido-side p{
        font-size:11px;
        margin-bottom: 5px;
    }
    /* ----------------- Nuevo modal 3d ----------------- */

    .container-btn-modelo3d{
        display:flex;
        flex-direction: column;
        gap:5px;
        align-items: center;
        
    }

    #guardarModeloBtn, .copiarModeloBtn{
        padding:5px 10px;
        font-size:.9rem;
        width:180px;
    }

    .btns-modal-3d{
        position:fixed;
        width:100%;
        flex-wrap:wrap;
        /* justify-content:start; */
    }
/*     
    #guardarModeloBtn{
        padding:5px 10px;
        flex-wrap:wrap;
        font-size:.85rem;
    } */
    #message{
        font-size:1.2rem;
    }
    

    /* ----------------- Pagina de compartir modelo 3d ----------------- */
    .compartido3d{
        padding:35px 0;
    }
    /* .subtitulo3d p{
        font-size:1rem;
    } */
    .container3dClass{
        width:90%;
    }
    .container-share3D{
        padding: 20px 15px; /*top right bottom left*/
        gap:5px;
    }

    .right-functions.modelo3d{
        /* flex-direction: column; */
        flex-wrap: wrap;
    }
    #whatsapp-share{
        font-size:.75rem;
    }
    .wa-logo{
        width:15px;
    }
}

@media (max-width: 320px) {
    .col-rightSide{
        padding:20px 10px;
        gap:20px;
    }
    .btn-rightOptions{
        width:30px;
        height:40px;
        padding: 1px;
        font-size:1.1rem;
    }
    
    /* mensaje de confirmacion de copiar 3d */
    #message{
        font-size:1rem;
    }
    footer .footertext{
        font-size:.8rem;
    }
}
/* .subir-logotipo {
    box-shadow: inset 0 0 7px rgba(0, 0, 0, 0.3);

} */

.y-margin{
    margin: 40px 0;
}
#boxReturn{
    display: none;
    flex-direction: column;
    align-items: center;
}
#myButtonReturn {
    background-color: #d9534f; /* Rojo suave */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin: auto;
}

#myButtonReturn:hover {
    background-color: #c9302c; /* Rojo un poco más oscuro al pasar el mouse */
    transform: scale(1.05);
}

/* Estilo para la pantalla de carga */
#loading_screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    text-align: center;
}

/* Estilo para la imagen de carga */
#loading_screen img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 1s infinite linear;
}

/* Animación de rotación */
@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
/* ================ Icono de Whatsapp =================== */
.whatsapp-button {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .whatsapp-button:hover {
    background-color: #1ebe57;
  }
