/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter';
}

body {
  background-color: #f9fafb;
  color: #333;
  line-height: 1.6;
}

/* NAVBAR */
header {
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navegacion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 1rem 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(90deg, #3a506b, #6c63ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-list a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: #3a506b;
}

/* SECCION PRINCIPAL */
.seccion-principal {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background: linear-gradient(135deg, #f0f2f5 0%, #dfe6ed 100%);
  overflow: hidden;
}

.titulo-bienvenida {
  font-size: 3rem;
  color: #3a506b;
  font-weight: bold;
}

.cursor {
  display: inline-block;
  font-weight: bold;
  animation: blink 0.75s steps(1) infinite;
}

.subtitulo {
  font-size: 1.2rem;
  color: #555;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 2.5s;
}

.btn-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  background-color: #3a506b;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-cta:hover {
  background-color: #1c2e3e;
  transform: scale(1.05);
}

/* Animación de shapes flotantes */
.shape {
  position: absolute;
  background-color: rgba(58, 80, 107, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  z-index: 0;
}
.shape1 {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 5%;
}
.shape2 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  right: 10%;
  animation-delay: 2s;
}
.shape3 {
  width: 60px;
  height: 60px;
  bottom: 10%;
  left: 15%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ABOUT */
.seccion-about {

  padding: 5rem 2rem;
  max-width: 1100px;
  margin: auto;
  margin-top: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.about-info p {
  margin: 0.5rem 0;
}

.about-me .lead {
  margin-bottom: 1rem;
}

/* Skills */
.skills-section {
  margin-top: 2rem;
}

.skills-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.skills-section h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.skills-section .badges img {
  margin: 5px;
  height: 32px;
  transition: transform 0.3s;
}

.skills-section .badges img:hover {
  transform: scale(1.1);
}

/* FOOTER */
footer {
  background: linear-gradient(180deg, #f0f2f5 0%, #e6e9f0 100%);
  padding: 2rem 1rem;
  text-align: center;
}

footer .buttons {
  margin-bottom: 1rem;
}

footer a {
  text-decoration: none;
  margin: 0 10px;
  color: #3a506b;
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

footer a:hover {
  color: #6c63ff;
  transform: scale(1.1);
  text-decoration: none;
}

/*======================================
//--//-->   SECCION PORTAFOLIO
======================================*/
.seccion-portafolio{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  .titulo{
    font-size: 2rem;
    margin-bottom: 50px;
  }
  .proyectos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    .proyecto {
      border: 1px solid #ccc;
      border-radius: 10px;
      overflow: hidden;
      width: 300px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
      &:hover {
        transform: translateY(-10px);
      }
      .img-box {
          img {
          width: 100%;
          height: auto;
          display: block;
        }
      }
      .content {
        padding: 15px;
        h2 {
          margin-top: 0;
          font-size: 1.5rem;
        }
        p {
          margin: 10px 0 0;
        }
      }
    }
  }
}

/* Botón de modo oscuro */
#dark-mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #3a506b;
  transition: transform 0.3s;
}

#dark-mode-toggle:hover {
  transform: scale(1.2);
}

/* Tema oscuro */
body.dark-mode {
  background-color: #1e1e1e;
  color: #eaeaea;
}

body.dark-mode header {
  background-color: #2c2c2c;
  border-bottom: 1px solid #444;
}

body.dark-mode .nav-list a {
  color: #eaeaea;
}

body.dark-mode .nav-list a:hover {
  color: #6c63ff;
}

body.dark-mode .nav-logo {
  background: linear-gradient(90deg, #eaeaea, #6c63ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-mode .seccion-principal {
  background: linear-gradient(135deg, #222 0%, #2c2c2c 100%);
}

body.dark-mode .seccion-about {
  background: #2c2c2c;
  color: #eaeaea;
}

body.dark-mode .proyecto {
  background: #2c2c2c;
  border-color: #444;
}

body.dark-mode footer {
  background: #2c2c2c;
}

body.dark-mode footer a {
  color: #eaeaea;
}
