/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: default;
}

body {
  font-family: "Courier New", monospace;
  background-color: white;
  color: black;
  line-height: 1.6;
  overflow-x: hidden;
}

  .nb-table-container {
      max-width: 900px;
      width: 100%;
      background-color: #fdfdfd;
      border: 4px solid #000;
      box-shadow: 10px 10px 0 #000;
      padding: 30px;
      margin: 20px auto;
    }

    .nb-table-title {
      font-size: 28px;
      font-weight: bold;
      text-transform: uppercase;
      text-align: center;
      margin-bottom: 30px;
    }

    .nb-table {
      width: 100%;
      border-collapse: collapse;
      display: table;
    }

    .nb-table thead {
      display: table-header-group;
    }

    .nb-table tr {
      display: table-row;
    }

    .nb-table th,
    .nb-table td {
      padding: 16px;
      border: 2px solid #000;
      text-align: left;
      font-size: 16px;
      background-color: #d0f0fd;
    }

    .nb-table tr:nth-child(even) td {
      background-color: #fff5cc;
    }

    .nb-table th {
      background-color: #ffadad;
      font-weight: bold;
    }
    .nb-table tr:hover td {
  background-color: #fef46d;
}

    /* TARJETAS EN MÓVIL */
    @media screen and (max-width: 768px) {
      .nb-table {
        display: block;
      }

      .nb-table thead {
        display: none;
      }

      .nb-table tbody {
        display: flex;
        flex-direction: column;
        gap: 20px;
      }

      .nb-table tr {
        display: block;
        border: 3px solid #000;
        box-shadow: 6px 6px 0 #000;
        padding: 15px;
        background-color: #fff;
      }

      .nb-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border: none;
        border-bottom: 2px solid #000;
        font-size: 15px;
        background-color: transparent;
      }

      .nb-table td:last-child {
        border-bottom: none;
      }

      .nb-table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
      }

      .nb-table tr:nth-child(even) {
        background-color: #fff5cc;
      }
    }

/* Navegación */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  border-bottom: 4px solid black;
  z-index: 1000;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: black;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-link:hover {
  border-color: black;
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 black;
}

/* Modificar el estilo del enlace activo para que no tenga fondo negro */
.active-link {
  border-color: black;
  background-color: transparent;
  color: black;
  font-weight: bold;
  text-decoration: underline;
}

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.hamburger {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background: black;
  transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: black;
  transition: all 0.3s ease-in-out;
}

.hamburger::before {
  transform: translateY(-8px);
}

.hamburger::after {
  transform: translateY(8px);
}

.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
}

/* Estructura base */
.section {
  padding: 6rem 2rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Sección de inicio */
#start {
  background-color: white;
  text-align: center;
  position: relative;
}

#start::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #f5f5f5 0px,
    #f5f5f5 10px,
    #ffffff 10px,
    #ffffff 20px
  );
  opacity: 0.3;
  z-index: 0;
}

.name {
  font-size: 5rem;
  font-weight: bold;
  margin: 1rem 0;
  border: 5px solid black;
  display: inline-block;
  padding: 1rem 2rem;
  transform: rotate(-2deg);
  background-color: white;
  position: relative;
  z-index: 2;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.8);
}

.title {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

/* Estilos base para los contenedores de enlaces */
.redes-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.redes-link {
  text-decoration: none;
  color: black;
  border: 3px solid black;
  padding: 0.5rem 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: white;
  margin-bottom: 0.5rem;
  position: relative;
  overflow: hidden;
}

.redes-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: black;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.redes-link:hover {
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 black;
  color: white;
}

.redes-link:hover::before {
  transform: translateX(100%);
}

.redes-link:active {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 black;
}

/* Sección About */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 2rem 0;
}

.about-text {
  font-size: 1.2rem;
  border: 4px solid black;
  padding: 2.5rem;
  background-color: white;
  transform: rotate(0deg);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}

.about-text p {
  margin-bottom: 1rem;
  position: relative;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text p::before {
  content: ">";
  color: #000;
  margin-right: 8px;
  font-weight: bold;
}

.about-image {
  display: flex;
  justify-content: flex-end;
}

.image-placeholder {
  width: 85%;
  aspect-ratio: 1;
  background-color: black;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transform: rotate(0deg);
  border: 4px solid black;
  position: relative;
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}

.image-placeholder::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  background-color: white;
  transform: rotate(45deg);
}

.contenido-imagen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(0deg);
  transition: all 0.5s ease;
}

.image-placeholder:hover .contenido-imagen {
  transform: scale(1.05);
}

/* Sección Projects con DISEÑO COMPLETAMENTE NUEVO */
.section-title {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 4px;
  background-color: black;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

/* DISEÑO TILT 3D INTERACTIVO DE TARJETAS DE PROYECTOS - VERSIÓN PREMIUM */
.project-card {
  position: relative;
  height: 400px;
  width: 100%;
  overflow: visible;
  cursor: pointer;
  perspective: 1200px;
  margin-bottom: 30px;
}

.project-tilt-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 5px solid black;
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.2);
  transform: perspective(1200px) rotateX(0) rotateY(0) scale3d(1, 1, 1);
  will-change: transform;
  background-color: white;
}

/* Decoración de esquina */
.project-tilt-container::before {
  content: "";
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  background-color: black;
  transform: rotate(45deg);
  z-index: 10;
}

