/*========== RESETEO BÁSICO ==========*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*========== TIPOGRAFÍA Y COLORES ==========*/
:root {
  /* Paleta de colores estilo “hacker claro” */
  --color-primario: #40c920;      /* Verde neón llamativo */
  --color-secundario: #2e8b57;    /* Verde más oscuro */
  --color-fondo-claro: #fafafa;   /* Fondo claro principal */
  --color-fondo-medio: #eeeeee;   /* Gris muy suave para degradados */
  --color-texto: #333;            /* Texto principal */
  --color-blanco: #ffffff;
}

html {
  scroll-padding-top: 85px; /* Ajusta según la altura de tu barra superior */
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto Mono', 'Consolas', 'Courier New', monospace;
  background: linear-gradient(135deg, var(--color-fondo-claro) 0%, var(--color-fondo-medio) 100%);
  color: var(--color-texto);
  line-height: 1.5;
  overflow-x: hidden;
}

/*========== CONTENEDOR GENERAL ==========*/
.container {
  max-width: 1200px;
  margin: auto;
}

/*========== HEADER / LOGO ==========*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--color-blanco);
  border-bottom: 2px dotted var(--color-primario);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-texto);
  text-decoration: none;
  transition: color 0.3s;
}
.logo:hover {
  color: var(--color-primario);
}

/*========== HERO SECTION CON PARTÍCULAS ==========*/
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 4rem; /* Para que no lo tape la navbar fija */
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
  overflow: hidden;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  color: var(--color-texto);
  padding: 1.5rem;
  /* background-color: rgba(255, 255, 255, 0.8); */
  /* border: 2px dashed var(--color-primario); */
  box-shadow: 0 0 10px rgba(64, 201, 32, 0.2);
  border-radius: 6px;
  color: #00ff39;
  padding: 50px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Botón principal dentro del hero */
.btn-hero {
  display: inline-block;
  background-color: var(--color-primario);
  color: #000;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(64, 201, 32, 0.4);
}
.btn-hero:hover {
  background-color: var(--color-secundario);
  color: #fff;
  box-shadow: 0 0 10px rgba(46, 139, 87, 0.5);
}

/*========== SECCIONES GENÉRICAS ==========*/
.section {
  padding: 4rem 0;
  border-bottom: 2px dotted rgba(64, 201, 32, 0.2);
  border-top: 2px dotted rgba(64, 201, 32, 0.2);
}

.bg-light {
  background-color: #f9f9f9;
}

.section-title {
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  color: var(--color-texto);
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--color-primario);
  margin-top: 0.5rem;
}

/*========== SOBRE MÍ ==========*/
.sobre-mi-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}
.sobre-mi-imagen img {
  width: 250px;
  height: auto;
  border-radius: 50%;
  border: 4px solid var(--color-primario);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}
.sobre-mi-contenido {
  max-width: 600px;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sobre-mi-contenido:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 255, 0, 0.2);
}
.sobre-mi-titulo {
  font-size: 1.4rem;
  color: var(--color-primario);
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.sobre-mi-texto {
  font-size: 1rem;
  color: var(--color-texto);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.sobre-mi-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.skill {
  background: var(--color-primario);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 255, 0, 0.3);
}

@media (max-width: 768px) {
  .sobre-mi-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .sobre-mi-skills {
    justify-content: center;
  }
}

/*========== CURSOS COMPLEMENTARIOS ==========*/
.courses-section {
  text-align: center;
  margin-top: 2rem;
}
.courses-section h3 {
  font-size: 1.5rem;
  color: var(--color-primario);
  margin-bottom: 1rem;
}
.courses-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.course-card {
  background-color: #ffffff;
  border-left: 5px solid var(--color-primario);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.2rem;
  border-radius: 8px;
  text-align: center;
  width: 100%;
  max-width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card i {
  font-size: 2rem;
  color: var(--color-primario);
  margin-bottom: 0.5rem;
}
.course-card h4 {
  font-size: 1.2rem;
  color: var(--color-texto);
  margin-bottom: 0.5rem;
}
.course-card p {
  font-size: 0.95rem;
  color: #666;
}
.completed {
  border-left-color: #2ecc71; /* Verde - Finalizado */
}
.ongoing {
  border-left-color: #f39c12; /* Amarillo - En Curso */
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 255, 0, 0.2);
}

@media (max-width: 768px) {
  .courses-grid {
    flex-direction: column;
    align-items: center;
  }
  .course-card {
    width: 100%;
  }
}

/*========== EXPERIENCIA ==========*/
.experience-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.experience-card {
  background-color: #ffffff;
  border-left: 5px solid var(--color-primario);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 350px;
}
.experience-card i {
  font-size: 2rem;
  color: var(--color-primario);
  margin-bottom: 0.5rem;
}
.experience-card h3 {
  font-size: 1.2rem;
  color: var(--color-texto);
  margin-bottom: 0.5rem;
}
.experience-card p {
  font-size: 0.95rem;
  color: #666;
}
.experience-description {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #444;
  font-style: italic;
}
.experience-list {
  margin-top: 1rem;
  list-style: none;
  padding-left: 0;
}
.experience-list li {
  font-size: 0.95rem;
  color: var(--color-texto);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
}
.experience-list li i {
  color: var(--color-secundario);
  font-size: 1rem;
}
.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 255, 0, 0.2);
}

