/* RESET */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: white;
  overflow-x: hidden;
  overflow: auto;
  scrollbar-width: none; 
  scroll-behavior: smooth;
    background: linear-gradient(135deg, #0a0a0a 0%, #1c1c1c 40%, #2a2a2a 100%);

}
body::-webkit-scrollbar { display: none; }


#mouse-line-trail {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 1; /* delante del fondo pero detrás del contenido si quieres, aumenta si quieres sobre todo */
  mix-blend-mode: normal; /* evita "screen" si el fondo es claro -> más fiable */
}

/* Navbar fijo centrado */
.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffffe5;       /* color de fondo */
  padding: 8px 50px;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  z-index: 2000;
}


/* Lista horizontal centrada */
.navbar ul {
  display: flex;
  list-style: none;
  gap: 100px;
  margin: 0;
  padding: 0;
}

/* Links del navbar */
.navbar ul li a {
  color: #333333;
  text-decoration: none;
  font-size: .8rem;
  scale: 1;
  transition: .3s;
}

/* Efecto hover */
.navbar ul li a:hover {
  color: #a7a7a7;
  font-size: 1rem;
}




.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1c1c1c 40%, #2a2a2a 100%);
}

/* 🎥 Video de fondo */
#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   
  opacity: 0.4;       
  filter: brightness(1) contrast(1.2); 
  z-index: 1;
}

.hero-text {
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  transition: 0.5s ease;
  line-height: 1.2;
  color: #fff;
  z-index: 2; /* encima del video */
}

/* Hover */
.hero-text:hover {
  cursor: default;
  scale: 1.1;
}

/* Animación de letras */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}

/* Responsividad */
@media (max-width: 1024px) {
  .hero-text {
    letter-spacing: 1.5px;
  }
}

