@import url(https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Montserrat:wght@400;800&family=Parisienne&family=Roboto&family=Teko:wght@300&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Rubik+Dirt&display=swap);

/*--variables de texto--*/
:root {
  box-sizing: border-box;
  scroll-behavior: smooth;
  --ff-parisienne: "Parisienne", cursive;
  --ff-montserrat: "Montserrat", sans-serif;
  --ff-lora: "Lora", serif;
  --ff-roboto: "Roboto", sans-serif;
  --ff-rubik-dirt: "Rubik Dirt", cursive;
  --fs-paragraphs: calc(0.8rem + 0.35vw);
  --fs-links-btns: clamp(14px, 1vh, 18px)
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit
}

body {
    margin: 0;
    overflow-x: hidden; /* Evita scroll horizontal en todo el cuerpo */
    overflow-y: auto; /* Ahora el scroll vertical ocurre en el body */

    /* --- OCULTAR BARRA DE DESPLAZAMIENTO VISUALMENTE AQUÍ (para todo el body) --- */
    /* Para navegadores Webkit (Chrome, Safari, Edge) */
    &::-webkit-scrollbar {
        display: none; /* Oculta la barra de desplazamiento */
    }
    /* Para Firefox */
    scrollbar-width: none; /* Oculta la barra de desplazamiento */
    /* Para IE y Edge (versiones antiguas) */
    -ms-overflow-style: none; /* Oculta la barra de desplazamiento */
    /* --- FIN DE OCULTAR BARRA DE DESPLAZAMIENTO --- */

    justify-content: center; /* Centra horizontalmente el contenido principal */
    background-image: url(/img/fondo_web.jpg);
    /*background-color: #e0e0e0; /* Color fondo página*/
    font-family: "Inter", sans-serif; /* Fuente Inter */
    color: #333333; /* Color caja texto visor 3D */
}

a {
  text-decoration: none;
  cursor: default;
}

/*--variables de color del texto span--*/
span {
  color: #ffffff;
  padding: 0 40px
}

.title {
  font-family: var(--ff-montserrat);
  font-size: 4rem;
  text-align: center;
  /*margin-bottom: 20px;*/
  color:rgb(162, 255, 215);
  
}

.title-2 {
  font-family: var(--ff-montserrat);
  font-size: 4rem;
  text-align: center;
  margin-top: 10vh;
  margin-bottom: 20px;
  color: #fbff07;
}

.texto {
  font-family: var(--ff-montserrat);
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
}



/*
.title h2 {
  font-family: var(--ff-montserrat);
  font-size: 3rem;
  text-align: center;
  color: #ffffff;
  margin-top: 1vh;
  padding-top: 1vh;
}

*/

/*
h2 {
  font-family: var(--ff-montserrat);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
  
}*/

/*!---------scrollbar------*/
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgb(152, 152, 152);
  border-radius: 10px;
}

/*!--------Navbar------------*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(66, 66, 66, 0.8);
  backdrop-filter: saturate(180%) blur(10px);
  display: flex;
  width: 100%;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 20px;
  z-index: 11;
  color: whitesmoke;
  margin-bottom: 50%;
  padding-bottom: 10px;
}

.socialnav {
  margin: 20px;
}

.socialnav li {
  list-style: none;
}

.socialnav a {
  margin-right: 10px;
  font-size: 40px;
  background-color: transparent;
  border-radius: 50%;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.socialnav a:hover {
  background-color: #fc036b;
}

.socialnav .azul:hover {
  background-color: #2770d0;
}

.socialnav i {
  display: inline;
  text-align: center;
  color: whitesmoke;
}
/*--Fin Navbar---*/

/*!---Sección descripción piezas---*/
.descripcion {
  color: #fff;
}

.contenedor {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /*margin: 0 auto;*/
  margin-top: 1vh;
  padding: 8vh;
  padding-top: 10vh;
  padding-bottom: 0vh;
}

.seccion--bloque {
  padding: 0px;
}

.bloque--cajafoto {
  margin-top: 50px;
}

.bloque--foto {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto;
  justify-content: center;
}

.bloque--foto figure {
  position: relative;
  max-width: 400px;
  width: 100%;
  height: 400px; /* Altura fija para las figuras */
  overflow: hidden;
  transition: transform 0.5s ease-in-out;
  border-radius: 8px;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
  background-color: #000000;
  position: relative;
}

.bloque--foto figure:hover {
  transform: scale(1.3);
  z-index: 10;
  box-shadow: 10px 0 10px rgba(0, 0, 0, 0.9);
  background-color: #000000;
  position: relative;
}

.bloque--foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.bloque--foto figcaption {
  position: absolute;
  top: 80%;
  left: 80%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 10px 20px;
  font-family: var(--ff-montserrat);
  font-size: 1.4rem;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
}
/*---end descripción página---*/

/*!-----Sección fotos de piezas y visores 3D----*/
#main-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.text-box {
    background-color: #ffffff;
    border: 2px solid #a0a0a0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 80vw;
    min-width: 300px;
    text-align: center;
    line-height: 1.6;
}

.viewer-canvas-box {
    width: 50vw;
    height: 50vh;
    min-width: 300px;
    min-height: 300px;
    max-width: 800px;
    max-height: 800px;
    border: 2px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}
/*--Sección fotos de piezas y visores 3D--*/

/*!------------footer--------------------*/
.footer {
  width: 100%;
  min-height: 100px;
  padding: 20px 80px;
  margin: 0;
  background: rgba(66, 66, 66, 0.8);
  text-align: center;
}

.container-footer {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(3, 1fr);
}

.logo_2_img {
  margin-right: auto;
  max-width: 130px;
}

.logo_2 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  max-width: 150px;
  border-radius: 5%;
}

.social {
  width: 360px;
  margin: 30px auto;
}

.social li {
  list-style: none;
}

.social a {
  margin-right: 10px;
  font-size: 35px;
  background-color: transparent;
  border-radius: 50%;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social a:hover {
  background-color: #fc036b;
}

.social i {
  display: inline;
  text-align: center;
  color: whitesmoke;
}

/*!--------Banner de cookies------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 16px;
  z-index: 1000;
}

.cookie-banner a {
  color: #4CAF50;
  text-decoration: none;
}

.cookie-banner a:hover {
  text-decoration: underline;
}

.accept-btn, .reject-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  margin-left: 20px;
  border-radius: 10px;
}

.reject-btn {
  background-color: #f44336;
}

.accept-btn:hover, .reject-btn:hover {
  opacity: 0.8;
}