/* Líneas decorativas */
.project-tilt-container::after {
  content: "";
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-right: 4px solid rgba(0, 0, 0, 0.2);
  border-bottom: 4px solid rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: all 0.5s ease;
}

.project-card:hover .project-tilt-container::after {
  width: 80px;
  height: 80px;
  border-color: rgba(0, 0, 0, 0.4);
}

.project-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  transform: scale(1.05);
  filter: grayscale(30%);
}

.project-card:hover .project-image {
  transform: scale(1.15);
  filter: grayscale(0%);
}

.project-color-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
  opacity: 0.85;
  transition: opacity 0.5s ease, background 0.5s ease;
}

.project-card:hover .project-color-overlay {
  opacity: 0.75;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

/* Número de proyecto rediseñado */
.project-number {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 7rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  z-index: 3;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateZ(20px);
  line-height: 0.8;
  padding: 20px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.project-card:hover .project-number {
  color: rgba(255, 255, 255, 0.07);
  transform: translateZ(40px) translateX(-10px) translateY(-10px);
}

/* Patrón decorativo */
.project-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 10px,
    transparent 10px,
    transparent 20px
  );
  z-index: 3;
  transition: all 0.5s ease;
  opacity: 0.5;
}

.project-card:hover .project-pattern {
  width: 150px;
  height: 150px;
  opacity: 0.7;
}

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem;
  color: white;
  z-index: 3;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateZ(30px);
}

.project-card:hover .project-content {
  transform: translateZ(60px);
}

.project-title-container {
  margin-bottom: 1.5rem;
  position: relative;
}

/* Línea decorativa para el título */
.project-title-container::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: white;
  transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
}

.project-card:hover .project-title-container::after {
  width: 80px;
}

.project-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.project-card:hover .project-title {
  transform: translateY(0);
  opacity: 1;
}

.project-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.05s;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.project-card:hover .project-subtitle {
  transform: translateY(0);
  opacity: 1;
}

.project-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.8rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
  position: relative;
  padding-left: 15px;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.project-card:hover .project-description {
  max-height: 100px;
  opacity: 1;
  margin-bottom: 1.8rem;
}

.project-links {
  display: flex;
  gap: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
}

.project-card:hover .project-links {
  opacity: 1;
  transform: translateY(0);
}

/* Botones rediseñados */
.project-link {
  text-decoration: none;
  color: white;
  background-color: transparent;
  padding: 0.7rem 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  border: 3px solid white;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.project-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}

.project-link:hover {
  color: black;
  transform: translate(-5px, -5px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.project-link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.project-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-card:hover .project-shine {
  opacity: 1;
}

/* Ajustes para pantallas más pequeñas */
@media (max-width: 768px) {
  .project-content {
    padding: 1.8rem;
  }

  .project-title {
    font-size: 1.8rem;
  }

  .project-subtitle {
    font-size: 1.1rem;
  }

  .project-description {
    font-size: 0.95rem;
  }

  .project-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
  }

  .project-number {
    font-size: 5rem;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .project-content {
    padding: 1.5rem;
  }

  .project-title {
    font-size: 1.5rem;
  }

  .project-subtitle {
    font-size: 1rem;
  }

  .project-description {
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: 10px;
  }

  .project-link {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .project-number {
    font-size: 4rem;
    padding: 10px;
  }

  .project-tilt-container {
    border-width: 4px;
  }
}

/* Sección Education con animación mejorada */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.education-card {
  border: 3px solid black;
  padding: 2rem;
  background-color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
}

.education-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}

.education-card:hover,
.education-card.active-touch {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 15px 15px 0 rgba(0, 0, 0, 0.2);
}

.education-card:hover::before,
.education-card.active-touch::before {
  transform: translateY(0) rotate(10deg) scale(2);
}

.education-year {
  display: inline-block;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: white;
  background-color: black;
  padding: 0.3rem 0.8rem;
  position: relative;
  overflow: hidden;
}

.education-year::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  transition: transform 0.6s ease;
}

.education-card:hover .education-year::before,
.education-card.active-touch .education-year::before {
  transform: translateX(200%);
}

.education-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.education-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: black;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.education-card:hover .education-title,
.education-card.active-touch .education-title {
  transform: translateX(5px);
}

.education-card:hover .education-title::after,
.education-card.active-touch .education-title::after {
  width: 100%;
}

.education-school {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  transition: all 0.3s ease;
}

.education-card:hover .education-school,
.education-card.active-touch .education-school {
  transform: translateX(-5px);
  color: #333;
}

.education-description {
  font-size: 1rem;
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
  line-height: 1.6;
}

.education-card:hover .education-description,
.education-card.active-touch .education-description {
  transform: translateY(-3px);
  opacity: 1;
}

/* Mejoras responsive para las tarjetas de educación */
@media (max-width: 1200px) {
  .education-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }

  .education-card {
    padding: 1.8rem;
  }

  .education-title {
    font-size: 1.4rem;
  }

  .education-school {
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .education-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
  }

  .education-card {
    padding: 1.5rem;
  }

  .education-title {
    font-size: 1.3rem;
  }

  .education-year {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .education-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .education-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 1.5rem;
  }

  .education-card:hover,
  .education-card.active-touch {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 576px) {
  .education-grid {
    gap: 1.2rem;
    margin-top: 1.5rem;
  }

  .education-card {
    padding: 1.2rem;
    border-width: 2px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
  }

  .education-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }

  .education-year {
    font-size: 0.85rem;
    padding: 0.25rem 0.7rem;
  }

  .education-school {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }

  .education-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .education-card:hover,
  .education-card.active-touch {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 400px) {
  .education-card {
    padding: 1rem;
  }

  .education-title {
    font-size: 1.1rem;
  }

  .education-year {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  }

  .education-school {
    font-size: 0.9rem;
  }

  .education-description {
    font-size: 0.85rem;
  }

  .education-card:hover,
  .education-card.active-touch {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
  }
}

/* Mejoras para dispositivos táctiles */
.touch-device .education-card {
  cursor: pointer;
}

.touch-device .education-card:active {
  transform: scale(0.98);
  transition: transform 0.2s ease;
}

.touch-device .education-card.active-touch {
  border-color: black;
  background-color: #fafafa;
}

/* Active state for touch devices */
.touch-device .skill-card.touch-active {
  transform: translate(-5px, -5px);
  box-shadow: 12px 12px 0 black;
}

.touch-device .skill-card.touch-active .skill-logo {
  transform: translateY(-10px);
}

.touch-device .skill-card.touch-active .skill-logo img {
  filter: grayscale(0%);
}

.touch-device .skill-card.touch-active .skill-name {
  transform: translateY(0);
  background-color: rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
  }

  .skill-card {
    border-width: 2px;
    box-shadow: 6px 6px 0 black;
  }

  .skill-card::before {
    width: 15px;
    height: 15px;
    top: -7px;
    right: -7px;
  }

  .skill-name {
    padding: 6px 3px;
    font-size: 0.8rem;
  }

  .skill-card:hover,
  .touch-device .skill-card.touch-active {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 black;
  }
}