@media (max-width: 768px) {
  .experience-grid {
    flex-direction: column;
    align-items: center;
  }
  .experience-card {
    width: 100%;
    text-align: center;
  }
  .experience-description {
    text-align: left;
  }
}

/*========== LISTAS GENÉRICAS ==========*/
.list-bullets {
  margin-left: 1.5rem;
  list-style-type: ">> ";
}
.list-bullets li {
  margin-bottom: 0.4rem;
}

/*========== EDUCACIÓN ==========*/
.education-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.education-card {
  background-color: #ffffff;
  border-left: 5px solid var(--color-primario);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 350px;
}
.education-card i {
  font-size: 2rem;
  color: var(--color-primario);
  margin-bottom: 0.5rem;
}
.education-card h3 {
  font-size: 1.2rem;
  color: var(--color-texto);
  margin-bottom: 0.5rem;
}
.education-card p {
  font-size: 0.95rem;
  color: #666;
}
.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 255, 0, 0.2);
}

/*========== CURSOS (LISTA SIMPLE) ==========*/
.courses-list {
  list-style: none;
  padding-left: 0;
}
.courses-list li {
  font-size: 1rem;
  color: var(--color-texto);
  padding: 0.8rem;
  border-bottom: 1px dashed rgba(64, 201, 32, 0.5);
  transition: background-color 0.3s ease;
}
.courses-list li i {
  color: var(--color-secundario);
  margin-right: 0.5rem;
}
.courses-list li:hover {
  background-color: rgba(64, 201, 32, 0.1);
}

/*========== COMPETENCIAS ==========*/
.competencias-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.competencia-card {
  background-color: #ffffff;
  border-left: 5px solid var(--color-primario);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 280px;
}
.competencia-card i {
  font-size: 2rem;
  color: var(--color-primario);
  margin-bottom: 0.5rem;
}
.competencia-card h3 {
  font-size: 1.2rem;
  color: var(--color-texto);
  margin-bottom: 0.5rem;
}
.high { border-left-color: #2ecc71; }
.medium { border-left-color: #f39c12; }
.basic { border-left-color: #e74c3c; }
.competencia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 255, 0, 0.2);
}

@media (max-width: 768px) {
  .competencias-grid {
    flex-direction: column;
    align-items: center;
  }
  .competencia-card {
    width: 100%;
  }
}

/*========== IDIOMAS ==========*/
.idiomas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.idioma-card {
  background-color: #ffffff;
  border-left: 5px solid var(--color-secundario);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 250px;
}
.idioma-card i {
  font-size: 2rem;
  color: var(--color-secundario);
  margin-bottom: 0.5rem;
}
.idioma-card h3 {
  font-size: 1.2rem;
  color: var(--color-texto);
  margin-bottom: 0.5rem;
}
.idioma-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(46, 139, 87, 0.3);
}

@media (max-width: 768px) {
  .idiomas-grid {
    flex-direction: column;
    align-items: center;
  }
  .idioma-card {
    width: 100%;
  }
}

