/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #08090d;
  background-image:
    linear-gradient(
      rgba(5, 5, 8, 0.70),
      rgba(5, 5, 8, 0.90)
    ),
    url("images/fondo_Wall.avif");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: #ffffff;
  min-height: 100vh;
}

/* Regla global anti-azul para enlaces */
a, a:visited, a:hover, a:active {
  color: #ffffff;
  text-decoration: none;
}

.hidden {
  display: none !important;
}


/* =========================
   ESTRUCTURA DE COLUMNAS (LAYOUT)
========================= */

.site-layout {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 100vh;
  width: 100%;
}

.main-content {
  width: 100%;
  max-width: 1100px;
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(8px);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* =========================
   BANNERS LATERALES (ESCRITORIO)
========================= */

.side-banner {
  flex: 1;
  max-width: 250px;
  padding: 30px 12px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.side-banner-left {
  order: -1;
}

.banner-slot {
  position: sticky;
  top: 30px;
  width: 100%;
  background: rgba(16, 17, 20, 0.85);
  border: 1px solid #25272d;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  text-align: center;
}

.banner-slot.right-stack {
  gap: 16px;
}

.banner-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #d60032;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.community-avatar-link {
  display: inline-block;
  margin: 0 auto;
}

.community-avatar-wrapper {
  margin: 0 auto 12px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #b8002b, #25272d);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.community-avatar-wrapper:hover {
  transform: scale(1.05);
}

.community-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.community-banner h3 {
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: #ffffff;
}

.banner-action-button {
  display: block;
  padding: 10px 14px;
  background: #b8002b !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  border-radius: 2px;
  border: 1px solid #d60032;
  transition: background 0.2s ease, transform 0.2s ease;
}

.banner-action-button:hover {
  background: #d60032 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.spotify-widget {
  text-align: center;
}

.ad-container {
  min-height: 160px;
  border: 1px dashed rgba(214, 0, 50, 0.3);
  background: rgba(8, 9, 13, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.banner-placeholder {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #777b83;
  font-weight: 700;
}


/* =========================
   PORTADA (HERO)
========================= */

.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px 5px;
  background: transparent;
}

.hero-label {
  font-size: 13px;
  margin-bottom: 6px;
  color: #ffffff;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 70px);
  line-height: 0.9;
  letter-spacing: 3px;
  font-weight: 900;
}

.subtitle {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.4;
  color: #e4e4e7;
}


/* =========================
   SECCIÓN DEL MURO
========================= */

#messagesSection {
  width: 100%;
  margin: 0 auto;
  padding: 15px 20px 60px;
  text-align: center;
  border-top: 1px solid #26050b;
  flex: 1;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(210, 0, 45, 0.08),
      transparent 25%
    ),
    radial-gradient(
      circle at 90% 70%,
      rgba(210, 0, 45, 0.05),
      transparent 30%
    );
}

#messagesSection h2 {
  font-size: clamp(20px, 3.5vw, 30px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: #ffffff;
}


/* =========================
   BOTÓN DEJÁ TU MENSAJE
========================= */

.wall-button {
  display: block;
  margin: 0 auto 20px;
  padding: 11px 22px;
  background: #b8002b;
  color: #ffffff;
  border: 1px solid #d60032;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.wall-button:hover {
  background: #d60032;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 0, 43, 0.25);
}


/* =========================
   TARJETAS DEL MURO (CENTRADAS Y COMPACTAS)
========================= */

#messagesContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
}

.message-card {
  flex: 0 1 270px;
  position: relative;
  min-height: 110px;
  padding: 16px 18px 14px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  background: #101114;
  border: 1px solid #25272d;
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.message-card p {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  color: #f4f4f4;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 400;
  word-break: break-word;
}

.message-card span {
  position: relative;
  z-index: 2;
  color: #777b83;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.message-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #b8002b;
}

.message-card::after {
  content: "#";
  position: absolute;
  right: -5px;
  bottom: -20px;
  font-size: 80px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  pointer-events: none;
}

.message-card:hover {
  transform: translateY(-3px);
  border-color: #6d1025;
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(184, 0, 43, 0.08);
}


/* =========================
   FORMULARIO
========================= */

.form-container {
  max-width: 550px;
  width: 90%;
  margin: 10px auto 25px;
  padding: 24px;
  background: #11141b;
  border: 1px solid #252b35;
  border-radius: 4px;
  text-align: left;
}

.form-container h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 8px;
}

.form-container > p {
  text-align: center;
  color: #9da8b3;
  font-size: 14px;
  margin-bottom: 18px;
}

#messageForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#messageForm input,
#messageForm select,
#messageForm textarea {
  width: 100%;
  padding: 12px;
  border-radius: 2px;
  border: 1px solid #303743;
  background: #08090d;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
}

#messageForm input:focus,
#messageForm select:focus,
#messageForm textarea:focus {
  outline: none;
  border-color: #d60032;
}

#messageForm textarea {
  min-height: 110px;
  resize: vertical;
}

#messageForm button {
  padding: 13px;
  border: 1px solid #d60032;
  border-radius: 2px;
  background: #b8002b;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

#messageForm button:hover {
  background: #d60032;
  transform: translateY(-2px);
}

#formStatus {
  text-align: center;
  min-height: 18px;
  font-size: 13px;
  color: #d60032;
  font-weight: 500;
}


/* =========================
   FOOTER (PIE DE PÁGINA)
========================= */

.site-footer {
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(8, 9, 13, 0.95);
}

.footer-disclaimer {
  font-size: 12px;
  color: #a1a1aa;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.footer-copy {
  font-size: 10px;
  color: #52525b;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* =========================
   PÁGINA DE MODERACIÓN
========================= */

#moderationPage {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

#loginContainer,
#moderationContainer {
  background: #11141b;
  border: 1px solid #252b35;
  padding: 35px;
  border-radius: 4px;
}

#loginContainer h1,
#moderationContainer h1 {
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.moderation-intro {
  text-align: center;
  color: #777b83;
  margin-bottom: 25px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

#loginForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#loginForm input {
  padding: 14px;
  background: #08090d;
  border: 1px solid #303743;
  color: #ffffff;
  font-size: 15px;
  border-radius: 2px;
}

#loginForm input:focus {
  outline: none;
  border-color: #d60032;
}

#loginForm button,
#logoutButton {
  padding: 14px;
  background: #b8002b;
  color: #ffffff;
  border: 1px solid #d60032;
  border-radius: 2px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.2s ease;
}

#loginForm button:hover,
#logoutButton:hover {
  background: #d60032;
}

#logoutButton {
  display: block;
  margin: 0 0 25px auto;
  padding: 8px 16px;
  font-size: 12px;
}

#loginStatus {
  text-align: center;
  min-height: 20px;
  color: #d60032;
}

.moderation-card {
  background: #101114;
  border: 1px solid #25272d;
  border-left: 4px solid #b8002b;
  padding: 20px;
  margin-bottom: 16px;
}

.moderation-message {
  font-size: 16px;
  color: #f4f4f4;
  line-height: 1.5;
  margin-bottom: 10px;
}

.moderation-info {
  font-size: 11px;
  color: #777b83;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.moderation-buttons {
  display: flex;
  gap: 12px;
}

.approve-button,
.reject-button {
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.approve-button {
  background: #b8002b;
  color: #ffffff;
}

.reject-button {
  background: #25272d;
  color: #cccccc;
}

.approve-button:hover,
.reject-button:hover {
  opacity: 0.85;
}


/* =========================
   DISEÑO RESPONSIVE (CELULARES Y TABLETS)
========================= */

@media (max-width: 1050px) {

  /* El layout pasa de horizontal a vertical */
  .site-layout {
    flex-direction: column;
    align-items: center;
  }

  .main-content {
    border-left: none;
    border-right: none;
    order: 1; /* El hero y muro quedan en el medio */
    width: 100%;
  }

  .side-banner {
    display: flex; /* Se muestran los banners */
    width: 100%;
    max-width: 550px;
    padding: 15px 14px;
  }

  /* Instagram se coloca justo arriba */
  .side-banner-left {
    order: 0;
    padding-top: 25px;
  }

  /* Spotify y Publicidad se colocan abajo del muro */
  .side-banner-right {
    order: 2;
    padding-bottom: 35px;
  }

  .banner-slot {
    position: static; /* Quita el sticky para que fluya en el scroll */
    margin: 0 auto;
  }

  .hero {
    padding: 20px 15px 5px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .subtitle {
    font-size: 15px;
    margin-top: 10px;
  }

  #messagesSection {
    padding: 12px 10px 40px;
  }

  #messagesSection h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .wall-button {
    margin-bottom: 16px;
  }

  #messagesContainer {
    gap: 10px;
  }

  .message-card {
    flex: 1 1 100%;
    min-height: 95px;
    padding: 14px 16px;
  }

  .form-container {
    margin: 10px 8px 20px;
    padding: 18px 12px;
  }

  .form-container h2 {
    font-size: 22px;
  }

}