@media (max-width: 576px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
  }

  .skill-name {
    padding: 5px 2px;
    font-size: 0.75rem;
  }
}

@media (max-width: 400px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
  }

  .skill-card {
    border-width: 2px;
    box-shadow: 5px 5px 0 black;
  }

  .skill-card::before {
    width: 12px;
    height: 12px;
    top: -6px;
    right: -6px;
  }

  .skill-name {
    padding: 4px 2px;
    font-size: 0.7rem;
  }

  .skill-card:hover,
  .touch-device .skill-card.touch-active {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 black;
  }
}

/* Ocultar los puntos indicadores de nivel */
.skill-level-indicator {
  display: none;
}

.skill-dot {
  display: none;
}

/* RESTAURACIÓN DEL FORMULARIO DE CONTACTO */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  border: 4px solid black;
  padding: 2.5rem;
  background-color: white;
  position: relative;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.2);
}

.contact-form::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 30px;
  height: 30px;
  background-color: black;
  z-index: -1;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 3px solid black;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  background-color: white;
  cursor: text;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.form-group textarea {
  min-height: 150px;
  resize: none;
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 0.8rem;
  transition: all 0.3s ease;
  pointer-events: none;
  font-weight: bold;
  background-color: transparent;
  padding: 0 0.3rem;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label {
  pointer-events: none;
  font-weight: bold;
  background-color: transparent;
  padding: 0 0.3rem;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label,
.form-group label.active {
  transform: translateY(-2.2rem);
  font-size: 0.9rem;
  color: black;
  background-color: white;
}

.submit-button {
  background-color: black;
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-weight: bold;
  font-family: "Courier New", monospace;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.submit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transition: transform 0.6s ease;
  z-index: -1;
}

.submit-button:hover {
  transform: translate(-5px, -5px);
  box-shadow: 5px 5px 0 black;
}

.submit-button:hover::before {
  transform: translateX(200%);
}

/* Mejoras responsivas para el formulario de contacto */
@media (max-width: 768px) {
  .contact-form {
    padding: 2rem;
    border-width: 3px;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.15);
    max-width: 90%;
  }

  .contact-form::before {
    width: 25px;
    height: 25px;
    top: -12px;
    left: -12px;
  }

  .form-group {
    margin-bottom: 1.8rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.7rem 0.9rem;
    border-width: 2px;
    font-size: 0.95rem;
  }

  .form-group label {
    left: 0.9rem;
    top: 0.7rem;
    font-size: 0.95rem;
  }

  .form-group input:focus ~ label,
  .form-group textarea:focus ~ label,
  .form-group input:valid ~ label,
  .form-group textarea:valid ~ label,
  .form-group label.active {
    transform: translateY(-2rem);
    font-size: 0.85rem;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .submit-button {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .contact-form {
    padding: 1.5rem;
    border-width: 3px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
    max-width: 95%;
  }

  .contact-form::before {
    width: 20px;
    height: 20px;
    top: -10px;
    left: -10px;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.6rem 0.8rem;
    border-width: 2px;
    font-size: 0.9rem;
  }

  .form-group label {
    left: 0.8rem;
    top: 0.6rem;
    font-size: 0.9rem;
  }

  .form-group input:focus ~ label,
  .form-group textarea:focus ~ label,
  .form-group input:valid ~ label,
  .form-group textarea:valid ~ label,
  .form-group label.active {
    transform: translateY(-1.8rem);
    font-size: 0.8rem;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .submit-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .contact-form {
    padding: 1.2rem;
    border-width: 2px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
  }

  .contact-form::before {
    width: 15px;
    height: 15px;
    top: -8px;
    left: -8px;
  }

  .form-group {
    margin-bottom: 1.3rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.5rem 0.7rem;
    border-width: 2px;
    font-size: 0.85rem;
  }

  .form-group label {
    left: 0.7rem;
    top: 0.5rem;
    font-size: 0.85rem;
  }

  .form-group input:focus ~ label,
  .form-group textarea:focus ~ label,
  .form-group input:valid ~ label,
  .form-group textarea:valid ~ label,
  .form-group label.active {
    transform: translateY(-1.6rem);
    font-size: 0.75rem;
  }

  .form-group textarea {
    min-height: 90px;
  }

  .submit-button {
    padding: 0.7rem 1.2rem;
  }
}

/* Mejoras para dispositivos táctiles */
.touch-device .form-group input,
.touch-device .form-group textarea {
  font-size: 16px;
  /* Evita el zoom automático en iOS */
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.touch-device .submit-button {
  padding: 1rem 0;
  width: 100%;
  margin-top: 0.5rem;
  -webkit-appearance: none;
  appearance: none;
  /* Elimina estilos por defecto en iOS */
  border-radius: 0;
}

.touch-device .form-group input:focus,
.touch-device .form-group textarea:focus {
  transform: none;
  /* Evitar transformaciones que puedan causar problemas en móviles */
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Mejora para el estado activo del botón en dispositivos táctiles */
.touch-device .submit-button:active {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 black;
  background-color: #333;
}

/* Añadir animaciones de scroll para las tarjetas de proyecto */
.project-card.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.project-card .project-image {
  transition: all 0.6s ease;
}

.project-card .project-content {
  transition: all 0.6s ease;
}

/* Modificar los estilos del menú hamburguesa para reducir el uso de negro */
@media (max-width: 768px) {
  /* Enlaces mejorados dentro del menú hamburguesa */
  .nav-link {
    position: relative;
    padding: 0.8rem 1rem;
    margin: 0.7rem auto;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 85%;
    background-color: white;
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
  }

  /* Efecto hover para los enlaces */
  .nav-link:hover {
    background-color: #f5f5f5;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  /* Efecto focus para los enlaces */
  .nav-link:focus {
    background-color: #f0f0f0;
    color: black;
    outline: 2px solid black;
    outline-offset: -4px;
    box-shadow: 0 0 0 2px white;
  }

  /* Efecto active para los enlaces */
  .nav-link:active {
    background-color: #e8e8e8;
    color: black;
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  /* Estilo para el enlace activo */
  .nav-link.active-link {
    background-color: white;
    color: black;
    border: 2px solid black;
    box-shadow: 0 0 0 2px white;
    text-decoration: none;
    position: relative;
  }

  /* Indicador para el enlace activo */
  .nav-link.active-link::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 2px;
    background-color: black;
  }

  /* Efecto hover para el enlace activo */
  .nav-link.active-link:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
  }
}

/* Eliminar el movimiento no deseado en las tarjetas de proyectos */
.project-card.scroll-animate .project-image {
  opacity: 0.9;
  /* Eliminar la transformación que causa el movimiento */
  transform: scale(1.05);
}

.project-card.scroll-animate .project-content {
  opacity: 0;
  /* Eliminar la transformación que causa el movimiento */
  transform: translateY(0);
}

.project-card.in-view .project-image.animated {
  opacity: 1;
  /* Mantener la escala consistente */
  transform: scale(1.05);
}

.project-card.in-view .project-content.animated {
  opacity: 1;
  /* Eliminar la transformación que causa el movimiento */
  transform: translateY(0);
}

/* Ajustar la animación de entrada para las tarjetas de proyecto */
.project-card.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.project-card .project-image {
  transition: all 0.6s ease;
}

.project-card .project-content {
  transition: all 0.6s ease;
}

.project-card.scroll-animate .project-image {
  opacity: 0.6;
  transform: scale(1.05) translateY(20px);
}

.project-card.scroll-animate .project-content {
  opacity: 0;
  transform: translateY(20px);
}

.project-card.in-view .project-image.animated {
  opacity: 1;
  transform: scale(1.05) translateY(0);
}

.project-card.in-view .project-content.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Asegurar que los elementos de scroll no interfieran con la interacción */
.touch-device .section {
  touch-action: pan-y;
  /* Permitir solo scroll vertical */
}

/* Footer */
.footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 4px solid black;
  background-color: #f9f9f9;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #f5f5f5 0px,
    #f5f5f5 10px,
    #f9f9f9 10px,
    #f9f9f9 20px
  );
  opacity: 0.5;
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-link {
  text-decoration: none;
  color: black;
  transition: all 0.3s ease;
  font-weight: bold;
  position: relative;
}

.footer-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: black;
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: black;
  cursor: pointer;
}

.footer-link:hover::after {
  width: 100%;
}

/* Animación inicial de carga */
.initial-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out;
}

.initial-loading.hide {
  opacity: 0;
  pointer-events: none;
}

.loading-text {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.5em;
  animation: loadingText 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: opacity;
}

/* Animaciones para la sección de inicio */
.animate-title {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.animate-title.show {
  opacity: 1;
  transform: translateY(0);
}

/* Efecto glitch mejorado */
.glitch {
  font-size: 3rem;
  font-weight: bold;
  position: relative;
  text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
    -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  animation: glitch 500ms infinite;
  will-change: text-shadow;
}

/* ANIMACIONES DE SCROLL MEJORADAS */
.scroll-animation {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Animaciones de entrada */
/* Animación para las secciones al hacer scroll */
.fade-in-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Asegúrate de que esta regla sea específica */
.scroll-animation.active {
  opacity: 1 !important;
  transform: translate(0) scale(1) rotate(0) rotateX(0) rotateY(0) !important;
}

.scroll-animation.from-bottom {
  transform: translateY(100px);
}

.scroll-animation.from-top {
  transform: translateY(-100px);
}

.scroll-animation.from-left {
  transform: translateX(-100px);
}

.scroll-animation.from-right {
  transform: translateX(100px);
}

.scroll-animation.zoom-in {
  transform: scale(0.5);
}

.scroll-animation.zoom-out {
  transform: scale(1.5);
}

.scroll-animation.rotate-left {
  transform: rotate(-90deg);
}

.scroll-animation.rotate-right {
  transform: rotate(90deg);
}

.scroll-animation.flip-x {
  transform: rotateX(90deg);
}

.scroll-animation.flip-y {
  transform: rotateY(90deg);
}

/* Nuevas animaciones de entrada */
.scroll-animation.fade {
  opacity: 0;
  transform: translateY(0);
}

.scroll-animation.bounce {
  transform: translateY(100px);
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-animation.swing {
  transform: rotate(-15deg);
  transform-origin: top center;
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-animation.slide-diagonal {
  transform: translate(-100px, 100px);
}

/* Estado activo para todas las animaciones */
.scroll-animation.active {
  opacity: 1;
  transform: translate(0) scale(1) rotate(0) rotateX(0) rotateY(0);
}

/* Animaciones de salida */
.scroll-animation.exit-enabled {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animation.exit-enabled.exit-active.from-bottom {
  opacity: 0;
  transform: translateY(50px);
}

.scroll-animation.exit-enabled.exit-active.from-top {
  opacity: 0;
  transform: translateY(-50px);
}

.scroll-animation.exit-enabled.exit-active.from-left {
  opacity: 0;
  transform: translateX(-50px);
}

.scroll-animation.exit-enabled.exit-active.from-right {
  opacity: 0;
  transform: translateX(50px);
}

.scroll-animation.exit-enabled.exit-active.zoom-in,
.scroll-animation.exit-enabled.exit-active.zoom-out {
  opacity: 0;
  transform: scale(0.9);
}

.scroll-animation.exit-enabled.exit-active.fade {
  opacity: 0;
}

/* Ajustes de tiempo para las animaciones */
.scroll-animation.delay-1 {
  transition-delay: 0.1s;
}

.scroll-animation.delay-2 {
  transition-delay: 0.2s;
}

.scroll-animation.delay-3 {
  transition-delay: 0.3s;
}

.scroll-animation.delay-4 {
  transition-delay: 0.4s;
}

.scroll-animation.delay-5 {
  transition-delay: 0.5s;
}

.scroll-animation.delay-6 {
  transition-delay: 0.6s;
}

.scroll-animation.delay-7 {
  transition-delay: 0.7s;
}

.scroll-animation.delay-8 {
  transition-delay: 0.8s;
}

/* Duración de las animaciones */
.scroll-animation.duration-fast {
  transition-duration: 0.5s;
}

.scroll-animation.duration-normal {
  transition-duration: 0.8s;
}

.scroll-animation.duration-slow {
  transition-duration: 1.2s;
}

/* Efectos de fondo para secciones */
.section-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease;
}

.section.in-view .section-background {
  opacity: 1;
}

/* Efecto de partículas para secciones */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  display: block;
  background-color: black;
  width: 8px;
  height: 8px;
  animation: float 15s infinite ease-in-out;
  opacity: 0.2;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.2;
  }

  50% {
    transform: translateY(-60px) rotate(180deg);
    opacity: 0.4;
  }

  100% {
    transform: translateY(0) rotate(360deg);
    opacity: 0.2;
  }
}

/* Keyframes */
@keyframes loadingText {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
      0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }

  14% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
      0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }

  15% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
      -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }

  49% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
      -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }

  50% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
      0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }

  99% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
      0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }

  100% {
    text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
      -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
}

