:root {
  --bg-dark: #0d0d1f;
  --bg-gradient: linear-gradient(135deg, #0d0d1f, #000e2e);
  --text-color: #e0e0e0;
  --primary-color: #00bfff;
  --highlight-color: #1ecbe1;
  --shadow-color: rgba(0, 191, 255, 0.5);
}

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

h1 {
  font-family: "Tektur";
  color: var(--primary-color);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 700;
  font-size: 50px;
  text-align: left;
}

h2 {
  font-family: "Tektur";
  color: var(--primary-color);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 600;
  font-size: 40px;
  text-align: center;
}

h3,
h4 {
  font-family: "Tektur";
  color: var(--primary-color);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
  font-size: 30px;
  text-align: left;
}

p {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  font-size: 15px;
  font-family: "Raleway", sans-serif;
  text-align: center;
  padding: 10px;
}

body {
  background: var(--bg-gradient);
  color: var(--text-color);
  overflow-x: hidden;
  padding-top: 70px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ***************************************************************************************************************** */
/* HEADER */

header {
  /*background: radial-gradient(circle at center, #001529, #000);*/
  background: var(--bg-dark);
  padding: 10px 10px;
  text-align: center;
  position: fixed;
  position: rea;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  /* box-shadow: 0 2px 5px rgba(0,0,0,0.2); */
}

header.scrolled {
  background: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ***************************************************************************************************************** */
/* NAV */

nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  justify-content: left;
  font-weight: bold;
  color: var(--primary-color);
  font-family: "Tektur", sans-serif;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: nowrap;
  justify-content: center;
  text-align: center;
}

.nav-links a {
  color: rgb(202, 202, 202);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #60a5fa;
  text-shadow: 0 0 15px #523abb;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  padding-right: 20px;
  cursor: pointer;
}

@media (max-width: 768px) {
  header {
    padding: 10px 20px;
  }

  .body {
    width: 75%; /* Ajusta el padding superior para evitar que el contenido se superponga al header */
  }

  nav {
    display: flex;
    justify-content: space-between; /* Logo a la izquierda, toggle a la derecha */
    align-items: center;
    padding: 0 1rem;
  }

  .nav-links {
    transition: all 0.3s ease-in-out;
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-links a {
    font-size: 18px;
    padding: 4px;
    text-align: center;
    width: 100%;
  }

  .nav-links.show {
    z-index: 1000;
    margin-top: 0;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    padding: 10px;
    background: transparent;
  }

  .menu-toggle {
    display: block;
  }
}

/* ***************************************************************************************************************** */
/* SECTION */

section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 1;
}

/* ***************************************************************************************************************** */
/* HERO */

/*  @import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");*/

.hero {
  padding-top: 60px;
  padding-bottom: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  max-width: 900px;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: bold;
}

.hero-text h3 {
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 24px;
  margin: 0;
  text-align: left;
  padding-right: 50px;
  padding-bottom: 25px;
  padding-top: 15px;
}

.hero-text span {
  color: #3b82f6; /* azul moderno */
}

.hero-text p {
  font-size: 19px;
  color: #a5aebb;
  margin-top: 0.5rem;
  margin-right: 40px;
  text-align: left;
}

.hero-links {
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.icon-btn {
  background-color: #1e293b;
  border: 2px solid transparent;
  width: 55px;
  height: 55px;
  color: white;
  font-size: 20px;
  padding: 0.75rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.icon-btn i {
  width: 100%;
  height: 100%;
  align-self: center;
  justify-content: center;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  transform: scale(1.1);
  border-color: #3b82f6;
  box-shadow: 0 0 12px #3b82f6;
}

.hero-image img {
  width: 300px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 30px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 400px;
  object-fit: cover;
}

.hero-image img:hover {
  transform: scale(1.1); /* agranda la imagen al 110% */
  box-shadow: 0 8px 20px rgba(173, 170, 170, 0.3); /* opcional: le da un efecto de elevación */
}

@media (max-width: 768px) {
  .hero{
    padding-top: 20px;
    
  }

  .hero-text p{
    text-align: center;
    padding-top: 20px;
  }
  .hero-text {
    padding-bottom: 5px;
  }
  .hero-text h3{
    text-align: center;
    padding-top: 10px;
  }
  .hero-links{
    padding-top: 10px;
    margin-top: 0px;
  }
}
/* Responsivo */
@media (min-width: 780px) {

  .hero-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .hero-text p {
    text-align: left;
  }

}


/* ***************************************************************************************************************** */
/* PROYECTOS */

.projects-sect {
  padding-top: 100px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-inline: auto;
  align-items: stretch;
  justify-items: center;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #111829;
  border-radius: 16px;
  overflow: hidden;
  padding: 1.5rem;
  box-shadow: 0 0 30px rgba(30, 203, 225, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 500px; /* o ajusta según diseño */
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--primary-color);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}


.project-card .info {
  border-top: 1px solid #333;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

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

.project-card h4 {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.project-card p {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: justify;
}

.tech-icons {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
}

.tech-icons i,
.tech-icons img {
  font-size: 1.5rem;
  padding-left: 10px;
  margin: 0;
  height: 24px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.tech-icons i:hover,
.tech-icons img:hover {
  transform: scale(1.2);
  filter: brightness(1.5);
}

.btn-container {
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background-color: #1f2937;
  color: #cbd5e1;
  border-radius: 40px;
  font-size: 1.0rem;
  transition: transform 0.3s ease;  
}

.btn:hover {
  background: var(--primary-color);
  color: black;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .projects {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .project-card {
    min-height: 400px; /* Ajusta la altura mínima para pantallas más pequeñas */
  }

  .project-card img {
    height: 150px; /* Ajusta la altura de la imagen para pantallas más pequeñas */
    aspect-ratio: 20 / 9;  
  }

  .project-card h3 {
    font-size: 1.2rem; /* Reduce el tamaño del título */
  }

  .project-card p {
    font-size: 0.9rem; /* Reduce el tamaño del texto */
  }
}

@keyframes glow {
  from {
    filter: brightness(1.4) drop-shadow(0 0 6px var(--highlight-color));
  }
  to {
    filter: brightness(2.2) drop-shadow(0 0 12px var(--highlight-color));
  }
}

@keyframes glow {
  from {
    filter: brightness(1.4) drop-shadow(0 0 6px var(--highlight-color));
  }
  to {
    filter: brightness(2.2) drop-shadow(0 0 12px var(--highlight-color));
  }
}

/* ***************************************************************************************************************** */
/* SOBRE MI */

.about {
  padding-top: 60px;
  padding-bottom: 20px;
  justify-content: center;
  display: flex;
  height: auto;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Contenido de texto */
.about-text {
  flex: 1 1 300px;
  max-width: 500px;
  height: auto;
  text-align: left;
  text-align: justify;
}

.about-text h2 {
  font-size: 2rem;
  margin-top: 3.9rem;
  margin-bottom: 2rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Contenedor de imagen */
.about-image {
  flex: 1 1 250px;
  max-width: 400px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  box-shadow: 0 0 10px var(--text-color);
  border-radius: 10px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text,
  .about-image {
    max-width: 100%;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-text h2 {
    margin-top: 0rem;
    margin-bottom: 2rem;
  }
  .about-text p {
    text-align: center;
  }

  .about-image img {
    max-width: 80%;
  }
}

/* ***************************************************************************************************************** */
/* FORMACION */

.formacion {
  padding: 2rem 2rem;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.formacion h2 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary-color);
  margin-top: 3.9rem;
  margin-bottom: 2rem;
}

.formacion-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  background: #111829;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 30px rgba(0, 191, 255, 0.1);
  max-width: 700px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 160px; /* altura fija para que todas tengan la misma altura */
  box-sizing: border-box; /* para que padding no aumente altura */
}

.formacion-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 191, 255, 0.25);
}

.logo-escuela img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 50%;
  background-color: white;
  padding: 6px;
}

.info-escuela {
  flex: 1;
  text-align: left;
  padding-left: 0;
  padding-bottom: 2rem; 
}

.info-escuela .fecha {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 0.9rem;
  color: #7f8fa4;
  white-space: nowrap; /* evitar que la fecha se divida en varias líneas */
}

.info-escuela h3 {
  color: var(--primary-color);
  margin-bottom: 0;
  font-size: 1.2rem;
  text-align: left;
}

.info-escuela p {
  margin: 4px 0;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
  text-align: left;
  text-align: justify;
}

/* Responsivo */
@media (max-width: 768px) {
  .formacion-item {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    text-align: center;
    position: static; /* para evitar conflictos en móvil */
  }

  /* Cambiar fecha para flujo normal, centrada y arriba */
  .info-escuela .fecha {
    position: static;
    margin-bottom: 1rem;
    padding-right: 0;
    text-align: left;
  }

  .info-escuela {
    padding-right: 0;
    width: 100%;
  }

  .info-escuela h3 {
    text-align: center;
  }


  .logo-escuela img {
    margin-bottom: 0.5rem;
  }
}

/* ***************************************************************************************************************** */
/* CURSOS */

.cursos {
  padding: 2rem 2rem;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cursos h2 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary-color);
  margin-top: 3.9rem;
  margin-bottom: 2rem;
}

.cursos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  width: 100%;
}

.curso-item {
  background: #111829;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 191, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  text-decoration: none; 
  color: inherit; 
}


.curso-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 191, 255, 0.25);
}
.certificado {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0.1rem;
}

.certificado img {
  width: 150px;       /* ancho fijo */
  height: 100px;      /* alto fijo */
  object-fit: cover;  /* recorta para llenar el espacio sin deformar */
  border-radius: 8px;
  background-color: white;
  padding: 0px;
  margin-bottom: 1rem;
}

.info-curso h3 {
  color: var(--primary-color);
  font-size: 1rem;
  margin: 0 0 0.3rem 0;
  text-align: center;
}

.info-curso .fecha {
  font-size: 0.85rem;
  color: #7f8fa4;
  text-align: center;
  margin: 0;
}

.curso-item[href] {
  cursor: pointer;
}


/* Responsivo */

@media (max-width: 480px) {
  .cursos-container {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .certificado img {
    max-height: 90px;
  }

  .info-curso h3 {
    font-size: 0.9rem;
  }
}

/* ***************************************************************************************************************** */
/* HABILIDADES */

.skills-grid {
  display: grid;
  padding-top: 2rem;
  grid-template-columns: repeat(
    auto-fit,
    minmax(60px, 1fr)
  ); /* íconos un poco más compactos */
  gap: 1rem; /* menos espacio entre íconos */
  justify-items: center;
  max-width: 700px; /* limita el ancho total para centrar mejor */
  margin: 0 auto; /* centra el grid horizontalmente */
}

.skill {
  text-align: center;
  transition: transform 0.3s ease, filter 0.3s ease;
  width: 60px; /* ancho fijo para mejor alineación */
  height: 60px; /* alto fijo para mejor alineación */
  display: flex;
  justify-content: center;
  align-items: center;
}

.skill i {
  font-size: 2.9rem; /* un poco más pequeño para que no se vea muy grande */
  color: var(--text-color);
  transition: 0.3s;
  filter: brightness(0.7);
}

.skill:hover i {
  filter: brightness(1.4) drop-shadow(0 0 6px var(--highlight-color));
  transform: scale(1.1);
}

.soft-skills {
  margin-top: 3rem;
  text-align: center;
}

#skills h2 {
  margin-top: 3.9rem;
  margin-bottom: 1rem;
}

.soft-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.soft-skill-tags .tag {
  background-color: #1f2937;
  color: #cbd5e1;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  box-shadow: 0 0 6px rgba(30, 203, 225, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;  
}

.soft-skill-tags .tag:hover {
  background: var(--primary-color);
  color: black;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); /* íconos más compactos */
  }

  .skill i {
    font-size: 2.7rem; 
  }

  .soft-skill-tags {
    flex-direction: row; /* etiquetas en columna en móviles */
    align-items: center;
  }
}


