:root {
  --azul-principal: #4b7dc5;
  --azul-oscuro: #35588a;
  --azul-claro: #5ea4ee;
  --blanco: #ffffff;
  --gris-claro: #f2f4f8;
}

* {
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--azul-principal), var(--azul-claro));
  color: var(--azul-oscuro);
}

.container {
  min-height: 100vh;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* TARJETAS */
.card {
  background: var(--blanco);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 800px;
}


/* LOGO / IMÁGENES */
.logo {
  max-width: 130px;
  margin: 0 auto 25px;
  display: block;
}

.logodif {
  max-width: 230px;
}

.logoNuevoComienzo {
  max-width: 250px;
}

.logoJuventudes {
  max-width: 250px;
}


/* INPUTS */
input, select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #ddd;
  background: var(--gris-claro);
  font-size: 1rem;
  margin-bottom: 18px;
  outline: none;
}

input

input:focus, select:focus {
  border-color: var(--azul-principal);
  background: var(--blanco);
}

/* BOTONES */
button {
  background: linear-gradient(135deg, var(--azul-principal), var(--azul-oscuro));
  color: var(--blanco);
  border: none;
  padding: 16px;
  font-size: 1.05rem;
  border-radius: 16px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* OPCIONES QUIZ */
.option {
  background: var(--azul-claro);
  color: var(--blanco);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.option:hover {
  background: var(--azul-principal);
  transform: scale(1.03);
}

/* CHECKLIST */
.checklist {
  margin-top: 15px;
}

.checklist label {
  display: flex;
  align-items: center;
  background: var(--gris-claro);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  font-size: 1rem;
}

.checklist input {
  margin-right: 12px;
  transform: scale(1.2);
}

.check-item {
  display: flex;
  align-items: center;
}

.check {
  width: 30%;
}

/* PERSONAJES */
.personajes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.personajes img {
  width: 100%;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.2s;
}

.personajes img:hover {
  transform: scale(1.05);
}

.avatar {
  width: 90px;
  margin: 10px auto;
  display: block;
}

.personaje {
  width: 120px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.personaje:hover {
  transform: scale(1.05);
}

.personaje.activo {
  box-shadow: 0 0 0 4px #00c4cc;
  border-radius: 12px;
}

.acompanante {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
}

.acompanante img {
  width: 80px;
  height: auto;
}

.acompanante p {
  font-weight: bold;
  color: var(--primario);
  font-size: 1.2rem;
}


/* Botones */
.opcion {
  display: block;
  margin: 10px 0;
}

.correcta {
  background-color: #4CAF50;
  color: white;
}

.incorrecta {
  background-color: #E53935;
  color: white;
}

/* Camara */
.camera-box {
  position: relative;
  margin: 15px 0;
}

video, img {
  width: 100%;
  border-radius: 12px;
}

/* QR*/
.qr {
  max-width: 300px;
}




/* =========================
   BOTON HOME
========================= */
.home-btn {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 1000;

  width: 40px;
  height: 40px;

  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%; /* 👈 totalmente redondo */

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  backdrop-filter: blur(4px);

  transition: background 0.2s ease, transform 0.2s ease;
}

/* SVG minimal */
.home-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--azul-oscuro);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hover sutil */
.home-btn:hover {
  background: var(--accent);
}

.home-btn:hover svg {
  stroke: white;
}

.home-btn:active {
  transform: scale(0.95);
}

/* =========================
   VIDEO
========================= */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.video-overlay video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}
