body {
  margin: 0;
  font-family: 'Nunito', 'Quicksand', 'Montserrat', sans-serif;
  background: white;
  color: black;
  padding-top: 90px;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px; 
  border-bottom: 1px solid #ded4cd;
  z-index: 1000;
  box-sizing: border-box;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 15px;
  flex-wrap: wrap; 
  align-items: center;
  padding: 0;
  margin: 0;
}

.navbar a {
  text-decoration: none;
  color: black;
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
}


/* Cursor */

body {
  cursor: none; 
}

.cursor {
  position: fixed;          /* importante */
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: darkseagreen;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.15s ease, background-color 0.3s ease;
  mix-blend-mode: normal;
}

/* Cursor grande al pasar por links */
.cursor.cursor--link {
  transform: translate(-50%, -50%) scale(1.8);
}

/* Colores del cursor según página */
body.home .cursor { 
  background-color: darkseagreen; 
}

body.proyectos-page .cursor { 
  background-color: #6b8f71; 
}

body.sobre-mi-page .cursor { 
  background-color: #3f5f47; 
}

/* Por si acaso: desactivarlo en celulares */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }
}



/* INICIO */
.inicio {
  height: calc(100vh - 90px);
  background-image: url("https://raw.githubusercontent.com/Marita03/Trabajo-final-IDW/refs/heads/main/img/inicio.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inicio-overlay {
  text-align: center;
  background: rgba(255,255,255,0.8);
  padding: 40px;
  animation: fadeIn 2s ease;
}

/* SECCIÓN PROYECTOS */


.proyectos {
  padding: 0 40px;
}

h1 {
  font-size: 26px;
  letter-spacing: 2px;
  font-weight: 400;
  margin-bottom: 40px;
  margin-top: 40px;
}

.proyectos h1 {
  text-align: left;
}


.proyectos-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}



/* CONTENEDOR PROYECTOS */
#contenedor-proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 0; /* quitamos padding para alinear */
  margin-bottom: 40px;
}

.proyecto-card {
  background: #fafafa;
  padding: 15px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.proyecto-card:hover {
  transform: translateY(-5px);
}

.proyecto-card img {
  width: 100%;
  border-radius: 6px;
}

.proyecto-info {
  margin-top: 10px;
}

/* SOBRE MÍ */
.perfil {
  display: flex;
  padding: 40px;
  gap: 40px;
}

.perfil img {
  width: 300px;
  border-radius: 6px;
}

/* Barras habilidades */
.barra {
  background: #ded4cd;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
}

.barra div {
  background: darkseagreen;
  height: 100%;
  transition: width 0.6s ease;
}

/* CONTACTO */
footer {
  padding: 60px 40px;
  margin-top: 40px;
  text-align: center;
  background: #fafafa;
  scroll-margin-top: 120px;
  font-family: 'Nunito', 'Quicksand', 'Montserrat', sans-serif;
}

footer h2 {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 400;
  margin-bottom: 20px;
}

footer p {
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 25px;
  font-weight: 400;
}

/* LINKS DE CONTACTO */
.contacto-links a {
  color: darkseagreen;
  margin: 10px 15px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

.contacto-links a:hover {
  opacity: 0.6;
}

/* BOTÓN SUBIR */
#btnSubir {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 16px;
  background: darkseagreen;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  color: black;
  font-size: 16px;
}

/* Animación */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* VERSION RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 10px 10px;
  }

  .navbar ul {
    justify-content: center;
    gap: 10px;
  }

  .navbar a {
    font-size: 11px;
  }

  .perfil {
    flex-direction: column;
  }

  .perfil img {
    width: 100%;
  }
}