@keyframes glitchShow {
  0% {
    opacity: 1;
    transform: translateX(0);
  }

  2% {
    transform: translateX(3px);
  }

  4% {
    transform: translateX(-3px);
  }

  6% {
    transform: translateX(3px);
  }

  8% {
    transform: translateX(0);
  }

  100% {
    opacity: 1;
  }
}

@keyframes reveal {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

@keyframes reveal-text {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* Botón de volver arriba */
.scroll-top-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: black;
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
  z-index: 1000;
  display: none;
}

.scroll-top-button.active {
  opacity: 1;
  transform: scale(1);
}

.scroll-top-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Media queries para responsive */
@media (max-width: 1400px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 1100px) {
  .about-content {
    gap: 3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 1024px) {
  .about-content {
    gap: 2rem;
    padding: 1rem 0;
  }

  .about-text {
    font-size: 1.1rem;
    padding: 1.8rem;
  }

  .image-placeholder {
    width: 90%;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .projects-grid {
    gap: 2rem;
  }

  .project-card {
    height: 380px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
  }

  .nav-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity, max-height;
    padding: 0;
  }

  .nav-links.active {
    display: flex;
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding: 1rem 0;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0s;
  }

  .nav-links.active .nav-link {
    opacity: 1;
    transform: translateX(0);
  }

  /* Delays escalonados para los enlaces */
  .nav-links.active .nav-link:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-links.active .nav-link:nth-child(2) {
    transition-delay: 0.2s;
  }

  .nav-links.active .nav-link:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav-links.active .nav-link:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-links.active .nav-link:nth-child(5) {
    transition-delay: 0.5s;
  }

  .nav-links.active .nav-link:nth-child(6) {
    transition-delay: 0.6s;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 1rem 0;
  }

  .about-text {
    font-size: 1rem;
    padding: 1.5rem;
    order: 2;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    text-align: left;
  }

  .about-image {
    width: 100%;
    display: flex;
    justify-content: center;
    order: 1;
  }

  .image-placeholder {
    width: 80%;
    max-width: 300px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .project-card {
    height: 350px;
  }

  .name {
    font-size: 3rem;
  }

  .glitch {
    font-size: 2rem;
  }

  .title {
    font-size: 1.5rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .redes-links {
    gap: 1rem;
  }

  .redes-link {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .education-grid,
  .skills-grid {
    gap: 1.5rem;
  }

  /* Mejoras para el menú de navegación móvil */
  .nav {
    height: auto;
    transition: all 0.3s ease;
  }

  /* Cabecera de navegación mejorada */
  .nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1001;
  }

  /* Logo mejorado */
  .logo {
    font-size: 1.6rem;
    font-weight: bold;
    position: relative;
    z-index: 1001;
    transition: all 0.3s ease;
  }

  /* Menú hamburguesa - Volviendo al diseño original */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1001;
  }

  .hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: black;
    transition: all 0.3s ease-in-out;
  }

  .hamburger::before,
  .hamburger::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background: black;
    transition: all 0.3s ease-in-out;
  }

  .hamburger::before {
    transform: translateY(-8px);
  }

  .hamburger::after {
    transform: translateY(8px);
  }

  .menu-toggle.active .hamburger {
    background: transparent;
  }

  .menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
  }

  .menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
  }

  /* Contenedor de enlaces mejorado - Centrado sin efectos 3D */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border-bottom: 4px solid black;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
  }

  /* Estado activo del contenedor de enlaces */
  .nav-links.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding: 1rem 0;
  }

  /* Fondo decorativo para el menú */
  .nav-links::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0.02) 0px,
      rgba(0, 0, 0, 0.02) 10px,
      transparent 10px,
      transparent 20px
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .nav-links.active::before {
    opacity: 1;
  }

  /* Enlaces individuales mejorados - Centrados sin efectos 3D */
  .nav-link {
    display: block;
    width: 80%;
    margin: 0.6rem auto;
    padding: 0.8rem 1rem;
    border: 2px solid black;
    background-color: black;
    color: white;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    opacity: 0;
  }

  /* Animación de entrada para los enlaces */
  .nav-links.active .nav-link {
    transform: translateY(0);
    opacity: 1;
  }

  /* Efecto de hover para los enlaces */
  .nav-link:hover {
    background-color: #333;
    color: white;
    transform: none;
    box-shadow: none;
  }

  /* Efecto de focus para los enlaces */
  .nav-link:focus {
    background-color: #222;
    color: white;
    outline: 2px solid white;
    outline-offset: -4px;
  }

  /* Efecto de active para los enlaces */
  .nav-link:active {
    background-color: #111;
    color: white;
    transform: none;
    box-shadow: none;
  }

  /* Estilo para el enlace activo */
  .nav-link.active-link {
    background-color: black;
    color: white;
    border-color: white;
    text-decoration: none;
    font-weight: bold;
  }

  /* Efecto de hover para el enlace activo */
  .nav-link.active-link:hover {
    background-color: #333;
  }
}

