
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow: hidden; /* No scroll en body */
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  background: #111;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #0ff;
  flex-shrink: 0;
  height: 60px;
}


.logo {
  width: 40px;
  height: 40px;
  animation: spin 6s linear infinite;
}
.welcome {
  color: #0ff;
  font-weight: 600;
  font-size: 1rem; /* más pequeño y acorde al diseño */
  display: inline-block;
}


nav a {
  color: #ffff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}

nav a:hover {
  color: #fff;
}

/* MAIN CONTENIDO */
main {
  flex: 1 1 auto;
  overflow-y: auto; /* Scroll solo en contenido */
  padding: 8px 1px;
  scroll-behavior: smooth;
}



/* Introducción */
.intro {
  text-align: center;
  padding: 1px 2px;
}

.perfil {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #0ff;
  margin-bottom: 15px;
  animation: float 4s ease-in-out infinite;
  object-fit: cover;
}

h1 {
  margin: 0;
  font-size: 1.8rem;
}

.subtitle {
  font-style: italic;
  font-size: 1rem;
  margin: 5px 0 15px 0;
}

.description {
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Habilidades */
.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.skills div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  transition: transform 0.3s;
}

.skills div:hover {
  transform: scale(1.1);
}

.skills img {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
}

.skills span {
  font-size: 0.8rem;
}

/* Proyectos */
#proyectos p {
  font-size: 1rem;
}

.btn {
  background: #0ff;
  color: #000;
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  display: inline-block;
  margin-top: 10px;
}

.btn:hover {
  background: #0cc;
}

/* Contacto */
.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.socials img {
  width: 28px;
  height: 28px;
  object-fit: contain;

  transition: transform 0.3s;
}

.socials img:hover {
  transform: scale(1.3);
}
.socials img.icon-github {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.3s, filter 0.3s;
 filter: invert(1);
}



/* Footer */
footer {
  flex-shrink: 0;
  text-align: center;
  padding: 15px 10px;
  background: #111;
  border-top: 2px solid #0ff;
  font-size: 0.9rem;
}

/* Animaciones */
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

@keyframes float {
  0%, 100% { transform: translateY(0);}
  50% { transform: translateY(-8px);}
}

/* Responsive */
@media (max-width: 768px) {
  nav a {
    margin-left: 10px;
    font-size: 0.8rem;
  }

  .skills div {
    width: 60px;
  }

  .skills img {
    width: 30px;
    height: 30px;
  }

  .perfil {
    width: 80px;
    height: 80px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .description {
    font-size: 0.8rem;
  }

  .btn {
    padding: 6px 12px;
  }

section {
  max-height: 85vh;
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 15px;
}

/* Contacto - colores */
.socials img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.3s;
  filter: none; /* Por defecto sin filtro */
}

/* Solo GitHub con color invertido */
.socials a:first-child img {
  filter: invert(1);
}

.socials img:hover {
  transform: scale(1.3);
}
