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;
}

main {
  padding: 40px 60px;
}

.comunidad h1 {
  font-size: 26px;
}

.tabs {
  display: flex;
  gap: 10px;
  background: #111;
  padding: 10px;
  border-radius: 6px;
  margin-top: 20px;
}

.tabs a {
  color: #ccc;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
}

.tabs a.active, .tabs a:hover {
  background: #222;
  color: white;
}

.capturas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(324px, 1fr));
    gap: 20px;
    place-content: center;
}

.card {
    background-color: #141414;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    max-height: max-content;
}


.card:hover {
  transform: translateY(-5px);
}

.card p {
  padding: 10px;
  margin: 0;
}

.card span {
  display: block;
  padding: 0 10px 10px;
  color: #999;
}

.discusiones {
  margin-top: 30px;
  background: #111;
  border-radius: 8px;
  padding: 10px;
}

.post {
  border-bottom: 1px solid #222;
  padding: 10px 0;
}

.post span {
  display: block;
  color: #999;
  font-size: 12px;
}


.resenas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.review {
  background: #111;
  padding: 15px;
  border-radius: 8px;
  flex: 1;
  min-width: 250px;
}

.review h4 {
  margin: 0 0 5px;
}

.vermas {
  text-align: center;
  margin: 30px 0;
}

.vermas a {
  color: white;
  text-decoration: none;
  background: #222;
  padding: 10px 20px;
  border-radius: 8px;
}

.mision {
    display: grid;
    place-content: center;
  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;
}

.visual-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.visual-content {
  display: flex;
  background: #121212;
  border-radius: 8px;
  width: 80%;
  max-width: 1000px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  position: relative;
  animation: fadeIn 0.3s ease;
}

.visual-left img {
  width: 600px;
  height: auto;
  border-radius: 8px 0 0 8px;
}

.visual-right {
  padding: 20px;
  background: #1e1e1e;
  width: 100%;
  display: flex;
  flex-direction: column;

  border-radius: 0 8px 8px 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info img {
  width: 40px;
  border-radius: 50%;
}

.stats {
  display: flex;
  gap: 15px;
  color: #ccc;
  margin-top: 10px;
}

.comentario-box {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.comentario-box input {
  flex: 1;
  padding: 5px 10px;
  border-radius: 5px;
  border: none;
  outline: none;
}

.comentario-box button {
  background: #2a2a2a;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 6px 10px;
  cursor: pointer;
}

.comentarios {
  margin-top: 20px;
}

.comentario {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.comentario img {
  width: 30px;
  border-radius: 50%;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


.add-card {
    width: 200px;
    height: 200px;
    background-color: #b0b0b0; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    text-decoration: none;
    margin: 0 auto;
    order: -1;
}

.add-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}


.publish-card {
    display: none; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #0c0c0c;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 1000;
}

.publish-card h2 {
    margin-top: 0;
    font-size: 1.5rem;
    text-align: center;
}

.publish-card input[type="text"],
.publish-card textarea,
.publish-card input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f5f5f5;
    color: #000;
}

.publish-card button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #000000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}


.modal-overlay {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 900;
}

#preview-img {
    display: none;
    max-width: 100%;
    margin-bottom: 10px;
    border: 1px solid #555;
    border-radius: 6px;
}
.add-card {
    width: 100%;
    height: 100%;
    background-color: #000000ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000000ff;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-direction: column;
}

.card:hover, .add-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.add-card {
    font-size: 50px;
    font-weight: bold;
    color: #fff;
}

.card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    margin-bottom: 10px;
}

.like-btn {
    background: #444;
    border: none;
    color: #fff;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.like-btn:hover {
    background: #666;
}

.publish-card, .modal-overlay {
    display: none;
}

.modal-overlay {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.6);
    z-index:1000;
}

.comment-modal {
    display: none;
    position: fixed;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    background: #222;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-height: 80%;
    overflow-y: auto;
    color: #fff;
    z-index: 1001;
}

.comment-modal h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.comments-list div {
    margin-bottom: 10px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

#comment-form {
    margin-top: 10px;
    display: flex;
    gap: 5px;
}

#comment-form input[type="text"] {
    flex: 1;
    padding: 5px;
    border-radius: 4px;
    border: none;
}

#comment-form button {
    padding: 5px 10px;
    border: none;
    background: #555;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
}

#comment-form button:hover {
    background: #777;
}