@media (max-width: 768px) {
  .hero-text {
    white-space: normal;
    line-height: 1.1;
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  .hero-text {
    font-size: clamp(1.8rem, 10vw, 3rem);
    letter-spacing: 1px;
  }
}




/* === CARRUSEL DE EMPRESAS === */
.carousel-container {
  width: 350px;
  height: 180px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  background: #202020;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  display: flex;
  gap: 40px;
  animation: scroll 20s linear infinite;
}

.carousel-track img {
  width: 100px;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(90%);
  transition: filter 0.3s ease;
}

.carousel-track img:hover {
  filter: grayscale(0%) brightness(110%);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


.sections-carousel { background: #eeeeee; overflow: hidden; padding: 20px 0; }
.carousel { position: relative; width: 100%; }
.carousel-item {
  flex: 0 0 auto;
  padding: 20px 20px;
  color: #1b1b1b;
  border-radius: 10px;
  font-weight: 300;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.carousel-item:hover { transform: scale(1.03); background-color: #c5c5c5; cursor:default;   color: #272727ef;
 }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }


.card-model3d-wrapper { position: relative; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; }
.card-model3d { width: 100%; height: 100%; border: none; }
.card-model3d-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: all; background: transparent; }

.container-cards{ display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 300px; margin: 0 auto; }
.card { background: #111; border-radius: 12px; padding: 20px; overflow: hidden; }

/* FEATURES */
.features-section {        background: linear-gradient(135deg, #0a0a0a 0%, #1c1c1c 40%, #2a2a2a 100%);
 padding-bottom: 60px; }
.container-cards-feature { display:flex; flex-wrap:wrap; justify-content:center; gap:30px; margin:0px auto; padding-top: 40px; max-width:1200px; }
.container-cards-feature1 { display:flex; flex-wrap:wrap; justify-content:center; gap:30px; margin:40px auto; max-width:1200px; margin-top: 5%; }
.card-feature { border-radius:16px; padding:24px; width:90%; display:flex; flex-direction:column;}
.feature-block { display:flex; align-items:center; gap:50px; }
.feature-block.left-img { flex-direction:row; }
.feature-block.right-img { flex-direction:row-reverse; }
.feature-block.left-video { flex-direction:row; }
.feature-block.right-video { flex-direction:row-reverse; }
.feature-block video { width:350px; height:auto; object-fit:contain; transition:.3s; border-radius:3%; }
.feature-block img { width:350px; height:auto; object-fit:contain; transition:.3s; border-radius:3%; }
.feature-block img:hover { transform: scale(1.01); }
.feature-text h3 { font-size:1.8rem; color:#ffffffef; margin-bottom:10px; }
.feature-text p, .feature-text li { font-size:1rem; color:#e4e4e4ef; line-height:1.6; }
.feature-text h1 { font-size:1rem; color:#707070ef;}

/* CARDS */
#cards-section { padding:60px 20px; background:#1b1b1bef; }
.container-cards { display:flex; justify-content:center; gap:20px; flex-wrap:wrap; max-width:1200px; margin:0 auto; }
.card { background-color:#1e1e1eef; border-radius:16px; width:320px; padding:24px; display:flex; flex-direction:column; gap:16px; transition:transform .3s, box-shadow .3s; }
.card:hover { transform:translateY(-8px); box-shadow:0 8px 20px rgba(0,0,0,.3); }
.card h2 { margin:0; font-size:1.4rem; color: #fff;
  background: linear-gradient(to right, #9f9f9f 0, #fff 10%, #868686 20%);
  background-position: 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s infinite linear;
  animation-fill-mode: forwards;
  -webkit-text-size-adjust: none;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
}
@-moz-keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }
}
@-webkit-keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }
}
@-o-keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }
}
@keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }; }
.card p { color:#ddd; line-height:1.6; font-size:.95rem; }


footer {
  width: 100%;
  display: flex;
  flex-direction: column; /* columna: iconos arriba, texto debajo */
  justify-content: center; /* centra verticalmente */
  align-items: center;     /* centra horizontalmente */
  padding: 20px 0;
  background-color: #161616;  /* color opcional */
  gap: 15px; /* espacio entre iconos y texto */
}

footer p {
  color: #fff;
  font-size: 14px;
  margin: 0;
}

/* Animaciones scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease-out; }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease-out; }
.reveal-right.active { opacity: 1; transform: translateX(0); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  padding: 60px 5%;
  justify-content: center; /* centra los elementos */
  max-width: 1400px; /* ancho máximo */
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  background-color: #000;
  transition: transform 0.3s ease;
}

.gallery-item:hover video {
  transform: scale(1.05);
}

/* BIG ocupa doble tamaño */
.gallery-item.big {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 2 / 2;
}

/* HUGE ocupa todo el ancho disponible */
.gallery-item.huge {
  grid-column: 1 / -1; /* ocupa todas las columnas */
  grid-row: span 2;
  aspect-ratio: 16 / 9;
}

/* Ajustes móviles */
@media (max-width: 768px) {
  .gallery {
    padding: 40px 5%;
  }

  .gallery-item.big,
  .gallery-item.huge {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1 / 1;
  }
}


/* === LANG SWITCHER === */
.lang-switcher {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 3000;
  animation: float 3s ease-in-out infinite;
}

.lang-switcher:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
}

.lang-switcher img {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 50%;
}

/* Animación flotante suave */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ===== Responsivo ===== */
@media (max-width: 1024px) {
  .feature-block { flex-direction: column !important; gap: 20px; }
  .feature-block img { width: 80%; height: auto; }
  .feature-block video { width: 80%; height: auto; }
  .card { width: 90%; }
  .sidebar { width: 50%; right: -80%; }
}
@media (max-width: 768px) {
  .feature-block img { width: 100%; }
  .container-cards { padding: 50px; }
  .card { width: 90%; }
}
@media (max-width: 580px) {
  .feature-text h3 { font-size: 1.4rem; }
  .feature-text p, .feature-text li { font-size: 0.9rem; }
  .carousel-item { font-size: 0.8rem; padding: 10px 8px; }
  .sidebar { width: 50%; right: -90%; }
  .hamburger { width: 25px; height: 20px; }
  .hamburger span { height: 3px; }
}






/* ===============================
   LIGHTBOX MODERNO Y RESPONSIVE
================================*/
.popart-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px); /* desenfoque del fondo */
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popart-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.popart-content-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 1200px;
  max-height: 85vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(4px);
}

.popart-lightbox.open .popart-content-wrapper {
  transform: scale(1);
  opacity: 1;
}

.popart-content img,
.popart-content video {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 10px;
  object-fit: contain;
  background: #000;
}

