/* RESET Y GENERALES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Valores fluidos con límites usando clamp() */
  font-size: clamp(15px, 1.25vw, 17px);
  /* Móvil: 15px, Escritorio: hasta 17px */
  line-height: 1.4;
  /* Sin unidades para escalar con el font-size */
}

@media (max-width: 48rem) {

  /* 768px / 16px = 48rem (consistente con rem) */
  :root {
    font-size: 15px;
    /* Tamaño base en móviles */
    line-height: 1.35;
  }
}

body {
  font-family: sans-serif;
  background: linear-gradient(-65deg, #350053, #000000);
  color: #e0e0e0;
  min-height: 100vh;
}

/* ======================================================================== */
/* HEADER ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* ======================================================================== */
.header-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5dvh, 4rem) 20px;
  min-height: 100dvh;
  background: linear-gradient(65deg, #8512c7, #410e5f, #000000);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 72rem;
  gap: 1.45rem;
  text-align: center;
}

@media (min-width: 880px) {
  .header-content {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 3rem;
  }
}

.profile-picture {
  flex-shrink: 0;
  border: 3px solid #33e2fd;
  border-radius: 50%;
  overflow: hidden;
  width: clamp(10.5rem, 15vw, 15.5rem);
  height: clamp(10.5rem, 15vw, 15.5rem);
  box-shadow: 2px 3px 20px #22d3eece;

  -webkit-tap-highlight-color: transparent;/* Móviles */
  user-select: none;/* Bloquea selección de texto */
  outline: none;/* Quita borde de enfoque */
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.profile-picture:hover {
  transform: scale(1.0);
}

/* Bouncing ball animation for the container */
.profile-picture.bouncing-ball {
  animation: bouncing-ball 1s ease-out;
}

@keyframes bouncing-ball {

  0%, 15%, 100% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(10deg);
  }

  20% {
    transform: rotate(-15deg);
  }

  60% {
    transform: rotate(8deg);
  }
}


/* HEADER TEXT FORMATS */
.profile-info h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  background: linear-gradient(to right, #0bdeff, #166fff, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.profile-info h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(1.08rem, 1.9vw, 1.38rem);
  color: #e5e5e5;
  margin-bottom: 0.9rem;
  text-align: center;
}

@media (min-width: 880px) {
  .profile-info h2 {
    text-align: left;
  }
}

#DiplomaICON {
  width: 1.35rem;
  height: 1.35rem;
  vertical-align: middle;
  margin-right: 3px;
}

#DiplomaICON {
  --gradient-start: #ec21ff;
  --gradient-end: #27e2ff;
}

.profile-info p {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(1.12rem, 1.55vw, 1.3rem);
  line-height: 1.55;
  max-width: 44rem;
  margin-bottom: 1.45rem;
  color: #e9e4f0;
}

/* HEADER ACTIONS + ICONS LINKS */
.header-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

@media (min-width: 880px) {
  .header-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1.2rem 1.5rem;
  }
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (min-width:880px) {
  .social-links {
    justify-content: flex-start;
  }
}

.btn-arrow-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.explore-projects-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1.3rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(120deg, rgba(11, 222, 255, 0.22), rgba(133, 18, 199, 0.45));
  border: 1px solid rgba(51, 226, 253, 0.55);
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.explore-projects-btn:hover {
  transform: translateY(-2px);
  border-color: #33e2fd;
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.4);
}

.icon {
  width: clamp(3.2rem, 3.2vw, 3.7rem);
  height: clamp(3.2rem, 3.2vw, 3.7rem);

  border-radius: 50%;
  background-color: #444;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.9s cubic-bezier(.62, .15, .39, .89);

  -webkit-tap-highlight-color: transparent; /* Móviles */
  user-select: none; /* Bloquea selección de texto */
  outline: none; /* Quita borde de enfoque */
}

