/* ==============================
   RESET Y ESTILOS GENERALES
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==============================
   ENCABEZADO
   ============================== */
header {
  background: red;
  text-align: center;
  padding: 20px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.logo {
  width: 150px;
  height: auto;
}

.titulo {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 3px 3px 0 #000;
}

/* ==============================
   TABS
   ============================== */
.tabs {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.tab-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  border: 2px solid white;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tab-link.active,
.tab-link:hover {
  background: yellow;
  color: black;
}

/* ==============================
   CONTENIDO PRINCIPAL
   ============================== */
main {
  flex: 1;
  padding: 20px;
  text-align: center;
}

/* Imagen Wonder Woman */
.personaje {
  max-width: 250px;
  margin: 20px auto;
  display: block;
  transition: all 0.4s ease;
}

.personaje:hover {
  max-width: 300px;
  opacity: 0.8;
  filter: drop-shadow(0 0 15px yellow);
}

/* ==============================
   TAB 2: "Es un héroe porque..."
   ============================== */
.tab2-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tab2-imagen img {
  max-width: 500px;
  border-radius: 10px;
}

.tab2-contenido {
  max-width: 400px;
  text-align: left;
}

.pregunta {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.opciones {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.opciones button {
  background: none;
  color: white;
  border: 2px solid transparent;
  padding: 10px 15px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.opciones button:hover {
  border: 2px solid red;
}

/* Mensaje emergente */
.mensaje {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  color: white;
  padding: 30px 40px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 247, 0, 0.6);
  z-index: 1000;
  display: none;
}

.mensaje button {
  margin-top: 20px;
  padding: 10px 20px;
  background: red;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.mensaje button:hover {
  background: darkred;
}

/* ==============================
   TAB 3: Galería de héroes y Accordion
   ============================== */
.heroes-galeria {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.heroe-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 150px;
  margin: 10px;
}

.heroe-container img.heroe {
  width: 100%;
  max-width: 150px;
  height: auto;
  transition: transform 0.4s, filter 0.4s;
}

.descripcion {
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.1rem;
  color: #ddd;
}

/* Accordion personalizado */
#accordion h3 {
  background-color: red;    /* color de fondo rojo */
  color: white;             /* texto blanco */
  padding: 10px 20px;       /* menos ancho */
  margin: 5px 0;            /* separación */
  border-radius: 5px;       /* bordes redondeados */
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

#accordion h3:hover {
  background-color: darkred;
}

#accordion div {
  background-color: #111;
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 5px;
}

/* ==============================
   FOOTER
   ============================== */
footer {
  background: #fbff00;
  color: #000;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  margin-top: auto;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
  }

  .heroes-galeria {
    flex-direction: column;
  }

  .tab2-container {
    flex-direction: column;
    align-items: center;
  }

  .tab2-contenido {
    max-width: 100%;
    text-align: center;
  }
}

/* ==============================
   TOOLTIP
   ============================== */
.ui-tooltip {
  background: rgb(255, 225, 0) !important;
  color: #000 !important;
  border: none;
  font-weight: bold;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