.popart-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.popart-controls button {
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.popart-controls button:hover {
  transform: scale(1.1);
}

/* ========== MÓVIL ========== */
@media (max-width: 768px) {
  .popart-content-wrapper {
    width: 95%;
    max-height: 90vh;
    border-radius: 12px;
  }

  .popart-controls button {
    font-size: 22px;
    padding: 8px 12px;
  }

  .popart-content img,
  .popart-content video {
    max-height: 75vh;
  }
}








.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: #202020;
  padding: 50px;
}

.carousel-container h1 { 
  font-size:1rem; 
  color:#707070ef; 
  margin: 50px;
}




.carousel-track {
  display: flex;
  gap: 2rem;
  animation: scroll 20s linear infinite;
}

.carousel-track img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}







.about-section {
  padding: 80px 20px;
  background: #f9f9f9;
  display: flex;
  justify-content: center;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  gap: 40px;
  align-items: center;
}

.about-image img, .about-image model-viewer {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.skills-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.skills-list li {
  background: #111;
  color: #fff;
  padding: 8px 15px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #444;
}







/* Contenedor de la sección Sobre Mí */
.about-section {
  background: #222222;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  cursor: default;
}

/* Imagen fullscreen */
.about-image-fullscreen {
  width: 50%;
  height: 50vh; /* altura completa de la pantalla */
  overflow: hidden;
  position: relative;
  transition: .6s;
  scale: 1.01;
  border-radius: 2%;
}

.about-image-fullscreen:hover {
  scale: .99;
}

.about-image-fullscreen img,
.about-image-fullscreen model-viewer {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenedor del texto */
.about-text-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Títulos y párrafos */
.about-text-container h2 {
  font-size: 4rem;
  margin-bottom: 40px;
  color: #fafafa;
  text-align: center;
  transition: .3s;
}

.about-text-container h2:hover {
  color: #7ad9ff;
}

.about-text-container p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fafafa;
}

/* Lista de skills */
.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 100px;
}

.skills-list li {
  background-color: #353535;
  padding: 10px 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
  gap: 8px;
  transition: background 0.3s;
}

.skills-list li i {
  color: #7ad9ff; /* Iconos color acento */
}

.skills-list li:hover {
  background-color: #222222;
}

/* Listas de experiencia y educación */
.about-text-container ul {
  list-style: disc inside;
  margin-bottom: 25px;
  color: #fafafa;
}

.about-text-container ul li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Botón de CV */
.btn {
  display: inline-block;
  background-color: #7ad9ff;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  margin-top: 15px;
}

.btn:hover {
  background-color: #353535;
  transform: translateY(-2px);
}














/* From Uiverse.io by zjssun */ 
.button-title {
  position: absolute;
  border: none;
  background: transparent;
  --stroke-color: #ffffff7c;
  --ani-color: rgba(95, 3, 244, 0);
  --color-gar: linear-gradient(90deg,#03a9f4,#f441a5,#ffeb3b,#03a9f4);
  letter-spacing: 3px;
  font-size: 2em;
  font-family: "Arial";
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke-color);
  cursor: pointer;
  z-index: 9999;
  margin-bottom: 520px;
}

.button-title2 {
  position: absolute;
  border: none;
  background: transparent;
  --stroke-color: #ffffff7c;
  --ani-color: rgba(95, 3, 244, 0);
  --color-gar: linear-gradient(90deg,#03a9f4,#f441a5,#ffeb3b,#03a9f4);
  letter-spacing: 3px;
  font-size: 2em;
  font-family: "Arial";
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke-color);
  cursor: pointer;
  z-index: 9999;
  margin-top: 570px;
}


.front-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  background: var(--color-gar);
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 200%;
  overflow: hidden;
  transition: all 1s;
  animation: 8s ani infinite;
  border-bottom: 2px solid transparent;
  
}

.button-title:hover .front-text {
  width: 100%;
  border-bottom: 2px solid #03a9f4;
  -webkit-text-stroke: 1px var(--ani-color);
}

@keyframes ani {
  0% {
    background-position: 0%;
  }

  50% {
    background-position: 400%;
  }

  100% {
    background-position: 0%;
  }
}


.button-title2:hover .front-text {
  width: 100%;
  border-bottom: 2px solid #03a9f4;
  -webkit-text-stroke: 1px var(--ani-color);
}