/* ICON LINKEDIN - Versión unificada */
.icon.linkedin {
  background: linear-gradient(to bottom, #0e76df, #0c5297);
  box-shadow: 0px 5px 10px #0000003b;
  border: 1px solid #0a66c29f;
  filter: brightness(1.1);
}

.icon.linkedin svg {
  fill: #ffffff;
  width: 24px;
  height: 24px;
}

/* EFECTO HOVER UNIFICADO */
.icon.linkedin:hover {
  filter: brightness(1.5);
  transform: scale(1.15) rotate(20deg);
  box-shadow:
    0 4px 10px -1px rgb(60, 173, 248),
    0 3px 3px -1px rgb(0, 250, 83);
  border: 1px solid #ffffff;
  transition: 400ms ease-out;
}

/* ICON EMAIL */
.icon.email {
  background: linear-gradient(100deg, #e504ec, #7a117e);
  box-shadow: 0px 5px 10px #0000003b;
  border: 1px solid #9b00a0bd;
  filter: brightness(1.2);
}

.icon.email svg {
  fill: #c9dde6;
  width: 24px;
  height: 24px;
}

.icon.email:hover {
  filter: brightness(1.6);
  transform: scale(1.2) rotate(25deg);
  cursor: pointer;
  box-shadow:
    0 4px 10px 0px rgb(230, 5, 230),
    0 3px 3px -1px rgb(0, 158, 250);
  border: 1px solid #ffffff;
  transition: 400ms ease-out;
}

.copiado-msg {
  position: absolute;
  background-color: #1f2937;
  color: #0bcf2c;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.35s ease-out;
  z-index: 9999;
  font-size: 0.9rem;
}

.copiado-msg.visible {
  opacity: 0.8;
}

/* ======================================================================== */
/* SECCIÓN PROYECTOS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* ======================================================================== */
.projects-section {
  padding: 36px 20px 60px;
  background: repeating-linear-gradient(to bottom right,
      #261944,
      #5e139b,
      #64209c,
      #471570,
      #261944 90%);
  text-align: center;
  box-shadow: 0 0 100px #000000;
}

.projects-header {
  max-width: 1120px;
  margin: 0 auto 2.2rem;
}

.projects-section h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 2.7vw, 2.95rem);
  margin-top: 8px;
  margin-bottom: 6px;
  background: repeating-linear-gradient(-200deg, #ffc400, #e7ff0b, #ee6f34 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =============================== 2x2 SINGLE-IMAGE PREVIEW GRID ==================== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.15rem;
  max-width: 1120px;
  margin: 0 auto 3rem;
}

@media (min-width: 820px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.35rem;
  }
}

.project-preview-card {
  appearance: none;
  text-align: left;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.project-preview-card:hover {
  transform: translateY(-5px);
  background-color: rgba(0, 0, 0, 0.58);
  border-color: rgba(39, 226, 255, 0.65);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.7), 0 0 20px rgba(39, 226, 255, 0.18);
}

.preview-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #090311;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.project-preview-card:hover .preview-media img {
  transform: scale(1.04);
}

.preview-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  color: #e5f9ff;
  border: 1px solid rgba(39, 226, 255, 0.35);
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

.preview-body {
  padding: 1.1rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.preview-category {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #27e2ff;
}

.preview-brand-logo {
  height: 16px;
  width: auto;
  filter: brightness(1.4);
}

.project-preview-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.2rem, 1.5vw, 1.48rem);
  font-weight: 500;
  background: repeating-linear-gradient(60deg,
      rgb(3, 133, 209) 0%,
      rgb(68, 233, 255),
      rgb(0, 255, 234),
      rgb(68, 233, 255),
      rgb(3, 133, 209) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.preview-summary {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  line-height: 1.42;
  color: #dcd6e8;
  flex: 1;
}

.preview-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.35rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.preview-tags span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.15rem 0.52rem;
}

.preview-cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  color: #33e2fd;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  transition: transform 0.25s ease;
}

.project-preview-card:hover .preview-cta {
  transform: translateX(4px);
}

.portfolio-tech-strip {
  max-width: 1120px !important;
  margin-block-end: 1.2rem !important;
  padding: 16px 22px !important;
}

.portfolio-tech-strip .technologies {
  margin-top: 0;
}

.portfolio-tech-strip .technologies h4 {
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  margin-bottom: 0.75rem;
}

