
/* Forzar a que DarkReader ignore completamente ciertos elementos */
html[data-darkreader-mode] #particles,
html[data-darkreader-mode] canvas#particles,
canvas[data-darkreader-mode] {
  background-color: #000000 !important;
  filter: none !important;
  -webkit-filter: none !important;
  isolation: isolate !important;
}

html[data-darkreader-mode] .hero,
.hero[data-darkreader-mode] {
  background: transparent !important;
  filter: none !important;
}

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

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: #ff6347;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 600;
}

header {
  background-color: #000;
  padding: 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

nav h1:hover {
  color: #ff6347;
  transform: scale(1.1);
}

nav h1::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  background-color: #ff6347;
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

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

nav h1 a {
  color: inherit;
  text-decoration: none;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav ul li {
  transition: color 0.3s, transform 0.3s;
}

nav ul li:hover {
  transform: scale(1.1);
}

nav ul li a {
  color: #fff;
  font-weight: 400;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ff6347;
}

nav ul li a.active {
  color: #ff6347;
  font-weight: 600;
  position: relative;
}

nav ul li a.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #ff6347;
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

.achievements {
  padding: 60px 20px;
  background-color: #eaf6fb;
  text-align: center;
}

.achievements h2 {
  margin-bottom: 20px;
  color: #333;
}

.achievements-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  text-align: left;
}

.achievements-list li {
  background: #fff;
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  font-size: 1.1em;
  color: #444;
  transition: box-shadow 0.3s;
}

.achievements-list li:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
}

.achievements-list a {
  color: #444;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}

.achievements-list a:hover {
  color: #ff6347;
  text-decoration: underline;
  cursor: pointer;
  text-decoration: none;
}

.hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #000428 0%, #004e92 100%) !important;
  background-color: #000428 !important;
  padding: 20px;
  overflow: hidden;
  animation: fadeIn 2s ease-in-out;
  position: relative;
  isolation: isolate;
}

/* Particles canvas sits behind the text */

#particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #000000 !important;
  background-color: #000000 !important;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
  margin: 0 auto;
}

.hero .highlight {
  color: #ff6347;
}

.lang-btn {
  position: absolute;
  top: 80px;
  right: 30px;
  background: #ff6347;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1100;
}

.lang-btn:hover {
  background: #ff7f6b;
}

.cta {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ff6347;
  color: #fff;
  border-radius: 25px;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.cta:hover {
  background-color: #ff7f6b;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.about {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.about-image-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.about-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.skills {
  padding: 60px 20px;
  background-color: #f0f0f0;
  text-align: center;
}

.skills h2 {
  margin-bottom: 20px;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

.two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.column {
  flex: 1 1 45%;
}

.achievements-list {
  list-style: none;
  padding-left: 0;
}

.achievements-list li {
  margin-bottom: 1rem;
}

.achievements-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.achievements-list {
  flex: 1;
  min-width: 250px;
  list-style: none;
  padding: 0;
}

.achievements-list li {
  margin-bottom: 1rem;
  padding: 2rem;
}

.projects {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.projects h2 {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
}

.projects-list {
  list-style: none;
  padding-left: 0;
  max-width: 900px;
  margin: 0 auto;
}

.projects-list li {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 1rem;
  background: #fff;
  padding: 15px;
  border-left: 4px solid #6c63ff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.skills p {
  margin-bottom: 40px;
  color: #555;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.skill {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill h3 {
  margin-bottom: 10px;
  color: #ff6347;
}

.skill p {
  color: #777;
}

.skill:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.contact {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.contact h2 {
  margin-bottom: 20px;
}

.contact p {
  margin-bottom: 20px;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-icon img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-icon1 img {
  width: 70px;
  height: 50px;
  transition: transform 0.3s ease;
}

.social-icon:hover img {
  transform: scale(1.2);
}

.social-icon1:hover img {
  transform: scale(1.2);
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #000;
  color: #fff;
  margin-top: 20px;
}


.cv-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #1d6fbd;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.cv-button:hover {
    background: #ff4d5a;
    transform: translateY(-2px);
}
