body {
      font-family: 'Segoe UI', Arial, sans-serif;
      background: linear-gradient(to bottom, #ffffff, #e4e4e4);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.035),
    rgba(0, 0, 0, 0.035) 1px,
    transparent 1px,
    transparent 16px
  );
      margin: 0;
      padding: 0;
    }

    /* Header general */
header {
  background-color: #333;
  color: white;
  padding: 1em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo h1 {
  font-size: 1.5em;
  margin: 0;
  color: white;
  transition: color 0.3s;
}

.logo:hover h1 {
  color: #ffeb3b;
}

/* Navegación */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline;
}

nav a {
  color: white;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

/* Línea animada debajo del enlace */
nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #ffeb3b;
  left: 0;
  bottom: -4px;
  transition: width 0.3s ease-in-out;
}

nav a:hover {
  color: #ffeb3b;
}

nav a:hover::after {
  width: 100%;
}

    main {
      max-width: 900px;
      margin: 2em auto;
      padding: 2em;
      background: white;
      border-radius: 10px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .perfil {
      display: flex;
      flex-wrap: wrap;
      gap: 2em;
      align-items: center;
    }

    .perfil img {
      width: 180px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #007BFF;
    }

    .perfil-info {
      flex: 1;
    }

    .perfil-info h2 {
      margin-top: 0;
    }

    .perfil-info p {
      line-height: 1.6;
    }

    .habilidades {
      margin-top: 2em;
    }

    .habilidades ul {
      padding-left: 1.5em;
    }

    .contacto {
      margin-top: 2em;
      text-align: center;
    }

    .contacto a {
  display: inline-block;
  margin-top: 1em;
  background: linear-gradient(135deg, #007BFF, #005dc1);
  color: white;
  padding: 0.75em 1.8em;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
  transition: all 0.3s ease;
}

.contacto a:hover {
  background: linear-gradient(135deg, #005dc1, #004aad);
  box-shadow: 0 6px 10px rgba(0, 123, 255, 0.3);
  transform: translateY(-2px);
}