/* =============================== RECUADROS DE PROYECTOS ==================== */
.project-card {
  max-width: 95vw;
  margin-inline: auto;
  background-color: rgba(0, 0, 0, 0.438);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: -0.7vw 2vw 5vw #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-block-end: 4rem;
  transition: 800ms ease;
}

@media (min-width:768px) {
  .project-card {
    max-width: 80vw;
  }
}

.project-card:hover {
  background-color: rgba(0, 0, 0, 0.370);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: 500ms ease;
}

.project-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  font-weight: 500;
  background: repeating-linear-gradient(60deg,
      rgb(3, 133, 209) 0%,
      rgb(68, 233, 255),
      rgb(0, 255, 234),
      rgb(68, 233, 255),
      rgb(3, 133, 209) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  align-items: center;
}

#LogosProjects {
  filter: brightness(1.4);
}

/* ======================================================================== */
/* PICTURES CAROUSEL ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* ======================================================================== */
.body-carousel {
  background-color: #0000009a;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  border-radius: 20px;
  justify-items: center;
  /* width: 60vw; */
  /* margin: 0 auto; */
  box-shadow: 0 0 30px #000000;
}

@media (min-width:768px) {
  .body-carousel {
    margin: auto;
    max-width: 60vw;
  }
}

.gallery-container {
  position: relative;
  /* width: 60vw; */
  height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border-radius: 20px; */
}

.carousel {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* touch-action: pan-y; */
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}


.slide {
  flex: none;
  width: 100%;
  height: 100%;
  position: relative;
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease;

  -webkit-tap-highlight-color: transparent;
  /* Móviles */
  user-select: none;
  /* Bloquea selección de texto */
  outline: none;
  /* Quita borde de enfoque */
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
  border-radius: 3%;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
  background-color: rgba(0, 0, 0, 0);
  border: #050007;
  z-index: 10;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: opacity 0.3s ease;
  transition: text-shadow 0.3s ease, font-size 0.4s ease, color 0.4s ease;
}

.nav-button.left {
  left: -1rem;
}

.nav-button.right {
  right: -1rem;
}

.nav-button:disabled {
  opacity: 0;
  cursor: not-allowed;
  transition: opacity 0.3s ease;
}

.nav-button:hover {
  text-shadow: 0 0 7px #00000083;
  font-size: 3.3rem;
  color: rgba(255, 255, 255, 1);
  transition: text-shadow 0.3s ease, font-size 0.4s ease, color 0.4s ease;
}

.scroll-points {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 1%;
  overflow-x: auto;
  width: 300px;
  /* margin: 0 auto; */
  /* position: relative; */
  scroll-behavior: smooth;
  /* padding: 10px 0; */
  /* mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent); */
  /* -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent); */
  /* scrollbar-width: none;  */
}

.scroll-points::-webkit-scrollbar {
  display: none;
}

.scroll-points div {
  width: 8px;
  height: 8px;
  cursor: pointer;
  background: #aaaaaa7a;
  border-radius: 100%;
}

.scroll-points div.highlighted {
  background-color: #c2c2c2c0;
}

.description-overlay {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%) translateY(300%);
  color: rgb(243, 243, 243);
  text-shadow: 1px 2px 3px rgb(0, 0, 0);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  width: clamp(19rem, 35vw, 40rem);
  border-radius: 12px;
  display: block;
  z-index: 20;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  /* max-width: 100%; */
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.description-overlay.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ======================================================================== */
/* CAROUSEL INSTRUCTIONS OVERLAY */
/* ======================================================================== */
.carousel-instructions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 30;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 20px;
  gap: 2rem;
  padding: 2rem;
  font-family: 'Inter', sans-serif;
}

.carousel-instructions.show {
  opacity: 1;
  transform: scale(1);
}

.instruction-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: white;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 500;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .instruction-item {
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
  }
}

.hand-animation {
  width: 40px;
  height: 40px;
  position: relative;

  -webkit-tap-highlight-color: transparent; /* Móviles */
  user-select: none; /* Bloquea selección de texto */
  outline: none; /* Quita borde de enfoque */
}

.hand-icon {
  width: 100%;
  height: 100%;
  fill: #27e2ff;

  
}

