/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden; /* Prevenir desplazamiento horizontal */
  width: 100%;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevenir desplazamiento horizontal */
  width: 100%;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

.visible {
  opacity: 1; /* Para la animación final de opacidad */
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  position: relative; /* Asegura que el nav no se vea afectado por cambios en el contenido */
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
  white-space: nowrap; /* Evita que el texto salte a la siguiente línea */
  display: inline-block;
  min-width: 180px; /* Ajusta este valor según el tamaño del texto completo */
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh; /* Restaurado a 96vh como estaba originalmente */
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
  border-radius: 50%;
  overflow: visible;
}

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: grayscale(100%);
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.text-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 100%;
}

.experience-details-container .about-containers > .details-container {
  flex: 1 1 350px;
}

.experience-details-container .about-containers > .details-container:first-child {
  align-self: flex-start;
}

/* Mejor estructura para los contenedores de artículos con espaciado consistente */
.article-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: initial;
  justify-items: start;
  padding: 0 1rem;
}

article {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-width: 150px;
}

article .icon {
  cursor: default;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

article div {
  flex: 1;
}

article h3 {
  margin: 0;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

article p {
  margin: 0;
  font-size: 0.9rem;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

#Proyectos .title {
  margin-bottom: 3rem;
}

/* Nuevas clases específicas para proyectos */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}

.project-card {
  width: calc(32% - 15px);
  box-sizing: border-box;
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 2rem;
}

.project-card-solo {
  width: 32%;
  margin: 0 auto;
  box-sizing: border-box;
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 2rem;
}

/* Mantener compatibilidad con clases existentes */
.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 2rem;
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: auto;
  margin-bottom: 1rem;
  max-width: 100%;
}

.project-title {
  margin: 1rem 0;
  color: black;
  font-size: 1.75rem;
  font-weight: 600;
}

.color-container p {
  font-size: 1rem;
  line-height: 1.5;
  color: rgb(85, 85, 85);
  margin-bottom: 1.5rem;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: auto;
}

#Contacto {
  padding-bottom: 30rem;
  margin-bottom: 0;
  height: 50vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
  margin-top: 0;
  padding-top: 1rem;
  width: 100%;
  box-sizing: border-box;
}

footer p {
  text-align: center;
}

/* Selector de idioma */

.lang-switch {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 10px auto 0;
}

.lang-btn {
  background: none;
  border: 2px solid rgb(163, 163, 163);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: rgb(85, 85, 85);
  transition: all 300ms ease;
}

.lang-btn:hover {
  border-color: rgb(85, 85, 85);
  color: rgb(0, 0, 0);
}

.lang-btn.active {
  background: rgb(53, 53, 53);
  color: white;
  border-color: rgb(53, 53, 53);
}

/* boton dark y light - Diseño profesional moderno */

.toggle-switch {
  position: relative;
  width: 70px;
  height: 32px;
  margin: 20px auto;
}

.switch-label {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.4s ease;
  overflow: hidden;
}

.switch-label:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  transform: translateY(-1px);
}

.checkbox {
  position: absolute;
  display: none;
}