@keyframes ani {
  0% {
    background-position: 0%;
  }

  50% {
    background-position: 400%;
  }

  100% {
    background-position: 0%;
  }
}






/* From Uiverse.io by vinodjangid07 */ 
.card-footer {
  width: fit-content;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 25px;
  gap: 20px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.055);
}

/* for all social containers*/
.socialContainer {
  width: 52px;
  height: 52px;
  background-color: rgb(44, 44, 44);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition-duration: .3s;
}
/* instagram*/
.containerOne:hover {
  background-color: #d62976;
  transition-duration: .3s;
}
/* twitter*/
.containerTwo:hover {
  background-color: #00acee;
  transition-duration: .3s;
}
/* linkdin*/
.containerThree:hover {
  background-color: #0072b1;
  transition-duration: .3s;
}
/* Whatsapp*/
.containerFour:hover {
  background-color: #128C7E;
  transition-duration: .3s;
}

.socialContainer:active {
  transform: scale(0.9);
  transition-duration: .3s;
}

.socialSvg {
  width: 17px;
}

.socialSvg path {
  fill: rgb(255, 255, 255);
}

.socialContainer:hover .socialSvg {
  animation: slide-in-top 0.3s both;
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}











/* card proyects */ 


#proyects-section {
  padding: 60px 20px;
  background: #cacacaef;
}

/* Contenedor de las 3 cards */
.cards-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap; /* 💡 Para que sea responsive */
}


.card-proyect {
  position: relative;
  width: 300px;
  height: 200px;
  background-color: #f2f2f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
  box-shadow: 0 0 0 5px #ffffff80;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-proyect svg {
  width: 48px;
  fill: #333;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-proyect:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.card__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #f2f2f2;
  transform: rotateX(-90deg);
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-proyect:hover .card__content {
  transform: rotateX(0deg);
}

.card__title {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: 700;
}

.card-proyect:hover svg {
  scale: 0;
}

.card__description {
  margin: 10px 0 15px;
  font-size: 14px;
  color: #777;
  line-height: 1.4;
}


/* From Uiverse.io by cssbuttons-io */ 
button {
 position: relative;
 display: inline-block;
 cursor: pointer;
 outline: none;
 border: 0;
 vertical-align: middle;
 text-decoration: none;
 background: transparent;
 padding: 0;
 font-size: inherit;
 font-family: inherit;
}

button.learn-more {
 width: 12rem;
 height: auto;
}

button.learn-more .circle {
 transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
 position: relative;
 display: block;
 margin: 0;
 width: 3rem;
 height: 3rem;
 background: #282936;
 border-radius: 1.625rem;
}

button.learn-more .circle .icon {
 transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
 position: absolute;
 top: 0;
 bottom: 0;
 margin: auto;
 background: #fff;
}

button.learn-more .circle .icon.arrow {
 transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
 left: 0.625rem;
 width: 1.125rem;
 height: 0.125rem;
 background: none;
}

button.learn-more .circle .icon.arrow::before {
 position: absolute;
 content: "";
 top: -0.29rem;
 right: 0.0625rem;
 width: 0.625rem;
 height: 0.625rem;
 border-top: 0.125rem solid #fff;
 border-right: 0.125rem solid #fff;
 transform: rotate(45deg);
}

button.learn-more .button-text {
 transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 padding: 0.75rem 0;
 margin: 0 0 0 1.85rem;
 color: #282936;
 font-weight: 700;
 line-height: 1.6;
 text-align: center;
 text-transform: uppercase;
}

button:hover .circle {
 width: 100%;
}

button:hover .circle .icon.arrow {
 background: #fff;
 transform: translate(1rem, 0);
}

button:hover .button-text {
 color: #fff;
}





/* From Uiverse.io by csemszepp */ 
@keyframes animate {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.container {
  position: relative;
  top: -80px;
  transform: skewY(-20deg);
  animation: animate 5s linear infinite;
  .cube {
    position: relative;
    z-index: 2;
    &:nth-child(2) {
      z-index: 1;
      translate: -60px -60px;
    }
    &:nth-child(3) {
      z-index: 3;
      translate: 60px 60px;
    }
    div {
      position: absolute;
      display: flex;
      flex-direction: column;
      gap: 30px;
      translate: calc(-70px * var(--x)) calc(-60px * var(--y));
      span {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 50px;
        background: #dcdcdc;
        z-index: calc(1 * var(--i));
        transition: 1.5s;
        &:hover {
          transition: 0s;
          background: #ef4149;
          filter: drop-shadow(0 0 30px #ef4149);
          &:before,
          &:after {
            transition: 0s;
            background: #ef4149;
          }
        }
        &:before {
          content: "";
          position: absolute;
          left: -40px;
          width: 40px;
          height: 100%;
          background: #fff;
          transform-origin: right;
          transform: skewY(45deg);
          transition: 1.5s;
        }
        &:after {
          content: "";
          position: absolute;
          top: -40px;
          left: 0px;
          width: 100%;
          height: 40px;
          background: #f2f2f2;
          transform-origin: bottom;
          transform: skewX(45deg);
          transition: 1.5s;
        }
      }
    }
  }
}






/* === SECCIÓN DE MODELOS 3D === */
.models-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1c1c1c 40%, #2a2a2a 100%);
  text-align: center;
  padding: 100px 5% 80px;
  position: relative;
  overflow: hidden;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  justify-items: center;
}

.model-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 500px;
}

.model-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.6);
}

