* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-darker: #090a0f;
  --bg-card: #131622;
  --bg-input: #1a1e30;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;

  /* Colores Neón Videojuego */
  --neon-purple: #a855f7;
  --neon-cyan: #06b6d4;
  --neon-green: #22c55e;

  /* Bordes Pixelados Estilo Retro */
  --pixel-border: 3px solid #1e293b;
}

body {
  background-color: var(--bg-darker);
  color: var(--text-main);
  font-family:
    "Share Tech Mono", monospace; /* Letra estilo consola/tecnología */
  font-size: 18px;
  overflow-x: hidden;
}

/* Tipografía de títulos pixelados */
h1,
h2,
h3,
.btn,
.tag,
nav a,
.subtitle {
  font-family: "Press Start 2P", cursive;
  line-height: 1.4;
}

/* Navbar */
.header {
  width: 94%;
  margin: 15px auto;
  padding: 15px 25px;
  background: rgba(19, 22, 34, 0.9);
  border: var(--pixel-border);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 15px;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand h3 {
  font-size: 14px;
  color: var(--neon-cyan);
}

.pixel-avatar-mini {
  font-size: 24px;
}

nav a {
  font-size: 11px;
  text-decoration: none;
  color: var(--text-muted);
  margin-left: 15px;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--neon-purple);
  text-shadow: 0 0 8px var(--neon-purple);
}

/* Sección de Bienvenida (Hero) */
.hero {
  min-height: 80vh;
  width: 94%;
  margin: 20px auto;
  padding: 50px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--bg-card);
  border: var(--pixel-border);
  position: relative;
}

.tag {
  font-size: 11px;
  color: var(--neon-green);
  margin-bottom: 20px;
  display: inline-block;
}

.hero h1 {
  font-size: 32px;
  color: var(--text-main);
}

.hero h1 span {
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.sub-pixel {
  font-size: 20px;
  color: var(--neon-cyan);
  margin-top: 5px;
  margin-bottom: 25px;
}

.hero p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 550px;
  margin-bottom: 30px;
}

/* Botones */
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  font-size: 11px;
  padding: 15px 25px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--neon-purple);
  color: #fff;
  border: 3px solid #000;
  box-shadow: 4px 4px 0px #000;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000;
  background: #b566ff;
}

.btn-outline {
  background: transparent;
  color: var(--neon-cyan);
  border: 3px solid var(--neon-cyan);
  box-shadow: 4px 4px 0px rgba(6, 182, 212, 0.2);
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.1);
  color: #fff;
}

/* Tarjeta lateral de Perfil */
.profile-card {
  background: var(--bg-darker);
  padding: 25px;
  border: var(--pixel-border);
  text-align: center;
  width: 320px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.profile-img-container {
  width: 100%;
  height: 200px;
  background: var(--bg-input);
  border: 3px solid #1e293b;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pixel-placeholder {
  font-size: 60px;
}

.profile-card h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.profile-card .role {
  font-size: 11px;
  color: var(--neon-green);
  margin-bottom: 12px;
}

.stats-bar {
  width: 100%;
  height: 12px;
  background: #1e293b;
  border: 2px solid #000;
  margin-bottom: 10px;
}

.bar-fill.web {
  width: 85%;
  height: 100%;
  background: var(--neon-green);
}

.profile-card small {
  color: var(--text-muted);
  font-size: 14px;
}

/* Secciones Generales */
.section {
  width: 94%;
  margin: 30px auto;
  padding: 60px 5%;
  background: var(--bg-card);
  border: var(--pixel-border);
}

.subtitle {
  font-size: 11px;
  color: var(--neon-cyan);
  display: block;
  margin-bottom: 15px;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: left;
  border-bottom: 3px solid #1e293b;
  padding-bottom: 15px;
}

.pixel-box {
  background: var(--bg-darker);
  padding: 25px;
  border: 2px dashed #334155;
  text-align: left;
}

.pixel-box p {
  margin-bottom: 15px;
  color: var(--text-main);
  line-height: 1.6;
}

.pixel-box p:last-child {
  margin-bottom: 0;
}

/* Cuadrícula de Habilidades (con soporte de Logos de Devicon) */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
}

.skill {
  background: var(--bg-darker);
  border: var(--pixel-border);
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-weight: bold;
  font-size: 16px;
  transition: transform 0.2s;
}

.skill:hover {
  transform: scale(1.03);
  border-color: var(--neon-purple);
}

.skill i {
  font-size: 24px; /* Tamaño del icono del lenguaje */
}

/* Tarjetas de Misiones/Servicios */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-darker);
  border: var(--pixel-border);
  padding: 30px;
  text-align: left;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 14px;
  color: var(--neon-cyan);
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Sección Contacto */
.contact {
  width: 94%;
  margin: 30px auto;
  padding: 60px 5%;
  background: #111420;
  border: var(--pixel-border);
  text-align: center;
}

.contact h2 {
  font-size: 24px;
  color: var(--neon-purple);
  margin-bottom: 15px;
}

.contact p {
  color: var(--text-muted);
  margin-bottom: 25px;
}

.email {
  font-family: "Press Start 2P", cursive;
  font-size: 12px;
  color: var(--neon-cyan);
  text-decoration: none;
  word-break: break-all;
}

.email:hover {
  text-shadow: 0 0 10px var(--neon-cyan);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  color: #475569;
  font-size: 14px;
}

/* Responsivo para móviles */
@media (max-width: 900px) {
  .header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  nav a {
    display: inline-block;
    margin: 5px 10px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
  }

  .hero p {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .profile-card {
    width: 100%;
  }

  .section h2 {
    font-size: 18px;
  }
}
