* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Poppins", sans-serif;
  color: #222;
  overflow-x: hidden;
}

/* FONDO ANIMADO */
.bg {
  position: fixed;
  inset: 0;
  background-image: url("imagenes/FONDO2.png");
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: brightness(1) saturate(1);
}

/* HEADER COMO LO TENÍAS */
header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url("imagenes/PORTADA1_1.webp") center/cover no-repeat;
  color: white;
  position: relative;
  text-align: center;
  overflow: hidden;
}
/* Imagen de perfil circular */
.foto-perfil {
  width: clamp(180px, 18vw, 250px);
  height: clamp(180px, 18vw, 250px);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1em;
  position: relative;
}

.foto-perfil .img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  position: absolute;
  top: 0;
  left: 0;

  transition: opacity 0.3s ease;
}

.img-2 {
  opacity: 0;
}

.foto-perfil:hover .img-2 {
  opacity: 1;
}
/* ===== MENÚ ===== */

.menu-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 1.5em;
  padding: 0;
}

.menu-links li {
  list-style: none;
}

/* ===== LINKS ===== */

.menu-link {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-shadow: 2px 2px 4px #4b2068;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;

  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;

  display: block;
  text-align: center;
  white-space: nowrap;
}

/* ===== HOVER ===== */

.menu-link:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #401572;
  text-shadow: none;
  transform: translateY(-2px);
}

/* ===== MOBILE ===== */

@media (max-width: 600px) {
  .menu-links {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-link {
    width: 100%;
  }
}

#titulo {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  margin-bottom: 0.3em;
  letter-spacing: 1px;
  text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.6);
}

header p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: 0.9;
  text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.6);
}

section {
  max-width: 900px;
  margin: 10rem auto;
  padding: 0 20px;
  scroll-margin-top: 80px;
}

h2 {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  color: #4f46e5;
  margin-bottom: 1em;
}

h3 {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0px;
  color: #20a75d;
  text-decoration: none;
  margin-bottom: 0em;
}

h4 {
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
  color: #4f46e5;
  margin-bottom: 1em;
  text-align: right;
}

h5 {
  font-weight: 500;
  color: #617064;
}

.card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  transition: background 0.3s;
}

.card p {
  color: #4f1e5e;
}

/* Badge dentro del flujo */
.badge {
  width: 80px; /* ajustá tamaño */
  margin-left: auto; /* lo manda a la derecha */
  margin-top: 10px;
}

.badge img {
  width: 100%;
  display: block;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill {
  background: #e0e7ff;
  color: #3730a3;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
}

footer {
  text-align: center;
  background: #4f46e5;
  color: white;
  padding: 40px;
  margin-top: 100px;
}

a {
  color: #f5309c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  background: color-mix(in srgb, #30f56b 70%, white 30%);
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2.2rem;
  }
  section {
    margin: 80px auto;
  }
  .card {
    padding: 25px;
  }
}

.pointer {
  display: inline-block;
}
