html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0a0a0a;
  color: white;
  font-family: "Poppins", sans-serif;
  
}


header {
  position: sticky;
  top: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  padding: 8px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}


.logo img {
    width: 50px;
    height: 50px;
    margin-left: 25px;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

nav a:hover {
  color: white;
}


.user {
  position: relative;
}

.user img {
  width: 24px;
  cursor: pointer;
  border-radius: 50%;
}

.user .menu {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  background-color: #0e0e0e;
  border-radius: 5px;
  list-style: none;
  padding: 10px;
  width: 140px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.user:hover .menu {
  display: block;
}

.menu li {
  margin: 6px 0;
}

.menu a {
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
}

.menu a:hover {
  color: white;
}

footer {
  background-color: #000000;
  padding: 30px 60px;
  font-size: 13px;
  border-top: 1px solid #1a1a1a;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.links a {
  color: #bbb;
  text-decoration: none;
  margin-right: 20px;
}

.links a:hover {
  color: white;
}

.logo-footer {
  text-align: right;
  color: #777;
}


.wiki-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.wiki-description {
  text-align: center;
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.articles {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.article-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #222;
  box-shadow: 0 0 6px rgba(255,255,255,0.05);
}

.article-info {
  flex: 1;
  padding-right: 20px;
}

.article-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.article-info p {
  color: #ccc;
  font-size: 0.9rem;
}

.article-card img {
  width: 200px;
  height: 110px;
  border-radius: 8px;
  object-fit: cover;
}

@media (max-width: 700px) {
  .article-card {
    flex-direction: column;
    text-align: center;
  }

  .article-info {
    padding-right: 0;
    margin-bottom: 15px;
  }

  .article-card img {
    width: 100%;
    height: 180px;
  }
}
main {
  padding: 40px 60px;
}
.vermas {
  text-align: center;
  margin: 30px 0;
}

.vermas a {
  color: white;
  text-decoration: none;
  background: #222;
  padding: 10px 20px;
  border-radius: 8px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content {
  background: #111;
  color: white;
  border-radius: 15px;
  padding: 30px;
  width: 90%;
  max-width: 800px;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

.cerrar:hover {
  color: #fff;
}

.modal-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
}

.modal-body img {
  width: 40%;
  border-radius: 10px;
}

.modal-body p {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  color: #ddd;
}
