/* Valores Generales para el cuerpo de la página */
body {

  margin: 0%;
  padding: 0%;
  background-color: white;
  box-sizing: border-box;

  /* 
    Colores para la página

    Celeste puro: #5968EB
    Blanco: #fffff
    Celeste claro: #BFC5F7

    */
}

/* Estilos para el header */

header {
  position: sticky;       /* se mantiene arriba al hacer scroll */
  top: 0;
  height: 60px;           /* define altura fija del header */
  background-color: rgb(176, 193, 228);
  text-align: center;
  max-width: 100%;
  justify-content: space-between;
  display: flex;
  z-index: 1000;
}


header img {

  margin-left: 10px;
  margin-top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50px;

}

header h3 {

  flex: 1;

}

.burger-icon {
  cursor: pointer;
  width: 30px;
  height: 30px;
  margin-right: 15px;
  margin-top: 15px;
}

/* === NAVBAR MODIFICADO === */
/* NAVBAR LATERAL OSCURO + Estructura interna */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300px;
  max-width: 85%;
  background: linear-gradient(180deg, #17171a 0%, #0f1112 100%);
  color: #fff;
  padding-top: 70px;
  /* deja espacio visual respecto al header */
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.45);
  z-index: 1000;
  /* por debajo del header (1001) */
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), opacity 0.25s;
  opacity: 0;
  overflow: hidden;
}

/* visible */
.navbar.active {
  transform: translateX(0);
  opacity: 1;
}

/* header interno (recuadro 1) */
.nav-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: transparent;
}

.nav-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 38px;
  width: auto;
}

.nav-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

/* subtitulo (debajo del titulo, pequeño) */
.nav-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
}

/* lista principal (recuadro 2) - ocupa el espacio disponible y hace scroll si hace falta */
.nav-list {
  margin: 0;
  padding: 20px;
  padding-top: 98px;
  /* deja espacio para nav-header */
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1 1 auto;
}

/* items y links */
.nav-list li a {
  padding: 14px 16px;
  display: block;
  color: #f0f0f0;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.12s ease;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.01);
}

.nav-list li a:hover {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
  transform: translateX(6px);
}

/* Imagen de fonduchi */

.hero {
  width: 100%;
  height: 400px;          /* altura del banner */  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}


/* Footer */

footer {
  background-color: #000000;
  align-items: center;
  display: flex;
  justify-content: space-between;
}

/* From Uiverse.io by _7754 */
.container {
  margin: 10px;
  display: flex;
  column-gap: 28px;
}

.icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  text-decoration: none;
  font-size: 25px;
  outline: 2px solid white;
  border-radius: 50%;
  transition-property: outline-offset, outline-color, background-color;
  transition-duration: 0.25s;
  color: white;
}

.icon:hover {
  outline-offset: 4px;
}

.icon svg {
  margin: auto;
  width: 31px;
}

.icon-instagram:hover {
  background-color: red;
  outline-color: red;
}

.icon-dis:hover {
  background-color: rgb(76, 0, 255);
  outline-color: rgb(76, 0, 255);
}

.icon-github:hover {
  background-color: #555555;
  outline-color: #555555;
}

.icon-in:hover {
  background-color: #0a66c2;
  outline-color: #0a66c2;
}

.icon:hover svg {
  animation: shake 0.25s;
}

@keyframes shake {
  10% {
    transform: rotate(15deg);
  }

  20% {
    transform: rotate(-15deg);
  }
}

