body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #222;
  transition: background 0.4s, color 0.4s;
}

body.dark-mode {
  background: linear-gradient(135deg, #232526 0%, #414345 100%);
  color: #f1f1f1;
}

body.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("light_mode.avif");
}

body.dark-mode.parallax {
  background-image: url("dark_mode.jpg");
}

body.hacker-mode {
  background: #111 !important;
  color: #00ff00 !important;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace !important;
}

body.hacker-mode .main-header,
body.hacker-mode .projects,
body.hacker-mode .skills,
body.hacker-mode .contact,
body.hacker-mode footer {
  background: transparent !important;
  color: #00ff00 !important;
  box-shadow: none !important;
  border: none !important;
}

body.hacker-mode h1,
body.hacker-mode h2,
body.hacker-mode h3,
body.hacker-mode p,
body.hacker-mode a,
body.hacker-mode .github-link {
  color: #00ff00 !important;
  text-shadow: 0 0 6px #0f0;
}

body.hacker-mode .github-link {
  background: #222 !important;
  border: 1px solid #00ff00 !important;
}

body.hacker-mode .skills-grid,
body.hacker-mode .skill-card,
body.hacker-mode .profile-pic,
body.hacker-mode .skill-icon img {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

body.hacker-mode #theme-toggle {
  display: none;
}

.main-header {
  position: relative;
  background: transparent;
  padding: 2rem 0 1rem 0;
  box-shadow: none;
  overflow: hidden;
}

body.dark-mode .main-header {
  background: transparent;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffb347;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  background: #fff;
}

body.dark-mode .profile-pic {
  border: 4px solid #444d56;
  background: #232526;
}

h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #ff6600;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body.dark-mode h1 {
  color: #ffd200;
}

h2 {
  margin: 0.2rem 0 0 0;
  font-size: 1.2rem;
  color: #444;
  font-weight: 400;
}

body.dark-mode h2 {
  color: #e0e0e0;
}

#theme-toggle {
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.3s, color 0.3s;
  margin-left: 1rem;
}

body.dark-mode #theme-toggle {
  background: rgba(40,40,40,0.8);
  color: #ffd200;
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.projects, .skills, .contact {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  margin-bottom: 2rem;
  padding: 2rem 1.5rem;
  transition: background 0.4s, color 0.4s;
}

body.dark-mode .projects,
body.dark-mode .skills,
body.dark-mode .contact {
  background: #232526;
  color: #f1f1f1;
}

.projects h2, .skills h2, .contact h2 {
  color: #ff6600;
  margin-bottom: 1rem;
}

body.dark-mode .projects h2,
body.dark-mode .skills h2,
body.dark-mode .contact h2 {
  color: #ffd200;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.project {
  flex: 1 1 250px;
  background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: transform 0.2s, background 0.4s;
}