@media (max-width: 480px) {
  .about-content {
    gap: 2rem;
  }

  .about-text {
    font-size: 0.95rem;
    padding: 1.25rem;
    border-width: 3px;
    width: 90%;
  }

  .image-placeholder {
    width: 90%;
    border-width: 3px;
  }

  #about.section {
    padding: 4rem 1rem;
  }

  .project-card {
    height: 320px;
  }

  .project-description {
    font-size: 0.9rem;
  }

  .name {
    font-size: 2.5rem;
    padding: 0.75rem 1.5rem;
    border-width: 4px;
  }

  .title {
    font-size: 1.25rem;
  }

  .education-card,
  .skill-card {
    padding: 1.25rem;
    border-width: 3px;
  }

  .education-title {
    font-size: 1.1rem;
  }

  .education-description,
  .skill-card {
    font-size: 0.85rem;
  }

  .skill-logo {
    width: 40px;
    height: 40px;
  }

  .skill-name {
    font-size: 0.9rem;
  }

  .contact-form {
    padding: 1.5rem;
    border-width: 3px;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.4rem;
    font-size: 0.9rem;
  }

  .submit-button {
    padding: 0.8rem 1.5rem;
  }

  .footer {
    padding: 1.5rem;
    font-size: 0.9rem;
  }
}

