.menu {
  background-color: rgba(255, 255, 255, 0.8); 
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}


.menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.menu li {
  margin: 0;
}

.menu a {
  text-decoration: none;
  color: #000; 
  font-weight: bold;
  font-family: 'Times New Roman', serif;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
}

.menu a:hover {
  background-color: rgba(0, 0, 0, 0.1); 
  color: #007acc;
}


body {
    font-family: 'Times New Roman', serif;
    font-size: 12pt;
    line-height: 2;
    margin: 2.54cm;
    background-color: white;
    color: black;
  }
  .portada {
    text-align: center;
    margin-top: 200px;
  }
  .texto-portada {
    text-align: right;
    margin: 0;
    line-height: 2;
  }
  h1 {
    text-align: center;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  h2 {
    text-align: center;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 10px;
  }

  h3 {
    text-align: center;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 10px;
  }

  h4 {
    text-align: center;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 10px;
  }
  p {
    text-align: left;
    text-indent: 0.5in;
    margin-bottom: 10px;
  }
  .referencias {
    margin-top: 60px;
  }

  .referencias p {
    text-align: left;
    text-indent: 0.5in;
    margin-bottom: 10px;
  }


footer{
  background: transparent;         
  border-top: 1px solid #ddd;      
  display: flex;                  
  justify-content: center;          
  align-items: center;           
  padding: 32px 0;                
  font-family: 'Times New Roman', serif;
  font-size: 12pt;
  text-align: center;
  position: relative;
}

/* animación de aparición suave */
@keyframes footerFade{
  from{opacity:0; transform:translateY(20px);}
  to  {opacity:1; transform:translateY(0);}
}
.referencias-lista {
  list-style-type: none;
  padding-left: 0;
  margin-top: 10px;
  margin-bottom: 20px;
  font-family: 'Times New Roman', serif;
  font-size: 12pt;
  line-height: 2; 
}

.referencias-lista li {
  margin-bottom: 10px;
  text-indent: -1.5em;     
  padding-left: 1.5em;     
}

.referencias-lista a {
  text-decoration: none;
  color: #1a1a1a;
  border-bottom: 1px dashed transparent;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.referencias-lista a:hover {
  color: #007acc;
  border-bottom: 1px dashed #007acc;
}

footer{
  animation: footerFade .6s ease-out both;
}

footer p{
  margin: 0;                        
  letter-spacing: 0.5px;
}

  html {
    scroll-padding-top: 80px; 
    scroll-behavior: smooth;  
  }

  /* Modo oscuro */
body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

body.dark-mode .menu {
  background-color: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .menu a {
  color: #f0f0f0;
}

body.dark-mode .menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #90caf9;
}

/* Botón de modo oscuro */
#darkModeToggle {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: transform 0.3s ease;
}

#darkModeToggle:hover {
  transform: scale(1.2);
}
body.dark-mode a {
  color: #90caf9;
}
body.dark-mode a:hover {
  color: #bbdefb;
}

a {
  text-decoration: none;
  color: inherit; /* Igual color que el texto alrededor */
  border-bottom: 1px dashed transparent; /* Línea sutil al pasar el mouse */
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

a:hover {
  color: #007acc; /* Color tenue y académico al pasar el mouse */
  border-bottom: 1px dashed #007acc;
}