body.dark-mode .project {
  background: linear-gradient(120deg, #232526 0%, #414345 100%);
}

.project:hover {
  transform: translateY(-6px) scale(1.03);
}

.project h3 {
  margin: 0 0 0.5rem 0;
  color: #5f2c82;
}

body.dark-mode .project h3 {
  color: #ffd200;
}

.project a {
  color: #5f2c82;
  text-decoration: none;
  font-weight: bold;
}

body.dark-mode .project a {
  color: #ffd200;
}

.project p {
  margin: 0;
  color: #333;
}

body.dark-mode .project p {
  color: #e0e0e0;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.skills-list li {
  display: flex;
  align-items: flex-start;
  font-size: 1.08rem;
  background: rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 0.8rem 1.1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: background 0.4s, color 0.4s;
  line-height: 1.5;
}

body.dark-mode .skills-list li {
  background: rgba(35,37,38,0.85);
  color: #ffd200;
}

.skills-list .icon {
  font-size: 1.5rem;
  margin-right: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact {
  text-align: center;
}

.github-link {
  display: inline-block;
  background: #24292e;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}

body.dark-mode .github-link {
  background: #ffd200;
  color: #232526;
}

.github-link:hover {
  background: #444d56;
}

body.dark-mode .github-link:hover {
  background: #ffb347;
  color: #232526;
}

footer {
  text-align: center;
  padding: 1.5rem 0 0.5rem 0;
  color: #888;
  font-size: 1rem;
  background: transparent;
}

body.dark-mode footer {
  color: #bbb;
}

@media (max-width: 900px) {
  .header-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .profile-info {
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .project-list {
    flex-direction: column;
  }
  main {
    padding: 0 0.2rem;
  }
  .projects, .skills, .contact {
    padding: 1.2rem 0.5rem;
  }
  h1 {
    font-size: 2rem;
  }
  .profile-pic {
    width: 80px;
    height: 80px;
  }
  #theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .skills-list li {
    font-size: 0.98rem;
    padding: 0.7rem 0.7rem;
  }
  .skills-list .icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
  }
  body.parallax {
    background-attachment: scroll;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.skill-card {
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 1.3rem 1rem 1rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  transition: transform 0.18s, box-shadow 0.18s, background 0.4s;
  border: 1.5px solid #f5f5f5;
}

.skill-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  background: #f7f7fa;
}

body.dark-mode .skill-card {
  background: rgba(35,37,38,0.97);
  border: 1.5px solid #333;
}

body.dark-mode .skill-card:hover {
  background: #232526;
}

.skill-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  background: none;
  padding: 0;
  overflow: hidden;
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

body.dark-mode .skill-icon {
  background: rgba(255,255,255,0.1);
}

/* SVG ICONS */
.skill-icon.python {
  background-image: url('data:image/svg+xml;utf8,<svg width="44" height="44" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" rx="12" fill="%23FFD43B"/><path d="M24 10c-7.5 0-7.5 3.5-7.5 7.5v2.5h15v-2.5C31.5 13.5 31.5 10 24 10z" fill="%232B5B84"/><circle cx="18" cy="16" r="1.5" fill="%23fff"/><path d="M24 38c7.5 0 7.5-3.5 7.5-7.5v-2.5h-15v2.5C16.5 34.5 16.5 38 24 38z" fill="%234B8BBE"/><circle cx="30" cy="32" r="1.5" fill="%23fff"/></svg>');
}
.skill-icon.html {
  background-image: url('data:image/svg+xml;utf8,<svg width="44" height="44" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" rx="12" fill="%23E44D26"/><path d="M14 12l2.2 24L24 38l7.8-2 2.2-24H14z" fill="%23fff"/><path d="M24 36.1l6.3-1.6 1.9-21.1H24v22.7z" fill="%23F16529"/></svg>');
}
.skill-icon.css {
  background-image: url('data:image/svg+xml;utf8,<svg width="44" height="44" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" rx="12" fill="%23296BC5"/><path d="M14 12l2.2 24L24 38l7.8-2 2.2-24H14z" fill="%23fff"/><path d="M24 36.1l6.3-1.6 1.9-21.1H24v22.7z" fill="%23398FCC"/></svg>');
}
.skill-icon.js {
  background-image: url('data:image/svg+xml;utf8,<svg width="44" height="44" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" rx="12" fill="%23F7DF1E"/><text x="12" y="32" font-size="18" font-family="monospace" fill="%23222">JS</text></svg>');
}
.skill-icon.node {
  background-image: url('data:image/svg+xml;utf8,<svg width="44" height="44" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" rx="12" fill="%23339933"/><text x="7" y="32" font-size="18" font-family="monospace" fill="%23fff">Node</text></svg>');
}
.skill-icon.apache {
  background-image: url('data:image/svg+xml;utf8,<svg width="44" height="44" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" rx="12" fill="%23D22128"/><text x="7" y="32" font-size="18" font-family="monospace" fill="%23fff">Apache</text></svg>');
}
.skill-icon.docker {
  background-image: url('data:image/svg+xml;utf8,<svg width="44" height="44" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" rx="12" fill="%2300ADEF"/><circle cx="24" cy="24" r="10" fill="%23fff"/><rect x="18" y="22" width="12" height="4" rx="2" fill="%2300ADEF"/></svg>');
}
.skill-icon.burp {
  background-image: url('data:image/svg+xml;utf8,<svg width="44" height="44" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" rx="12" fill="%23FF6600"/><path d="M16 16h16v16H16z" fill="%23fff"/><path d="M24 16v16" stroke="%23FF6600" stroke-width="2"/></svg>');
}
.skill-icon.splunk {
  background-image: url('data:image/svg+xml;utf8,<svg width="44" height="44" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" rx="12" fill="%23000000"/><polygon points="16,12 36,24 16,36" fill="%2300FF41"/></svg>');
}
.skill-icon.markdown {
  background-image: url('data:image/svg+xml;utf8,<svg width="44" height="44" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" rx="12" fill="%23222"/><text x="7" y="32" font-size="18" font-family="monospace" fill="%23fff">MD</text></svg>');
}

.skill-info h3 {
  margin: 0 0 0.2rem 0;
  font-size: 1.1rem;
  color: #222;
}

body.dark-mode .skill-info h3 {
  color: #ffd200;
}

.skill-info p {
  margin: 0;
  color: #444;
  font-size: 0.98rem;
}

body.dark-mode .skill-info p {
  color: #e0e0e0;
}

@media (max-width: 700px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .skill-card {
    padding: 1rem 0.7rem 0.7rem 0.7rem;
    gap: 0.7rem;
  }
  .skill-icon {
    width: 36px;
    height: 36px;
  }
  .skill-icon img {
    width: 36px;
    height: 36px;
  }
  .skill-info h3 {
    font-size: 1rem;
  }
  .skill-info p {
    font-size: 0.93rem;
  }
}

/* Mejorar visibilidad del icono de Splunk en modo claro */
.skill-icon img[alt="Splunk"] {
  background: #222;
  border-radius: 10px;
  padding: 4px;
  box-sizing: border-box;
  border: 2px solid #fff;
}

body.dark-mode .skill-icon img[alt="Splunk"] {
  background: transparent;
  border: none;
  padding: 0;
}

.hacker-projects {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hacker-repo {
  background: #181818;
  border-left: 4px solid #00ff00;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  color: #00ff00;
  font-family: inherit;
  box-shadow: 0 0 8px #0f03;
}

.hacker-repo a {
  color: #00ff00;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: underline;
}

.hacker-stars {
  float: right;
  font-size: 1rem;
  color: #0f0;
  font-family: inherit;
}

.hacker-repo p {
  margin: 0.5rem 0 0 0;
  color: #0f0;
  font-size: 0.98rem;
} 