.slider {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.checkbox:checked ~ .slider {
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
}

/* Círculo deslizante con íconos */
.slider::before {
  content: "☀️";
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 3px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-size: 14px;
}

.checkbox:checked ~ .slider::before {
  content: "🌙";
  transform: translateX(38px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Animación de brillo */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
  }
}

/* Dark mode styles */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode .lang-btn {
  color: #e0e0e0;
  border-color: #555;
}

body.dark-mode .lang-btn:hover {
  border-color: #aaa;
  color: #fff;
}

body.dark-mode .lang-btn.active {
  background: #e0e0e0;
  color: #121212;
  border-color: #e0e0e0;
}

body.dark-mode a {
  color: #bb86fc;
}

body.dark-mode .contact-info-container a {
  color: #bb86fc !important;
}

body.dark-mode .contact-info-container a span {
  color: #bb86fc !important;
}

body.dark-mode .nav-links a:hover {
  color: #bb86fc;
}

body.dark-mode .btn {
  background-color: #bb86fc;
  color: #121212;
}

body.dark-mode .btn:hover {
  background-color: #3700b3;
  color: #ffffff;
}

/* Ensure all text elements are visible in dark mode */
body.dark-mode p,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode span,
body.dark-mode div,
body.dark-mode li {
  color: #ffffff;
}

/* Keep specific container text black in dark mode */
body.dark-mode .details-container.color-container p,
body.dark-mode .experience-sub-title.project-title,
body.dark-mode .experience-sub-title.project-title h2,
body.dark-mode .experience-sub-title,
body.dark-mode .article-container article h3,
body.dark-mode .article-container article p,
body.dark-mode .details-container h3,
body.dark-mode .details-container p,
body.dark-mode .details-container .icon,
body.dark-mode .project-card p,
body.dark-mode .project-card h2,
body.dark-mode .project-card h3,
body.dark-mode .project-card-solo p,
body.dark-mode .project-card-solo h2,
body.dark-mode .project-card-solo h3 {
  color: #000000 !important;
  fill: #000000 !important;
}

/* Ensure specific logos remain white in dark mode */
body.dark-mode .arrow,
body.dark-mode .icon[alt="My LinkedIn profile"],
body.dark-mode .icon[alt="My Github profile"] {
  filter: invert(1) !important;
}

/* Dark mode styles for hamburger menu */
body.dark-mode .hamburger-icon span {
  background-color: white;
}

/* Agregado estilos para el loader inicial */
/* Estilos para el loader inicial */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-container.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  text-align: center;
}

.loader-circle {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader-text {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Agregado estilos para animaciones de scroll */
/* Estilos para animaciones de scroll */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Agregado estilos para el badge de EN DESARROLLO */
/* Estilos para el badge de EN DESARROLLO */
.dev-badge {
  display: block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  margin: 0.5rem auto 1rem;
  letter-spacing: 0.5px;
  animation: badge-pulse 2s ease-in-out infinite;
  width: fit-content;
}

@keyframes badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
  }
}