.model-card iframe {
  width: 100%;
  height: 350px;
  border: none;
}

.model-card h3 {
  color: #f2f2f2;
  font-size: 1.2rem;
  padding: 15px;
  background: #1b1b1b;
  margin: 0;
  font-weight: 500;
  border-top: 1px solid #2e2e2e;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.model-card:hover h3 {
  color: #ffffff;
}

/* Responsivo */
@media (max-width: 768px) {
  .models-section h1 {
    font-size: 2rem;
  }
  .model-card iframe {
    height: 250px;
  }
}

/* Forzar máximo 2 columnas */
@media (min-width: 1100px) {
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* En pantallas pequeñas (1 columna) */
@media (max-width: 700px) {
  .models-grid {
    grid-template-columns: 1fr;
  }
}




    .gallery-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
      width: 90%;
      max-width: 1200px;
      margin-bottom: 60px;
    }

    .gallery-item {
      position: relative;
      overflow: hidden;
      border-radius: 12px;
      cursor: pointer;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.3s ease;
    }

    .gallery-item:hover {
      transform: translateY(-6px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    }

    .gallery-item:hover img {
      transform: scale(1.05);
    }










/* ============================
   SECCIÓN YOUTUBE MODERNA
============================ */
.youtube-section {
  padding: 100px 8%;
  background: radial-gradient(circle at top left, #000000, #242424);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-title {
margin:0; font-size:1.4rem; color: #fff;
  background: linear-gradient(to right, #9f9f9f 0, #fff 10%, #868686 20%);
  background-position: 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s infinite linear;
  animation-fill-mode: forwards;
  -webkit-text-size-adjust: none;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
}

/* Contenedor principal */
.youtube-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}


/* Galería inferior */
.youtube-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1000px;
}

.youtube-gallery iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.youtube-gallery iframe:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* Botón canal */
.youtube-btn {
  display: inline-block;
  margin-top: 50px;
  padding: 14px 36px;
  background: #e9e9e9;
  color: #333333;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  letter-spacing: 0.5px;
}

.youtube-btn:hover {
  background: #ff4747;
  transform: translateY(-3px);
    color: #ffffff;

}

/* Responsivo */
@media (max-width: 768px) {
  .youtube-section {
    padding: 60px 5%;
  }

  .youtube-gallery {
    grid-template-columns: 1fr;
  }

  .youtube-main iframe {
    border-radius: 10px;
  }
}










.no-info {
display: grid; height: 1000px; grid-template-columns: 1fr; gap: 20px; max-width: 300px; margin: 0 auto;
}

.no-info a{
margin-top:140%; font-size:1.4rem; color: #fff;
  background: linear-gradient(to right, #9f9f9f 0, #fff 10%, #868686 20%);
  background-position: 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s infinite linear;
  animation-fill-mode: forwards;
  -webkit-text-size-adjust: none;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
}
@-moz-keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }
}
@-webkit-keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }
}
@-o-keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }
}
@keyframes shine {
  0% {
    background-position: 0;
  }
  60% {
    background-position: 180px;
  }
  100% {
    background-position: 180px;
  }; }