/* Media queries para dispositivos móviles pequeños */
@media (max-width: 375px) {
  .section {
    padding: 3.5rem 0.8rem;
  }

  .name {
    font-size: 2.2rem;
    padding: 0.6rem 1.2rem;
  }

  .title {
    font-size: 1.1rem;
  }

  .glitch {
    font-size: 1.8rem;
  }

  .redes-link {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }

  .scroll-top-button {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* MEJORAS PARA MÓVIL - PREMIUM EXPERIENCE */
@media (max-width: 768px) {
  /* ===== GLOBAL MOBILE ENHANCEMENTS ===== */
  body {
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
  }

  .section {
    padding: 5rem 1rem;
    overflow: hidden;
  }

  /* ===== ENHANCED MOBILE NAVIGATION ===== */
  .nav-content {
    padding: 0.8rem 1.5rem;
  }

  /* Mejora del menú hamburguesa con animaciones más fluidas */
  .menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
    border: none;
    background-color: transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .menu-toggle:active {
    transform: scale(0.92);
  }

  .menu-toggle.active {
    background-color: transparent;
    border-color: transparent;
  }

  /* Animación mejorada para las líneas del hamburguesa */
  .hamburger,
  .hamburger::before,
  .hamburger::after {
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  }

  .menu-toggle.active .hamburger {
    background-color: transparent;
  }

  .menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    width: 24px;
    background-color: black;
  }

  .menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    width: 24px;
    background-color: black;
  }

  /* Contenedor de navegación con animación de despliegue */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border-bottom: 3px solid black;
    padding: 0;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity, max-height;
    z-index: 1000;
  }

  .nav-links.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding: 1rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  /* Overlay para el fondo cuando el menú está activo */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
  }

  /* Enlaces mejorados dentro del menú hamburguesa con animación secuencial */
  .nav-link {
    position: relative;
    padding: 0.8rem 1rem;
    margin: 0.7rem auto;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 85%;
    background-color: black;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(-20px);
  }

  /* Animación secuencial para los enlaces */
  .nav-links.active .nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  /* Delays escalonados para los enlaces */
  .nav-links.active .nav-link:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-links.active .nav-link:nth-child(2) {
    transition-delay: 0.2s;
  }

  .nav-links.active .nav-link:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav-links.active .nav-link:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-links.active .nav-link:nth-child(5) {
    transition-delay: 0.5s;
  }

  .nav-links.active .nav-link:nth-child(6) {
    transition-delay: 0.6s;
  }

  /* Efecto hover para los enlaces */
  .nav-link:hover {
    background-color: #333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  /* Efecto focus para los enlaces */
  .nav-link:focus {
    background-color: #222;
    color: white;
    outline: 2px solid white;
    outline-offset: -4px;
    box-shadow: 0 0 0 2px black;
  }

  /* Efecto active para los enlaces */
  .nav-link:active {
    background-color: #111;
    color: white;
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Estilo para el enlace activo */
  .nav-link.active-link {
    background-color: black;
    color: white;
    border: 2px solid white;
    box-shadow: 0 0 0 2px black;
    text-decoration: none;
    position: relative;
  }

  /* Indicador para el enlace activo con animación */
  .nav-link.active-link::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
  }

  /* Efecto hover para el enlace activo */
  .nav-link.active-link:hover {
    background-color: #333;
    transform: translateY(-2px);
  }

  .nav-link.active-link:hover::after {
    width: 50%;
  }

  /* Efecto de ondulación al hacer clic */
  .nav-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  }

  .nav-link:active::before {
    width: 200px;
    height: 200px;
    opacity: 1;
    transition: width 0.5s ease, height 0.5s ease, opacity 0s;
  }

  /* ===== ENHANCED MOBILE HERO SECTION ===== */
  #start {
    padding-top: 6rem;
    text-align: center;
  }

  .name {
    font-size: 2.5rem;
    padding: 0.75rem 1.5rem;
    margin: 1.5rem auto;
    max-width: 90%;
    transform: rotate(-1deg);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.7);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .name:hover {
    transform: rotate(1deg) scale(1.02);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.8);
  }

  .title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: rgba(0, 0, 0, 0.05);
  }

  .title::before,
  .title::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: black;
    transition: all 0.3s ease;
  }

  .title::before {
    top: -5px;
    left: -5px;
  }

  .title::after {
    bottom: -5px;
    right: -5px;
  }

  .title:hover::before {
    transform: translate(-2px, -2px);
  }

  .title:hover::after {
    transform: translate(2px, 2px);
  }

  .redes-links {
    margin-top: 2.5rem;
  }

  .redes-link {
    margin: 0.5rem;
    padding: 0.6rem 1.2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .redes-link:active {
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 black;
    color: white;
    background-color: black;
  }

  /* Efecto de brillo para los enlaces */
  .redes-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 100%
    );
    transition: transform 0.6s ease;
    z-index: -1;
  }

  .redes-link:hover::before {
    transform: translateX(200%);
  }

  /* ===== ENHANCED MOBILE SKILL CARDS ===== */
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 2rem;
  }

  .skill-card {
    border-width: 2px;
    box-shadow: 6px 6px 0 black;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .skill-card::before {
    width: 15px;
    height: 15px;
    top: -7px;
    right: -7px;
  }

  .skill-logo {
    width: 50%;
    height: 50%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .skill-name {
    padding: 6px 3px;
    font-size: 0.8rem;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .touch-device .skill-card.touch-active {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 black;
  }

  .touch-device .skill-card.touch-active .skill-logo {
    transform: translateY(-8px) scale(1.1);
  }

  .touch-device .skill-card.touch-active .skill-name {
    transform: translateY(0);
  }

  /* Animación de pulsación para tarjetas de habilidades */
  @keyframes skillPulse {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.05);
    }

    100% {
      transform: scale(1);
    }
  }

  .skill-card:hover {
    animation: skillPulse 1s infinite;
  }

  /* ===== ENHANCED MOBILE EDUCATION CARDS ===== */
  .education-grid {
    gap: 2rem;
  }

  .education-card {
    padding: 1.5rem;
    border-width: 2px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .education-year {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    transition: all 0.4s ease;
  }

  .education-title {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .education-school {
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
  }

  .education-description {
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .touch-device .education-card.active-touch {
    transform: translateY(-8px);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.2);
  }

  /* Efecto de entrada para tarjetas de educación */
  .education-card {
    position: relative;
    overflow: hidden;
  }

  .education-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .education-card:hover::after,
  .touch-device .education-card.active-touch::after {
    opacity: 1;
  }

  /* ===== ENHANCED MOBILE CONTACT FORM ===== */
  .contact-form {
    padding: 1.8rem;
    border-width: 3px;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.15);
  }

  .form-group {
    margin-bottom: 1.8rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.7rem 0.9rem;
    border-width: 2px;
    font-size: 16px;
    /* Prevent zoom on iOS */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .form-group input:focus,
  .form-group textarea:focus {
    transform: translateY(-5px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
  }

  .form-group label {
    left: 0.9rem;
    top: 0.7rem;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  /* Animación mejorada para etiquetas de formulario */
  .form-group input:focus ~ label,
  .form-group textarea:focus ~ label,
  .form-group input:valid ~ label,
  .form-group textarea:valid ~ label,
  .form-group label.active {
    transform: translateY(-2.2rem) scale(0.9);
    color: black;
    font-weight: bold;
    background-color: white;
    padding: 0 0.3rem;
  }

  .submit-button {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
  }

  .submit-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 100%
    );
    transition: transform 0.6s ease;
    z-index: 1;
  }

  .submit-button:hover::before {
    transform: translateX(200%);
  }

  .submit-button:active {
    transform: translate(-3px, -3px);
    box-shadow: 3px 3px 0 black;
  }

  /* ===== ENHANCED MOBILE FOOTER ===== */
  .footer {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .footer-link {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    transition: all 0.3s ease;
    position: relative;
  }

  .footer-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: black;
    transition: width 0.3s ease;
  }

  .footer-link:hover::after,
  .footer-link:active::after {
    width: 100%;
  }

  .footer-link:active {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
  }

  /* ===== ENHANCED SCROLL TOP BUTTON ===== */
  .scroll-top-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: black;
    color: white;
    border: none;
    font-size: 20px;
    right: 1.5rem;
    bottom: 1.5rem;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .scroll-top-button.active {
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .scroll-top-button:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
  }

  .scroll-top-button:active {
    transform: scale(0.9);
  }

  @keyframes bounceIn {
    0% {
      opacity: 0;
      transform: scale(0.3);
    }

    50% {
      opacity: 1;
      transform: scale(1.1);
    }

    70% {
      transform: scale(0.9);
    }

    100% {
      transform: scale(1);
    }
  }

  /* ===== ENHANCED MOBILE ANIMATIONS ===== */
  /* Page transition animations */
  .section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .section.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Scroll animations with enhanced timing */
  .scroll-animation {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .scroll-animation.from-bottom {
    transform: translateY(40px);
  }

  .scroll-animation.from-top {
    transform: translateY(-40px);
  }

  .scroll-animation.from-left {
    transform: translateX(-40px);
  }

  .scroll-animation.from-right {
    transform: translateX(40px);
  }

  .scroll-animation.zoom-in {
    transform: scale(0.7);
  }

  /* Staggered delays for smoother animations */
  .scroll-animation.delay-1 {
    transition-delay: 0.1s;
  }

  .scroll-animation.delay-2 {
    transition-delay: 0.15s;
  }

  .scroll-animation.delay-3 {
    transition-delay: 0.2s;
  }

  .scroll-animation.delay-4 {
    transition-delay: 0.25s;
  }

  .scroll-animation.delay-5 {
    transition-delay: 0.3s;
  }

  .scroll-animation.delay-6 {
    transition-delay: 0.35s;
  }

  /* Enhanced glitch effect for mobile */
  .glitch {
    font-size: 2rem;
    animation: glitchMobile 800ms infinite;
  }

  @keyframes glitchMobile {
    0% {
      text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
        -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
        0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }

    14% {
      text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
        -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
        0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }

    15% {
      text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
        0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
        -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    49% {
      text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
        0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
        -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    50% {
      text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
        0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    99% {
      text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
        0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    100% {
      text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
        -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
        -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
  }

  /* Nuevas animaciones para elementos interactivos */
  @keyframes pulse {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.05);
    }

    100% {
      transform: scale(1);
    }
  }

  @keyframes float {
    0% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-5px);
    }

    100% {
      transform: translateY(0);
    }
  }

  /* Efecto de ondulación para botones y enlaces */
  .ripple {
    position: relative;
    overflow: hidden;
  }

  .ripple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  }

  .ripple:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: width 0.6s ease, height 0.6s ease, opacity 0s;
  }
}

/*
     * NOTA: Las reglas para tarjetas de proyectos en dispositivos móviles
     * han sido movidas a mobile-project-cards.css
     */
