/* ============================
   Base
============================ */
body {
  background-color: #0b0d12;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: #e8e8e8;
}

/* ============================
   Navbar
============================ */
.navegador {
  height: 72px;
  background-color: #000 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
}

.sitio-web,
.navbar-brand {
  font-family: 'Creepster', cursive;
  font-size: 2rem;
  letter-spacing: 2px;
  color: #06e3e3;
  text-shadow: 0 0 10px rgba(6, 227, 227, 0.55);
}

.navbar-brand {
  text-decoration: none;
  transition: text-shadow 0.25s ease, transform 0.25s ease;
}

.navbar-brand:hover {
  color: #4ff2f2;
  text-shadow: 0 0 16px rgba(79, 242, 242, 0.85);
  transform: scale(1.02);
}

/* ============================
   Pantalla de bienvenida
============================ */
.bienvenida {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(10, 8, 20, 0.93);
  background-size: cover;
  background-position: center;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1.2s ease-out;
  padding: 1.5rem;
}

.contenido-bienvenida {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 2.5rem 3rem;
  border-radius: 18px;
  border: 1px solid rgba(6, 227, 227, 0.25);
  box-shadow: 0 0 40px rgba(6, 227, 227, 0.15);
  max-width: 700px;
}

.contenido-bienvenida h1 {
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.contenido-bienvenida h3 {
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #cfcfcf;
  margin-bottom: 0;
}

.bienvenida.oculto {
  opacity: 0;
  pointer-events: none;
}

/* ============================
   Imagen de fondo (hero)
============================ */
.imagen-fondo {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.imagen-ajustada {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.imagen-fondo-degradado {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(11, 13, 18, 0), #0b0d12);
  pointer-events: none;
}

/* ============================
   Contenedor general
============================ */
.container {
  margin-bottom: 60px;
}

#contenedor-temas {
  padding: 2.5rem 1rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ============================
   Tarjetas de tema / preguntas
============================ */
.preguntas {
  background: linear-gradient(160deg, #302f37 0%, #201f26 100%);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  margin: 0 auto 3rem;
  max-width: 700px;
  border: 1px solid rgba(6, 227, 227, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.preguntas:hover {
  box-shadow: 0 14px 40px rgba(6, 227, 227, 0.12);
  transform: translateY(-2px);
}

.preguntas .overlay {
  color: white;
}

.titulo-tema {
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.4;
  color: #f2f2f2;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.imagen-tema {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 1.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.pregunta-tema {
  font-size: 1.1rem;
  font-weight: 500;
  color: #06e3e3;
  margin-bottom: 0.75rem;
  flex: 1 1 100%;
}

/* ============================
   Formulario de comentario
============================ */
.comentario-form .input-group {
  margin-top: 0.5rem;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.input-comentario {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 10px !important;
  padding: 0.65rem 1rem;
  flex: 1 1 220px;
}

.input-comentario::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-comentario:focus {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: #06e3e3;
  box-shadow: 0 0 0 0.2rem rgba(6, 227, 227, 0.2);
  color: #fff;
}

.comentario-form .btn-info {
  border-radius: 10px !important;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  color: #06222b;
}

/* ============================
   Respuestas / comentarios
============================ */
.respuestas {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.respuestas h5 {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #06e3e3;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.imagen-comentario-decorativa {
  max-width: 140px;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.comentario {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  transition: background-color 0.2s ease;
}

.comentario:hover {
  background-color: rgba(255, 255, 255, 0.07);
}

.comentario:last-child {
  margin-bottom: 0;
}

.comentario-texto {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.comentario .btn-sm {
  border-radius: 8px;
  font-size: 0.8rem;
}

.respuestas-secundarias {
  border-left: 2px solid rgba(6, 227, 227, 0.25);
}

.respuestas-secundarias:not(:empty) {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
}

/* ============================
   Utilidades varias
============================ */
.pregunta-texto {
  font-size: 2rem;
  font-family: 'Creepster', cursive;
}

/* ============================
   Responsive
============================ */
@media (max-width: 576px) {
  .sitio-web,
  .navbar-brand {
    font-size: 1.5rem;
  }

  .contenido-bienvenida {
    padding: 1.75rem 1.5rem;
  }

  .imagen-ajustada {
    height: 240px;
  }

  .preguntas {
    padding: 1.5rem 1.25rem;
    margin-bottom: 2rem;
    border-radius: 16px;
  }

  .titulo-tema {
    font-size: 1.15rem;
  }
}