body.dark-mode .dev-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Contenedor principal para evitar desbordamiento horizontal */
.container {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Estilos para el carrusel de imágenes */
.image-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.carousel-container {
  position: relative;
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 2rem;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-images img,
.carousel-images video {
  width: 100%;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.carousel-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-arrow.prev {
  left: 10px;
}

.carousel-arrow.next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dot.active {
  background-color: #333;
}

/* Estilos para dark mode en el carrusel */
body.dark-mode .carousel-arrow {
  background-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

body.dark-mode .carousel-arrow:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .carousel-dot {
  background-color: #555;
}

body.dark-mode .carousel-dot.active {
  background-color: #fff;
}

/* Media query for responsive design */
@media (max-width: 768px) {
  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }

  .project-card,
  .project-card-solo {
    width: 100%;
  }

  section {
    margin: 0 1rem;
  }

  .arrow {
    right: 1rem;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .project-card {
    width: calc(50% - 10px);
  }

  .project-card-solo {
    width: 50%;
  }

  section {
    margin: 0 5rem;
  }
}

/* Estilos para botones deshabilitados */
.btn-disabled {
  opacity: 0.7;
  cursor: not-allowed !important;
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0 !important;
  color: #888 !important;
  border-color: #ccc !important;
}

.btn-disabled:hover {
  background-color: #f0f0f0 !important;
  color: #888 !important;
  border-color: #ccc !important;
  transform: none !important;
}

/* Animación de construcción */
.btn-disabled::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: construction-shine 2s infinite;
}

.btn-disabled::after {
  content: "🚧";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

@keyframes construction-shine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Tooltip para botones deshabilitados */
.tooltip {
  position: relative;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 160px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
  pointer-events: none;
}

.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Estilos para dark mode en botones deshabilitados */
body.dark-mode .btn-disabled {
  background-color: #333 !important;
  color: #aaa !important;
  border-color: #555 !important;
}

body.dark-mode .btn-disabled::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

body.dark-mode .tooltip .tooltip-text {
  background-color: #222;
  color: #ddd;
}

body.dark-mode .tooltip .tooltip-text::after {
  border-color: #222 transparent transparent transparent;
}

/* Estilos para el efecto de zoom/lupa */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
}

/* Contenedor para la imagen con zoom */
.zoomable-image {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

/* Estilo para la lupa */
.magnifier {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5),
    0 0 10px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none !important;
  background-repeat: no-repeat;
  transition: opacity 0.2s;
}

/* Estilo para la lupa en modo oscuro */
body.dark-mode .magnifier {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5),
    0 0 10px 5px rgba(255, 255, 255, 0.2);
}

/* Clase para imágenes que pueden tener zoom */
.carousel-images img:not(video) {
  transition: transform 0.3s ease;
}

/* Añadir un borde sutil cuando se pasa el cursor */
.carousel-images img:hover:not(video) {
  outline: 2px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .carousel-images img:hover:not(video) {
  outline: 2px solid rgba(255, 255, 255, 0.1);
}

/* Cursor personalizado para imágenes */
.carousel-images img {
  transition: transform 0.1s ease-out;
  cursor: crosshair;
}

/* Añadir al final de tu archivo CSS */

/* Estilos para el efecto de zoom/lupa */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
}

/* Contenedor para la imagen con zoom */
.zoomable-image {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

/* Estilo para la lupa */
.magnifier {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5),
    0 0 10px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none !important;
  background-repeat: no-repeat;
  transition: opacity 0.2s;
}

/* Estilo para la lupa */

/* ========================================
   BOTÓN VOLVER ARRIBA - PROFESIONAL
   ======================================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

body.dark-mode .scroll-to-top {
  background: linear-gradient(135deg, #bb86fc 0%, #9d6fd4 100%);
  box-shadow: 0 4px 15px rgba(187, 134, 252, 0.4);
}

body.dark-mode .scroll-to-top:hover {
  box-shadow: 0 8px 25px rgba(187, 134, 252, 0.6);
}

/* ========================================
   EFECTOS HOVER MEJORADOS EN PROYECTOS
   ======================================== */
.project-card,
.project-card-solo {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.project-card::before,
.project-card-solo::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.project-card:hover::before,
.project-card-solo:hover::before {
  left: 100%;
}

.project-card:hover,
.project-card-solo:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

body.dark-mode .project-card:hover,
body.dark-mode .project-card-solo:hover {
  box-shadow: 0 12px 35px rgba(187, 134, 252, 0.3);
}

/* Efecto de zoom en imágenes del carrusel al hover */
.carousel-container .carousel-images img {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .carousel-images img,
.project-card-solo:hover .carousel-images img {
  transform: scale(1.05);
}

/* ========================================
   ANIMACIONES DE SCROLL MEJORADAS
   ======================================== */
.fade-in-element {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay escalonado para múltiples elementos */
.projects-container .fade-in-element:nth-child(1) { transition-delay: 0.1s; }
.projects-container .fade-in-element:nth-child(2) { transition-delay: 0.2s; }
.projects-container .fade-in-element:nth-child(3) { transition-delay: 0.3s; }
.projects-container .fade-in-element:nth-child(4) { transition-delay: 0.4s; }
.projects-container .fade-in-element:nth-child(5) { transition-delay: 0.5s; }
.projects-container .fade-in-element:nth-child(6) { transition-delay: 0.6s; }

/* ========================================
   EFECTOS EN BOTONES MEJORADOS
   ======================================== */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ========================================
   ANIMACIÓN SUAVE EN CARDS DE EXPERIENCIA
   ======================================== */
.details-container {
  transition: all 0.3s ease;
}

.details-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

body.dark-mode .details-container:hover {
  box-shadow: 0 8px 20px rgba(187, 134, 252, 0.2);
}

/* ========================================
   ANIMACIÓN EN ICONOS SOCIALES
   ======================================== */
#socials-container .icon {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#socials-container .icon:hover {
  transform: translateY(-5px) scale(1.1);
  filter: drop-shadow(0 5px 10px rgba(102, 126, 234, 0.4));
}

body.dark-mode #socials-container .icon:hover {
  filter: drop-shadow(0 5px 10px rgba(187, 134, 252, 0.4)) invert(1);
}

/* ========================================
   ANIMACIÓN EN LINKS DE NAVEGACIÓN
   ======================================== */
.nav-links a {
  position: relative;
  display: inline-block;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

body.dark-mode .nav-links a::after {
  background: linear-gradient(90deg, #bb86fc, #9d6fd4);
}

/* ========================================
   SMOOTH SCROLL MEJORADO
   ======================================== */
html {
  scroll-padding-top: 100px;
}

/* ========================================
   RESPONSIVE - BOTÓN SCROLL TO TOP
   ======================================== */
@media screen and (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}