/* ***************************************************************************************************************** */
/* EXPERIENCIA LABORAL */

ul li {
  margin: 0.8rem 0;
  color: #c0c0c0;
  text-align: justify;
  margin-right: 20px;
}

/* ***************************************************************************************************************** */
/* IDIOMAS */

.idiomas {
  padding: 20px;
  text-align: center;
  color: var(--text-color);
}

.idiomas h2 {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.idiomas-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.idioma {
  background: #111829;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 191, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 400px;
}

.idioma:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.25);
}

.idioma p {
  font-size: 1rem;
}

.idioma h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 20px;
}

/* Responsivo */
@media (max-width: 600px) {
  .idiomas-grid {
    flex-direction: column;
    align-items: center;
  }
}


/* ***************************************************************************************************************** */
/* CONTACTO */

.contacto-section {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-color);
}

.contacto-section h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.contacto-subtitle {
  color: #cbd5e1;
  font-size: 1rem;
}

.contacto-links {
  margin-bottom: 3rem;
}

.contacto-descripciones {
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.contacto-descripciones p {
  margin: 0.5rem 0;
  text-align: left;
}

@media screen and (max-width: 600px) {
  .contacto-section{
    margin-top: 0;
  }
  .hero h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 0;
    padding-top: 0;
  }

  .hero-text h3 {
    padding-right: 0;
    padding-bottom: 0;
    font-size: 1.2rem
  }

  .hero-text p {
    padding-right: 0;
    margin-right: 0;
    font-size: 0.9rem;
  }

  .hero-links {
    gap: 0.5rem;
  }
  
}

/* ***************************************************************************************************************** */
/* FOOTER */
footer {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background: #020212;
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.9rem;
  color: #888;
}