/*========== CONTACTO ==========*/
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  margin-top: 2rem;
}
.contact-details,
.contact-form-wrapper {
  flex: 1 1 300px;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.contact-details:hover,
.contact-form-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 255, 0, 0.2);
}
.contact-details h3,
.contact-form-wrapper h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--color-primario);
  text-transform: uppercase;
}
.contact-details p {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-texto);
  margin-bottom: 0.8rem;
}
.contact-details p i {
  font-size: 1.2rem;
  color: var(--color-secundario);
}
.contact-details a {
  text-decoration: none;
  color: var(--color-texto);
  transition: color 0.3s ease;
}
.contact-details a:hover {
  color: var(--color-primario);
}

/*========== FORMULARIO ==========*/
.contact-form {
  display: flex;
  flex-direction: column;
  text-align: left; /* Ajuste para pantallas pequeñas */
}
.contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: var(--color-texto);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 2px dashed var(--color-primario);
  background-color: #fff;
  color: var(--color-texto);
  border-radius: 4px;
  font-family: inherit;
  outline: none;
  transition: box-shadow 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 5px rgba(64, 201, 32, 0.4);
}
.btn-submit {
  background-color: var(--color-primario);
  color: #000;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(64, 201, 32, 0.3);
}
.btn-submit:hover {
  background-color: var(--color-secundario);
  color: #fff;
  box-shadow: 0 0 10px rgba(46, 139, 87, 0.5);
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .contact-details,
  .contact-form-wrapper {
    width: 100%;
    text-align: center;
  }
  .contact-form {
    text-align: left;
  }
}

/*========== BOTÓN DE SUBIR ==========*/
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-primario);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: none; /* Se mostrará al hacer scroll */
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(64, 201, 32, 0.3);
}
.scroll-top-btn:hover {
  background-color: var(--color-secundario);
  color: #fff;
  box-shadow: 0 0 10px rgba(46, 139, 87, 0.5);
}

/*========== FOOTER ==========*/
.footer {
  background-color: #fff;
  text-align: center;
  padding: 1rem 0;
  color: var(--color-texto);
  border-top: 2px dotted var(--color-primario);
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* Ajustes para secciones en pantallas pequeñas */
@media (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  .hero {
    margin-top: 3.5rem;
    height: 90vh;
    background-position: center;
    background-size: cover;
  }
}

.no-scroll {
  overflow: hidden;
}

.w3-white {
  z-index: 50;
  border-right: 2px dotted var(--color-primario);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.button-hero {
  scroll-padding-top: 85px;
  scroll-behavior: smooth;
}

/*========== PROYECTOS DESTACADOS ==========*/
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.project-card {
  background-color: #ffffff;
  border-left: 5px solid var(--color-primario);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  width: 100%;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.project-card i {
  font-size: 2rem;
  color: var(--color-primario);
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-size: 1.3rem;
  color: var(--color-texto);
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.8rem;
}

.project-card ul {
  list-style: none;
  padding-left: 0;
}

.project-card ul li {
  font-size: 0.9rem;
  color: var(--color-texto);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.project-card ul li i {
  color: var(--color-secundario);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 255, 0, 0.2);
}

@media (max-width: 768px) {
  .projects-grid {
    flex-direction: column;
    align-items: center;
  }
  .project-card {
    width: 100%;
  }
}

.btn-descarga {
  display: inline-block;
  margin-top: 1rem;
  background-color: var(--color-primario);
  color: #000;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(64, 201, 32, 0.4);
}
.btn-descarga:hover {
  background-color: var(--color-secundario);
  color: #fff;
  box-shadow: 0 0 10px rgba(46, 139, 87, 0.5);
}
.btn-descarga i {
	color: #000;
  	margin-right: 0.4rem;
	transition: all 0.3s ease;
}

.btn-descarga:hover i {
	transition: all 0.3s ease;
	color: #fff;
  	margin-right: 0.4rem;
}

.desplegable-contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s ease-in-out, opacity 1s ease-in-out;
  opacity: 0;
}

.desplegable-contenido.activo {
  max-height: 2000px; /* alto suficiente para cualquier contenido */
  opacity: 1;
}


.desplegable-titulo {
  position: relative;
  transition: color 0.3s ease;
}

/* Cambia el color y subraya con animación */
.desplegable-titulo:hover {
  color: #0eba33; /* Cambia a azul (puedes usar otro color) */
}

/* Línea animada debajo del título */
.desplegable-titulo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 3px;
  background-color: #00FF39;
  transition: width 0.3s ease;
}

.desplegable-titulo:hover::after {
  width: 100%;
}
