html {
  background-color: #170f1f;
}

html,
body {
  min-height: 1%;
  margin: 0;
  overflow: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding-top: 0;
  position: relative;

  background-image: url(img/fondo12.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/*
========================================
            TIPOGRAFIAS
========================================
*/

h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(2rem, 7.4 * var(--ew, 1vw), 96px);
  line-height: 1.03;
  text-align: left;
  letter-spacing: -0.04em;
}

h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: 64px;
  line-height: 1.08;
  text-align: left;
  letter-spacing: -0.04em;
}

h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  text-align: left;
  letter-spacing: -0.04em;
}

h4 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  text-align: left;
  letter-spacing: -0.04em;
}

h5 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  text-align: left;
  letter-spacing: -0.04em;
}

h6 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  text-align: left;
  letter-spacing: -0.04em;
}

p,
ol,
li {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.35;
  text-align: left;
  letter-spacing: -0.02em;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
li {
  color: #ffffff;
  margin: 24px;
}

/*
===========================================================
                VARIAION DE TIPOGRAFIAS
===========================================================
*/

.titulo-degradado {
  font-size: 110px;

  background: linear-gradient(to bottom, #ffffff, #d7b0e6);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  margin-top: 0px;
  margin-bottom: 24px;
}

.titulo-degradado2 {
  font-size: clamp(3.2rem, 8 * var(--ew, 1vw), 96px);
  background: linear-gradient(to bottom, #ffffff, #f4a794);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  margin: 0 0 24px;
}

.titulo-degradado3 {
  font-size: 100px;

  background: linear-gradient(to bottom, #ffffff, #92ff70);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  margin: 0;
}

.resaltado1 {
  margin-bottom: 0px;
  color: #d7b0e6;
}

.resaltado2 {
  color: #170f1f;
  border-radius: 200px;
  background-color: #d7b0e6;
  padding: 8px 16px;
  font-weight: 700px;
}

.resaltado3 {
  font-weight: 700;
}

.resaltado4 {
  margin-bottom: 0px;
  color: #f4a794;
}

.resaltado5 {
  margin: 0px;
  color: #d2f5c7;
}

.fuentes {
  font-weight: 300;
  opacity: 0.75;
}

/*
========================================
            TARJETAS
========================================
*/

.tarjeta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.contenedorTarjeta {
  border-radius: 16px;
  /* border: 1px solid #f4a794; */
  padding: 0%;

  width: 500px;
  margin-bottom: 20%;
  margin-left: auto;
  box-sizing: border-box;

  background-origin: border-box;
  -webkit-background-origin: border-box;
  background-clip: padding-box, border-box;
  -webkit-background-clip: padding-box, border-box;
}

.contenedorTarjeta img {
  max-width: 100%;
}

.contenTituloImagen {
  display: flex;
  justify-content: space-between; /* Envía el primer elemento a la izquierda y el último a la derecha */
  align-items: flex-start; /* Alinea los elementos arriba */
  margin-left: 100px;
}

.messias{
    width: 30%;
    height: 30%;
    margin-right: auto;
    margin-top: 20px;
    border-radius: 20px;
}

.opciones {
  display: flex;
  align-items: center;
  gap: 10px;
}

.opciones img {
  margin-bottom: center;
  width: 80px;
  height: 80px;
  padding-bottom: 50px;
}

.imgTomasG {
  width: 45%;
  height: 45%;
  border-radius: 8px;
  border: 2px solid #79da5b80;
}

.ejTomasG {
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0;
  border-radius: 20px;
  box-shadow: 0px 0px 100px rgba(72, 253, 0, 0.5);
  border: 5px solid #79da5b;
  box-sizing: border-box;
}

.pantalla_malditotomas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));

  gap: 60px;
}

.pantalla_malditotomas h1 {
  font-size: clamp(2rem, 7 * var(--ew, 1vw), 6.25rem);
}

.pantalla4 .pantalla_malditotomas h2 {
  font-size: clamp(1.5rem, 4 * var(--ew, 1vw), 3.5rem);
}

.pantalla_malditotomas h3 {
  font-size: clamp(1.25rem, 3 * var(--ew, 1vw), 3rem);
}

.pantalla_malditotomas .ejTomasG {
  justify-self: end;
}

.textito {
  display: flex;
  flex-direction: row;
  gap: 200px;
}

.textito-messi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.textito-messi h2,
.textito-messi h3 {
  margin: 0;
}

.textito-messi h2 {
  font-size: 32px;
}

.pantalla4 .textito-messi h2 {
  font-size: 32px;
  margin: 0;
}

.imagen-comparacion {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 8px;
}

.pantalla4 .tarjeta_roja_messi {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
  align-items: center;
  gap: 32px;
  padding: 60px;

  border: 2px solid rgba(244, 167, 148, 0.45);
  border-radius: 16px;
  background: linear-gradient(
    to bottom,
    rgba(23, 15, 31, 0.35),
    rgba(244, 167, 148, 0.25)
  );
}

/*
========================================
            PANTALLAS
========================================
*/

.pantalla-malas_exp {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding-top: 1px;
  position: relative;


  background-image: url(../nucleo2__tp4/img/fondo11.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pantalla-malas_exp_2 {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding-top: 1px;
  position: relative;
  height: 100vh;

  background-image: url(img/fondo12.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pantalla-buenas_exp {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding-top: 1px;
  position: relative;

  background-image: url(./img/fondo7.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pantalla-tomasputo {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding-top: 1px;
  position: relative;

  background-image: url(./img/fondo6.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contenedorTarjeta {
  max-width: 400px;
  padding: 0px;
}

.contenedorTarjeta h4 {
  font-size: 28px;
  text-align: center; /* en la referencia el texto estÃ¡ centrado */
  margin: 16px 0;
}

.contenedorTarjeta p {
  font-size: 24px;
  margin: 0;
}

.contenedorTarjeta .opciones {
  margin-bottom: 12px;
}

.contenedorTarjeta .opciones img {
  width: 52px;
  height: 52px;
}

.tarjetaDegradadoVerde {
  /*nuevo*/
  border-radius: 8px;
  border: 2px solid #79da5b80;
  flex-direction: row;
  margin-left: 100px;
  padding: 16px;

  display: flex;
  justify-content: center;

  width: 90%;
  max-width: 90%;
  height: 20%;
  max-height: 100%;
  box-sizing: border-box;

  background: linear-gradient(to bottom, #170f1f00, #3f772e88);

  background-origin: border-box;
  -webkit-background-origin: border-box;
  background-clip: padding-box, border-box;
  -webkit-background-clip: padding-box, border-box;
}
/*
========================================
            PANTALLA 2 MANO
========================================
*/

.columna-texto {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0px 0;
}

.columna-texto footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
}

.subtitulo {
  font-weight: 400;
  font-size: 48px;
}

.contenedorTarjeta2 {
  display: flex;
  gap: 24px;
}

.tarjeta2 {
  box-sizing: border-box;
  padding: 24px;
  cursor: pointer;

  border: 2px solid rgba(215, 176, 230, 0.45);
  border-radius: 16px;
  background: linear-gradient(
    to bottom,
    rgba(23, 15, 31, 0.35),
    rgba(215, 176, 230, 0.25)
  );

  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.tarjeta2.seleccionada {
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(215, 176, 230, 0.6);
}

.tarjeta2 img {
  display: block;
  width: 100%;

  /* todas las imÃ¡genes con la misma forma */
  object-fit: cover; /* recorta en vez de deformar */
  border-radius: 8px;
}

.tarjeta2 h3 {
  font-size: 40px;
  margin: 16px 0 0;
}

.tarjeta2 h6 {
  font-size: 20px;
  font-weight: 400;
  margin: 4px 0 0;
  color: #d7b0e6;
}

.tarjeta2-roja {
  box-sizing: border-box;
  padding: 24px;

  border: 2px solid rgba(244, 167, 148, 0.45);
  border-radius: 16px;
  background: linear-gradient(
    to bottom,
    rgba(23, 15, 31, 0.35),
    rgba(244, 167, 148, 0.25)
  );
}

.tarjeta2-roja-exp {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;

  border: 2px solid rgba(244, 167, 148, 0.45);
  border-radius: 16px;
  background: linear-gradient(
    to bottom,
    rgba(23, 15, 31, 0.35),
    rgba(244, 167, 148, 0.25)
  );
}

.convertir_imgs ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(500px, 0.8fr);
  gap: 0px;
  list-style: none;
  padding-left: 0;
}

.convertir_imgs .tarjeta2 {
  padding: 0;
  margin: 12px;
}

.convertir_imgs .tarjeta2_cuqui {
  grid-column: 4;
  grid-row: 1 / 2;
  margin-left: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px solid rgba(244, 167, 148, 0.45);
}

.convertir_imgs .tarjeta2_cuqui h3 {
  margin: 12px 0 0;
}

/* ---------- Footer con el botÃ³n a la derecha ---------- */

.pantalla3 footer {
  display: flex;
  justify-content: flex-end;
  padding: 0;
  margin-top: 40px;
}

/*
========================================
        PANTALLA 4 MINIJUEGO
========================================
*/

.pantalla4 {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 120px 120px;

  display: flex;
  flex-direction: column;
}

.pantalla4 main {
  flex: 0;
}

/* saco los mÃ¡rgenes de 24px para alinear todo al borde izquierdo */
.pantalla4 h2,
.pantalla4 h6,
.pantalla4 p {
  margin: 0;
}

.pantalla4 h2 {
  font-size: 56px;
  margin-bottom: 40px;
}

/* ---------- Tarjeta grande ---------- */

.contenedorTarjeta3 {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  padding: 30px;
  box-sizing: border-box;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  background-color: linear-gradient(
    to bottom,
    rgba(163, 102, 190, 50%),
    rgba(23, 15, 31, 25%)
  );
}

/* ---------- TÃ­tulos de las columnas ---------- */

.pantalla4 h5 {
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 8px;
  white-space: nowrap;
  font-weight: 500;
}
/* ---------- Columna izquierda: referencia ---------- */

.refEstilo h6 {
  margin-bottom: 16px;
}

.refEstilo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.creditoLicencia {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 300;
  opacity: 0.75;
}

/* ---------- Columna derecha: prompt ---------- */

.pantalla4 .contenedorH6 {
  margin-bottom: 16px;
}

/* ---------- Footer ---------- */

.pantalla4 footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin-top: 28px;
}

.pantalla4 .instruccion {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pantalla4 .instruccion img {
  width: 36px;
  height: 36px;
}

.pantalla4 .instruccion p {
  font-size: 28px;
  font-weight: 700;
}

/* el botÃ³n un poco mÃ¡s chico que en las otras pantallas */
.pantalla4 .boton3 {
  font-size: 48px;
  padding: 12px 32px;
  margin-top: 0;
  gap: 10px;
}

.pantalla4 .boton3 img {
  width: 80px;
  height: 80px;
}

footer {
  padding: 20px;
}

.game-container {
  text-align: center;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid #79da5b80;
  margin-left: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  background: linear-gradient(to bottom, #170f1f00, #3f772e88);
  background-origin: border-box;
  -webkit-background-origin: border-box;
  background-clip: padding-box, border-box;
  -webkit-background-clip: padding-box, border-box;
}

.textoIzDer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.textoIzDer h3 {
  margin: 24px;
}

.items-container,
.slots-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 20px 0;
  min-height: 80px;
  padding: 15px;
  box-sizing: border-box;
}

.items-container {
  border-radius: 8px;
}

.slots-container span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 80px;
  font-weight: bold;
}

/* Estilos de los objetos que se arrastran */
.draggable {
  width: 100%;
  aspect-ratio: 396 / 238;
  height: auto;
  color: white;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid #6c757d;
  border-radius: 24px;
  box-sizing: border-box;
  cursor: grab;
  user-select: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.me_harta {
  position: relative;
  width: 100%;
  aspect-ratio: 396 / 238;
  height: auto;
  color: white;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid #6c757d;
  border-radius: 24px;
  box-sizing: border-box;

  user-select: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.draggable_correcto {
  border-color: #5cd65c;
}

.draggable_incorrecto {
  border-color: #e8643c;
}

.drag-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Evita que la imagen se deforme */
  pointer-events: none; /* Muy importante: evita que el navegador intente arrastrar la imagen en vez de la caja contenedora */
}

.icono_rata {
  position: absolute;
  left: 16px;
  top: 16px;
}

.draggable:active {
  cursor: grabbing;
}

.hide {
  opacity: 0.2;
}

/* ESTILOS DE LAS CASILLAS DE DESTINO */
.slot {
  position: relative;
  width: 100%;
  aspect-ratio: 396 / 238;
  min-width: 0;
  border: 3px dashed #6c757d; /* Borde punteado oscuro */
  background-color: rgba(48, 47, 47, 0.5);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;

  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.slot.filled > span {
  display: none;
}

.slot.filled {
  border-color: transparent;
  background-color: transparent;
}

.slot > .draggable {
  height: 100%;
}

.slots-container.orden-correcto .slot {
  aspect-ratio: 396 / 445;
}

.slot.hovered {
  background-color: #e3f2fd;
  border-color: #007bff;
  border-style: solid;
}

#message {
  font-weight: bold;
}

.mensajito {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  margin-top: 20px;
}

@container escena (max-width: 900px) {
  .pantalla4 {
    padding: 40px 24px;
  }

  .items-container,
  .slots-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*
========================================
            BOTONES
========================================
*/

.boton1 {
  display: inline-flex;
  align-items: center;
  gap: 0px;

  padding: 16px 40px;
  margin-top: 20px;
  margin-left: auto;

  background-color: #ffffff;
  border: #ffffff;
  border-style: solid;
  border-width: 4px;
  border-radius: 200px;
  cursor: pointer;

  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -0.02em;
  color: #170f1f;
  text-decoration: none;
}

.boton1 img {
  width: 80px;
  height: 80px;
}

.boton2 {
  display: inline-flex;
  align-items: center;
  gap: 0px;

  padding: 16px 40px;
  margin-top: 20px;

  background-color: rgba(255, 255, 255, 20%);
  border: #ffffff;
  border-style: solid;
  border-width: 4px;
  border-radius: 200px;
  cursor: pointer;

  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
}

.boton2 img {
  width: 80px;
  height: 80px;
}

.boton3 {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;

  padding: 16px 40px;
  margin-top: 20px;

  background-color: #ffffff;
  border: #ffffff;
  border-style: solid;
  border-width: 4px;
  border-radius: 200px;
  cursor: pointer;

  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -0.02em;
  color: #170f1f;
  text-decoration: none;
}

.boton3 img {
  width: 80px;
  height: 80px;
}

.degradado_boton1 {
  background: linear-gradient(to bottom, #ffffff, #c3f3b4);
  border: transparent;
}

.degradado_boton2 {
  background: linear-gradient(to bottom, #ffffff, #f4a794);
  border: transparent;
}

.degradado_boton3 {
  background: linear-gradient(to bottom, #ffffff, #a366be);
  border: transparent;
}

/* ---------- BotÃ³n Confirmar bloqueado ---------- */

.boton3 {
  transition:
    background-color 0.2s,
    color 0.2s;
}

.boton3.deshabilitado {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: transparent;
  color: rgba(23, 15, 31, 0.6);
  pointer-events: none; /* no se puede clickear */
  cursor: default;
}

.boton3.deshabilitado img {
  width: 80px;
  height: 80px;
}

.convertir_imgs .tarjeta2 img {
  cursor: pointer;
  transition: transform 0.2s ease;
}


/* Contenedor de cada tarjeta */
.convertir_imgs .tarjeta2:not(.tarjeta2_cuqui) {
  position: relative; /* Necesario para superponer las dos imágenes */
  width: 300px;       /* Ajustá al tamaño de tu diseño */
  height: 220px;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  user-select: none;  /* Evita que se seleccione o arrastre la imagen al mantener click */
}

/* Ambas imágenes (original y Ghibli) ocupan exactamente el mismo espacio */
.convertir_imgs .tarjeta2:not(.tarjeta2_cuqui) img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none; /* Evita el efecto fantasma de arrastrar imagen del navegador */
}

/* La imagen nueva empieza invisible (opacity: 0) */
.convertir_imgs .tarjeta2 img.img-ghibli {
  opacity: 0;
  /* Si soltás antes de 1s, vuelve atrás rápido (0.25s) */
  transition: opacity 0.12s linear;
}

/* Mientras mantenés apretado, tarda exactamente 1 segundo en aparecer por completo */
.convertir_imgs .tarjeta2.manteniendo img.img-ghibli {
  transition: none;
}

/* Una vez completado el segundo, queda fija en opacity: 1 */
.convertir_imgs .tarjeta2.convertida {
  cursor: default;
}

.convertir_imgs .tarjeta2.convertida img.img-ghibli {
  opacity: 1;
}

/* Contenedor de cada tarjeta */
.convertir_imgs .tarjeta2:not(.tarjeta2_cuqui) {
  position: relative;
  width: auto;
  height: auto;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box; /* Evita que el borde agrande la caja */
  border: 4px solid transparent; /* Borde transparente inicial para transición suave */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border-color: rgba(255, 255, 255, 0.3);
  background: #170f1f;
  touch-action: none;
}

/* Recuadro verde al completarse la conversión */
.convertir_imgs .tarjeta2.convertida {
  cursor: default;
  border-color: #79da5b;
  box-shadow: 0 0 8px #79da5b;
}
/* Contenedor exterior de la barra de tiempo */
.barra-tiempo-contenedor {
  width: 100%;
  height: 41px;
  background-color: rgba(255, 255, 255, 0.4);
  border: 0;
  border-radius: 200px;
  overflow: hidden;
  margin-top: 24px;
  box-sizing: border-box;
}

/* Relleno interno que se va achicando */
.barra-tiempo-relleno {
  width: 100%;
  height: 100%;
  background: #f4a794;
  border-radius: 200px;
  transform-origin: left center;
}





.boton1.deshabilitado {
  opacity: 0.5;
  pointer-events: none; /* Bloquea cualquier click */
  cursor: default;
}

/* Agregale transición suave al panel derecho */
.pantalla4 .tarjeta2_cuqui {
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Mensaje oculto inicialmente */
.tarjeta2_cuqui .mensaje-logrado {
  display: none;
  margin: 8px 0 0 0;
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8 * var(--ew, 1vw), 1.6rem);
  color: #79da5b;
}

/* Estado cuando se completan las 6/6 imágenes */
.pantalla4 .tarjeta2_cuqui.completado {
  border-color: #79da5b;
  background: linear-gradient(
    to bottom,
    rgba(23, 15, 31, 0.5),
    rgba(63, 119, 46, 0.45)
  );
  box-shadow: 0px 0px 30px rgba(121, 218, 91, 0.35);
}

.pantalla4 .tarjeta2_cuqui.completado .mensaje-logrado {
  display: block;
}

/* Opcional: que la barra de tiempo también se tiña de verde al ganar */
.pantalla4 .tarjeta2_cuqui.completado .barra-tiempo-relleno {
  background: linear-gradient(to right, #79da5b, #d2f5c7);
}

.pantalla4 {
  height: 100vh;

}



/*
======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
*/

.pantalla1v2{
  background-image: url(../nucleo3_tp4/img/fondo6.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 100vh;
    box-sizing: border-box;
    padding: 5px 120px;

    display: flex;
    flex-direction: column;
}

.pantalla1v2 main {
    flex: 1;
}

.pantalla1v2 h3{
    margin: 16px;
}

.pantalla1v2 p{
    font-size: 48px;
    margin: 16px;
}

.pantalla1v2 footer {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 15px;
}

.MalasExperiencias{
  flex: 1;                    
    min-width: 0;
    box-sizing: border-box;
    padding: 24px 36px;
    

    border: 2px solid rgba(201, 90, 62, 70%);
    border-radius: 16px;
    background: linear-gradient(to bottom, rgba(23, 15, 31, 0.35), rgba(201, 90, 62, 0.25));

    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.opciones{
  display: flex;
  align-items: center;
}

.escenario .boton1 {
  box-sizing: border-box;
  flex: none;
  height: 120px;
  margin: 0 0 0 auto;
  padding: 0 20px 0 40px;
  gap: 0;
  border: 0;
  border-radius: 200px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  color: #170f1f;
}

.escenario .boton1 img {
  flex: none;
  width: 72px;
  height: 72px;
}

.escenario .titulo-degradado2 {
  padding: 0.15em 0 0.25em;
  margin: -0.15em 0 -0.25em;
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 0.55em, #f4a794 1.15em);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pantalla4.escenario .titulo-degradado2 {
  background-image: linear-gradient(180deg, #ffffff 1.55em, #f4a794 2.15em);
}

.escenario .HeaderPaso1Prompt h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.escenario :is(.MalasExperiencias, .tarjeta2_cuqui) {
  box-sizing: border-box;
  border: 2px solid rgba(201, 90, 62, 0.7);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(23, 15, 31, 0.125), rgba(201, 90, 62, 0.25));
  box-shadow: none;
  cursor: default;
}

.escenario .MalasExperiencias {
  display: flex;
  min-width: 0;
}

.escenario .MalasExperiencias > div {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.escenario .MalasExperiencias .opciones {
  display: flex;
  align-items: center;
  gap: 20px;
}

.escenario .MalasExperiencias .opciones img {
  flex: none;
  width: 80px;
  height: 80px;
  padding: 0;
}

.escenario .MalasExperiencias h2 {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.escenario .MalasExperiencias p {
  margin: 0;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: 0;
}

.escenario .contenTituloImagen {
  display: flex;
  margin: 0;
}

.escenario .textoIzq {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}

.escenario .textoIzq p.subtitulo {
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.escenario .textoIzq .opciones {
  display: flex;
  align-items: center;
  gap: 24px;
}

.escenario .textoIzq .opciones img {
  flex: none;
  width: 112px;
  height: 112px;
  padding: 0;
  object-fit: scale-down;
}

.escenario .textoIzq h3.subtitulo {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.04em;
  color: #f4a794;
}

.escenario .convertir_imgs {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.escenario .convertir_imgs ul {
  list-style: none;
}

.escenario .convertir_imgs .tarjeta2:not(.tarjeta2_cuqui) {
  margin: 0;
}

.escenario .convertir_imgs:not(.en-juego) .tarjeta2:not(.tarjeta2_cuqui) {
  border-width: 0;
}

html.mov .escenario .convertir_imgs .tarjeta2:not(.tarjeta2_cuqui) {
  transition: border-width var(--t-estado) var(--e-estado), border-color var(--t-estado) var(--e-estado), box-shadow var(--t-estado) var(--e-estado), scale var(--t-rapido) var(--e-estado);
}

.escenario .convertir_imgs .tarjeta2:not(.tarjeta2_cuqui) img {
  border-radius: 12px;
}

.escenario .convertir_imgs .tarjeta2:not(.tarjeta2_cuqui) img.insignia {
  inset: auto 12px 12px auto;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #170f1f;
  object-fit: contain;
}

html.mov .convertir_imgs .tarjeta2 img.insignia {
  animation: sello var(--t-pop) var(--e-pop) backwards;
}

.escenario .convertir_imgs .tarjeta2_cuqui {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.escenario .etiqueta-dato {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: #f4a794;
}

.escenario .valor-grande {
  margin-top: 12px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 150px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
  color: #ffffff;
}

.escenario .valor-grande .total-chico {
  font-size: 96px;
  color: rgba(255, 255, 255, 0.5);
}

.escenario .tarjeta2_cuqui .mensaje-logrado {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.escenario footer h4 {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.escenario footer h4 img {
  flex: none;
  width: 48px;
  height: 48px;
}

.pantalla4.escenario .instruccion {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pantalla4.escenario .instruccion img {
  flex: none;
  width: 48px;
  height: 48px;
}

.pantalla4.escenario .instruccion p {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.escenario .tarjeta2-roja {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 22px;
}

.escenario .textito {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.escenario .textito > div {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.escenario .textito h3 {
  margin: 0;
  font-size: 64px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: #f4a794;
}

.escenario .textito > div + div h3 {
  font-weight: 700;
  color: #c95a3e;
}

.escenario .textito h2 {
  margin: 0;
  font-size: 110px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
  color: #ffffff;
}

.escenario .textito .cantidad-palabra {
  font-size: 80px;
}

.escenario .tarjeta2-roja > p:not(.creditoLicencia) {
  margin: 0;
  padding-left: 24px;
  border-left: 12px solid #c95a3e;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: 0;
}

.escenario .tarjeta2-roja .creditoLicencia {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

html:not(.vertical) :is(.pantalla1v2, .pantalla4).escenario {
  display: flex;
  flex-direction: column;
  padding: 90px 120px;
}

html:not(.vertical) :is(.pantalla1v2, .pantalla4).escenario > header {
  flex: none;
  margin: 0 0 36px;
  padding: 0;
}

html:not(.vertical) :is(.pantalla1v2, .pantalla4).escenario main {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
}

html:not(.vertical) .pantalla4.escenario > .columna-texto {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}

html:not(.vertical) :is(.pantalla1v2, .pantalla4).escenario footer {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 120px;
  margin: 40px 0 0;
  padding: 0;
}

html:not(.vertical) .escenario main > :is(.MalasExperiencias, .contenTituloImagen, .convertir_imgs, .tarjeta2-roja) {
  flex: 1 1 0;
  min-height: 0;
}

html:not(.vertical) .escenario .MalasExperiencias {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 48px;
  padding: 30px;
}

html:not(.vertical) .escenario .MalasExperiencias .imagen-comparacion {
  flex: none;
  width: 667px;
  max-width: none;
  height: 534px;
  margin: -2px;
  border-radius: 0;
}

html:not(.vertical) .escenario .contenTituloImagen {
  justify-content: space-between;
  align-items: flex-start;
}

html:not(.vertical) .escenario .textoIzq {
  flex: none;
  width: 1017px;
}

html:not(.vertical) .escenario .messias {
  flex: none;
  width: 627px;
  height: 812px;
  margin: -36px;
  border-radius: 0;
}

html:not(.vertical) .escenario .convertir_imgs {
  display: block;
}

html:not(.vertical) .escenario .convertir_imgs ul {
  display: grid;
  grid-template-columns: repeat(3, 330px) minmax(0, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 16px;
  margin: 0;
  padding: 0;
}

html:not(.vertical) .escenario .convertir_imgs .tarjeta2_cuqui {
  grid-column: 4;
  grid-row: 1 / 3;
  margin: 0 0 0 26px;
}

@media (pointer: coarse) {
  .escenario .tarjeta2-roja .creditoLicencia,
  .escenario .tarjeta2_cuqui .mensaje-logrado {
    font-size: max(28px, calc(11.5px / var(--escala, 1)));
  }
}

@media (prefers-reduced-motion: reduce) {
  html.mov .convertir_imgs .tarjeta2 img.insignia {
    animation: fundir 200ms linear;
  }
}
