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;
}

.dropdown {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  background: #1a1a1a;
  padding: 10px 0;
  top: 25px;
  left: 0;
  border-radius: 6px;
}

.dropdown:hover .submenu {
  display: block;
}

.submenu li {
  padding: 6px 20px;
}

.container {
  width: 70%;
  margin: 60px auto;
}

.main-post {
  background: #141414;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 25px;
}

.post-header {
  display: flex;
  gap: 20px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
}

.post-info .author {
  font-weight: bold;
}

.time {
  font-size: 0.9em;
  color: #888;
}

.post-info .title {
  margin: 6px 0;
}

.post-info .content {
  color: #ccc;
}

.responses {
  background: #111;
  border-radius: 10px;
  padding: 20px;
}

.response-count {
  font-weight: bold;
  margin-bottom: 15px;
}

.reply-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.reply-box input {
  flex: 1;
  background: #222;
  border: none;
  padding: 10px;
  border-radius: 6px;
  color: #fff;
}

.reply-box button {
  background: #333;
  border: none;
  padding: 10px 20px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.comment {
  display: flex;
  gap: 15px;
  background: #1a1a1a;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
}

.comment-content .user {
  font-weight: bold;
}

.comment-content .date {
  color: #888;
  font-size: 0.9em;
}

.likes {
  color: #999;
  font-size: 0.9em;
  margin-top: 5px;
}

.mision {
  text-align: center;
  background-color: #02020273;
  padding: 80px 60px;
}

.logo-mision {
  font-family: cursive;
  font-size: 40px;
  color: white;
  margin-bottom: 15px;
}

.mision h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.mision p {
  max-width: 700px;
  margin: 0 auto;
  color: #ccc;
  font-size: 14px;
  line-height: 1.7;
}


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;
}

.discusion {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 20px;
  width: 700px;
  margin: 50px auto;
  box-shadow: 0 0 10px #000;
}

.titulo {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.comentarios-container {
  margin-top: 20px;
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #444 #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px;
  background-color: #141414;
  transition: all 0.3s ease-in-out;
}


.comentarios-container::-webkit-scrollbar {
  width: 8px;
}

.comentarios-container::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 4px;
}

.comentarios-container::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}

.comentarios-container::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.comentario {
    display: flex;
    align-items: center;
  background-color: #1e1e1e;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.comentario:hover {
  transform: scale(1.01);
  background-color: #252525;
}


.comentarios-container {
  scroll-behavior: smooth;
}
.comentarios-container img {
    width: 25px;
    border-radius: 50%;
}
.user-3 img {
  width: 40px;
  cursor: pointer;
  border-radius: 50%;
}