.single-click .hand-icon {
  animation: single-click-animation 2s ease-in-out infinite;
}

.double-click .hand-icon {
  animation: double-click-animation 2s ease-in-out infinite;
}

@keyframes single-click-animation {

  0%,
  10%,
  40%,
  100% {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(39, 226, 255, 0.5));
  }

  25% {
    transform: scale(0.9);
    filter: drop-shadow(0 0 0.7rem rgb(255, 255, 255)) drop-shadow(0 0 0.7rem rgba(255, 255, 255, 0.3));
  }
}

@keyframes double-click-animation {

  0%,
  20%,
  40%,
  50%,
  100% {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(39, 226, 255, 0.5));
  }

  10%,
  30% {
    transform: scale(0.9);
    filter: drop-shadow(0 0 0.7rem rgb(255, 255, 255)) drop-shadow(0 0 0.7rem rgba(255, 255, 255, 0.3));
  }
}

/* ======================================================================== */
/* CONTENEDOR VIDEO */
/* ======================================================================== */
.video-container {
  margin: 0px 0;
}

.video-preview {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 10px auto;
  cursor: pointer;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 5px 5px 6px rgba(3, 49, 255, 0.705);
  aspect-ratio: 16/9;
  /* Mantener relación de aspecto */
  background-color: #000000;
  transition: transform 0.7s ease, box-shadow 0.7s ease;
}

.video-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: large;
  text-shadow: 0 0px 3px #000000, 0 3px 5px #000000;
  position: absolute;
  left: 0;
  right: 0;
  top: 7%;
  opacity: 0;
  transform: translate(-0%, -100%);
  transition: opacity 0.9s ease, transform 0.3s ease;
  text-align: center;
}

.video-preview:hover {
  transform: scale(1.04);
  box-shadow: 3px 3px 8px rgba(207, 0, 0, 0.705);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-preview:hover .video-title {
  transform: scale(1.04);
  transition: opacity 0.5s ease, transform 0.9s ease;
  opacity: 1;
}

.video-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background-color: rgba(255, 255, 255, 0.8);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #1900ffad;
  pointer-events: none;
  transition: transform 0.3s ease-out, color 0.3s ease;
}

.video-preview:hover .play-button {
  transform: scale(1.3);
  transition: transform 0.3s ease-out, color 0.3s ease-out;
  color: #ff0000ad;
}

/* ======================================================================== */
/* PROJECTS DESCRIPTION (TEXTS) */
/* ======================================================================== */
.project-description {
  padding-inline: clamp(0.2rem, 1vw, 2rem);
  /* padding-inline: 15rem; */
}

@media (min-width:768px) {
  .project-description {
    padding-inline: clamp(1.7rem, 6vw, 12rem);
    /* padding-inline: clamp(0.2rem, 6vw, 10rem);
     */
  }
}

.project-description h4 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.35rem, 1.8vw, 2rem);
  font-weight: 300;
  background: repeating-linear-gradient(60deg,
      rgb(3, 133, 209) 0%,
      rgb(68, 255, 208),
      rgb(0, 255, 64),
      rgb(68, 255, 224),
      rgb(3, 133, 209) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.65rem;
  align-items: center;
}

.project-description p {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.1vw, 1.12rem);
  color: #e0e0e0;
  text-align: left;
  line-height: 1.48;
}

.project-description h5 {
  margin-bottom: 0.75rem;
  margin-top: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.15rem, 1.5vw, 1.55rem);
  background: repeating-linear-gradient(60deg,
      rgb(3, 133, 209) 0%,
      rgb(68, 233, 255),
      rgb(0, 255, 234),
      rgb(68, 233, 255),
      rgb(3, 133, 209) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-description li {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.1vw, 1.12rem);
  color: #e0e0e0;
  list-style-type: disc;
  text-align: left;
  line-height: 1.48;
}


