/* === InverForo Styles === */

/* General Typography */
body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  color: #222;
}

/* Header */
header {
  background-color: #ffffff;
  padding: 20px 0 10px 0;
  border-bottom: 1px solid #d0d0d0;
  font-family: 'Segoe UI', sans-serif;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.titulo {
  text-align: center;
  flex: 1;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.header-top img {
  flex-shrink: 0;
}

.header-top button {
  flex-shrink: 0;
  margin-left: 20px;
  padding: 8px 14px;
  background-color: #0056b3;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 6px;
}

.header-top button:hover {
  background-color: #003f88;
}

.subtitulo {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  font-family: 'Poppins', sans-serif;
}

/* Navigation Bar */
nav {
  background-color: #ffffff;
  padding: 10px 20px;
  border-radius: 16px;
  margin: 20px auto;
  max-width: 960px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 100;
}

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

nav ul li a,
nav ul li .dropbtn {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

nav ul li a:hover,
nav ul li .dropbtn:hover {
  background-color: #ffffff;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  max-height: 260px;
  overflow-y: auto;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 12px;
  margin-top: 8px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.dropdown-content::-webkit-scrollbar {
  width: 8px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  border-radius: 10px;
}

.dropdown-content a {
  color: #222;
  padding: 10px 16px;
  display: block;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #f2f6ff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Últimos mensajes */
.mensaje {
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  max-width: 800px;
  transition: box-shadow 0.3s ease;
}

.mensaje:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.mensaje strong {
  color: #0056b3;
  font-weight: 600;
  font-size: 15px;
}

.mensaje small {
  color: #666;
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

/* Modal login ajustado */
#loginModal input {
  width: 100%;
  padding: 6px 10px;
  margin: 6px 0 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
}

#loginModal form {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

#loginModal button[type="submit"] {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 8px 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  display: block;
}

#loginModal .checkbox-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 280px;
  margin: 0 auto 12px;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .dropdown-content {
    max-height: 200px;
    min-width: 180px;
  }

  .header-top {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .titulo {
    order: 2;
    text-align: center;
    font-size: 18px;
  }

  .header-top button {
    order: 3;
    margin-left: 0;
  }

  .header-top img {
    order: 1;
    margin-bottom: 10px;
  }

  .subtitulo {
    font-size: 13px;
    padding: 0 10px;
  }
}
.modal-respuesta {
  width: 100%;
  max-width: 500px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-sizing: border-box;
}

.modal-respuesta textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-family: inherit;
}

.modal-respuesta .botones {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
/* Votación con corazón */
.votar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #000;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  background: #fff;
}

.votar .corazon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('/img/heart-outline.svg');
  background-size: contain;
  background-repeat: no-repeat;
  transform: scaleX(-1); /* gira horizontalmente */
  transition: all 0.3s ease;
}

.votar.votado {
  background-color: #ffe6e6;
  border-color: #cc0000;
  color: #cc0000;
}

.votar.votado .corazon {
  background-image: url('/img/heart-filled.svg');
}