/* ======================================================================== */
/* BOTÓN PDF */
/* ======================================================================== */
.pdf-button {
  background: linear-gradient(-255deg, #ff0808, #800202);
  color: white;
  border: none;
  width: clamp(7.8rem, 9.5vw, 11rem);
  height: 2.5rem;

  border-radius: 8px;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 2px 3px 3px #050007;
  transition: 0.3s ease;
}

.pdf-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pdf-button:hover {
  filter: brightness(1.2);
  transform: scale(1.06);
  box-shadow: 0px 0px 6px #ffffff;
  transition: 0.2s ease-in;
}

/* ======================================================================== */
/* TECHNOLOGIES LITTLE CONTAINERS */
/* ======================================================================== */
.technologies {
  margin-top: 0.85rem;
}

.technologies h4 {
  font-weight: 300;
  font-family: 'Fredoka', sans-serif;
  background: repeating-linear-gradient(60deg,
      rgb(3, 133, 209) 0%,
      rgb(68, 233, 255),
      rgb(0, 255, 234),
      rgb(68, 233, 255),
      rgb(3, 133, 209) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.15rem, 1.45vw, 1.55rem);
  margin-bottom: 0.85rem;
}

.tech-bubbles {
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  column-gap: 8px;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: clamp(0.76rem, 0.88vw, 0.86rem);
}

.tech-bubbles svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.tech-bubble-purple {
  background-color: #efe0ff;
  color: #35006e;
  border-radius: 16px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tech-bubble-bluedeep {
  background-color: #e7f2ff;
  color: #35006e;
  border-radius: 16px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tech-bubble-green {
  background-color: #d8f1e4;
  color: #0e3e24;
  border-radius: 16px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tech-bubble-aqua {
  background-color: #e4ffff;
  color: #031c1d;
  border-radius: 16px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tech-bubble-yellow {
  background-color: #f7efd7;
  color: #4b3400;
  border-radius: 16px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tech-bubble-wine {
  background-color: #ffd5ec;
  color: #6e004d;
  border-radius: 16px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tech-bubble-orange {
  background-color: #ffddd7;
  color: #691403;
  border-radius: 16px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tech-bubble-lila {
  background-color: #e1deff;
  color: #7a0903;
  border-radius: 16px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tech-bubble-dark {
  background-color: #d2d2ff;
  color: #020205;
  border-radius: 16px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ======================================================================== */
/* FOOTER +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* ======================================================================== */
.site-footer {
  background: repeating-linear-gradient(50deg, #351053, #050007);
  padding: 48px 0;
  border-top: 1px solid #272727;
  /*DEFINICIÓN DE BORDE*/
  border-image: linear-gradient(to right, #27e2ff, #7e22ce) 1;
  /*COLORACIÓN DE BORDE*/
  box-shadow: 0 -5px 20px rgba(39, 226, 255, 0.3);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ============================= FOOTER EMAIL =================================== */
.footer-email {
  color: #8a8a8a;
  background: linear-gradient(to right, #1ca6bb, #7e22ce);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .footer-email {
    justify-content: flex-start;
  }
}

/* ============================= FOOTER BOLT ICON =================================== */
.bolt-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .bolt-icon {
    justify-content: flex-end;
  }
}

/* xxxxxxxxxxxXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */


/* ======================================================================== */
/* FUNCTIONALITIES WITH .JS */
/* ======================================================================== */
/* Enhanced Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(15px);
  animation: lightbox-fade-in 0.3s ease;
}

@keyframes lightbox-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-image-container {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-content.zoomed {
  cursor: grab;
  /* transition: none; */
  transform: translate(0px, 0px) scale(3);
}

.lightbox-content.zoomed:active {
  cursor: grabbing;
}


.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #ff4444;
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

/* Navigation buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.1);
  color: white;
  border: none;
  font-size: 2.5rem;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 1001;
  /* backdrop-filter: blur(10px); */
}

.lightbox-nav:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
  color: #00d4ff;
}

.lightbox-nav:disabled {
  opacity: 0.1;
  cursor: not-allowed;
}

.lightbox-nav.prev {
  left: 30px;
}

.lightbox-nav.next {
  right: 30px;
}

/* Description and counter */
.lightbox-description {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.0);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-align: center;
  max-width: 80%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: none;
  /*LO APAGUÉ A PROPÓSITO*/
}

.lightbox-counter {
  position: fixed; /* Changed from relative to fixed */
  top: 1rem; /* Distance from top of viewport */
  left: 50%;
  transform: translateX(-50%);
  color: #ccc;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  z-index: 1001; /* Above lightbox (ensure lightbox has z-index: 1000 or lower) */
  pointer-events: none; /* Allows clicks to pass through to lightbox */
}

.lightbox-zoom-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 12px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

/* Responsive lightbox */
@media (max-width: 768px) {
  .lightbox-nav {
    font-size: 2rem;
    padding: 10px 15px;
  }

  .lightbox-nav.prev {
    left: 15px;
  }

  .lightbox-nav.next {
    right: 15px;
  }

  .close-btn {
    top: 15px;
    right: 15px;
    font-size: 30px;
    width: 50px;
    height: 50px;
  }
}

/* ======================================================================== */
/* DEDICATED PROJECT DETAIL VIEW (OPTION 1B) */
/* ======================================================================== */
.project-detail-view {
  padding: 28px 20px 60px;
  min-height: calc(100vh - 120px);
  background: repeating-linear-gradient(to bottom right,
      #261944,
      #5e139b,
      #64209c,
      #471570,
      #261944 90%);
  text-align: center;
}

.project-topbar {
  max-width: 1120px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.56rem 1.05rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(51, 226, 253, 0.5);
  color: #e6fbff;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.back-home-btn:hover {
  transform: translateX(-3px);
  border-color: #33e2fd;
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.3);
}

.detail-project-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.switcher-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d7d2e2;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.switcher-btn:hover {
  border-color: rgba(39, 226, 255, 0.55);
  color: #ffffff;
}

.switcher-btn.active {
  background: linear-gradient(120deg, rgba(11, 222, 255, 0.25), rgba(133, 18, 199, 0.55));
  border-color: #27e2ff;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(39, 226, 255, 0.25);
}

.project-detail-page {
  max-width: 1120px !important;
  margin-block-end: 1.5rem !important;
  animation: page-fade-in 0.3s ease;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 0.4rem;
}

@media (min-width: 860px) {
  .project-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.detail-block {
  padding: 1.1rem 1.25rem !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
}

.detail-block h5 {
  margin-top: 0 !important;
  font-size: clamp(1.1rem, 1.4vw, 1.4rem) !important;
  text-align: left;
}

.detail-block p,
.detail-block li {
  font-size: clamp(0.9rem, 1.02vw, 1.02rem) !important;
  line-height: 1.48 !important;
}

.detail-block ul {
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.project-bottom-nav {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.bottom-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(39, 226, 255, 0.4);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
  .bottom-nav-btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.85rem;
  }
}

.bottom-nav-btn:hover {
  transform: translateY(-2px);
  border-color: #27e2ff;
  box-shadow: 0 4px 16px rgba(39, 226, 255, 0.28);
}

/* ======================================================================== */
/* PDF MODAL VIEWER */
/* ======================================================================== */
.pdf-modal-content {
  width: min(92vw, 1000px);
  height: min(88vh, 820px);
  background: #12071f;
  border: 1px solid rgba(39, 226, 255, 0.4);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pdf-download-link {
  color: #27e2ff;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(39, 226, 255, 0.4);
  transition: background-color 0.2s ease;
}

.pdf-download-link:hover {
  background: rgba(39, 226, 255, 0.15);
}

.pdf-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.3rem;
}

.pdf-modal-close:hover {
  color: #ff4444;
}

#pdf-viewer {
  width: 100%;
  flex: 1;
  border: none;
  background: #ffffff;
}

.video-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 88vh;
}

.video-error-msg {
  padding: 1rem 1.4rem;
  border-radius: 12px;
  background: rgba(18, 7, 31, 0.92);
  border: 1px solid rgba(39, 226, 255, 0.45);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-align: center;
}

[hidden] {
  display: none !important;
}

.project-detail-page .body-carousel {
  width: 100%;
  max-width: 900px;
  margin: 0.5rem auto;
}

.project-detail-page .gallery-container {
  width: 100%;
  height: clamp(280px, 56vh, 600px);
}