/* ---------- Splash screen ---------- */
#splash {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("../images/tex.jpg") repeat;
  background-size: 290px 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}
#splash img {
  width: 260px;   /* logo más grande */
  height: auto;
  opacity: 0;
  transform: scale(0.7);
  animation: fadeInZoom 0.8s forwards;
}
@keyframes fadeInZoom {
  to { opacity: 1; transform: scale(1); }
}
/* transición suave */
#splash.fade-out { transition: opacity 0.15s ease; opacity: 0; }

/* ocultamos todo el sitio hasta que termine el splash */
#contenido-principal { display: none; }

/* ---------- Estilos generales ---------- */
body {
font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #D13567;
  background-image: url("../images/tex.jpg");
  background-repeat: repeat;
  background-size: 290px 290px;
  color: #fff;
margin-top: 50px; /* Ajusta el valor según lo que necesites */

}

  /* Fuente Poppins solo para títulos */
  h1, h2, h3, h4, h5, h6 {font-family: 'Poppins', sans-serif;
  }

.contenedor {
  max-width: 600px;
  margin: 20px auto;
  background: url("../images/fondo.jpg?blur") center/cover no-repeat;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(15,8,23,0.5);
  position: relative;
  overflow: hidden;
  color: #202129;
}

/* ---------- Estilos para verificación ---------- */
.verificacion { display: block; }
.logo { margin: 10px auto 20px; }
.logo img { max-width: 220px; height: auto; border-radius: 12px; }

.contenido { position: relative; z-index: 1; }
.botones { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }

button {
  padding: 12px 25px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to bottom, #D23467, #710088);
  color: white;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(15,8,23,0.3);
}
button:hover { background: linear-gradient(to bottom, #710088, #D23467); }

.mensaje { margin-top: 15px; font-size: 16px; font-weight: bold; color: #fff; }

.descripcion {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.5;
  background: rgba(15,8,23,0.4);
  color: #fff;
  padding: 15px;
  border-radius: 10px;
  text-align: justify;
}
.comprar {
  margin-top: 15px;
  font-size: 15px;
  background: rgba(15, 8, 23, 0.4);
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  text-align: center;
}
.comprar a { color: #fff; font-weight: bold; text-decoration: underline; }
.recursos {
  margin-top: 15px;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  color: #fff;
  display: inline-block;
}

/* ---------- Estilos para el juego ---------- */
.contenedor-juego {
  display: none;
  max-width: 600px;
  margin: 20px auto;
  background: url("../images/fondo.jpg?blur") center/cover no-repeat;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(15,8,23,0.5);
  position: relative;
  overflow: hidden;
  color: #fff;
}
#logo-juego { width: 220px; margin: 20px auto; display: block; }
h1 {
  margin-bottom: 10px;
  font-size: 23px;
  font-weight: 800;
  text-shadow: 2px 2px 6px rgba(15,8,23,0.9);
  color: #fff;
}

.ruletas { display: flex; justify-content: center; gap: 5px; margin: 8px 0; flex-wrap: wrap; }
.ruleta {
  width: 220px;
  height: 110px;
  border: 8px solid #D23467CC;	  
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(to bottom, #FFF, #FFBCCC);
  color: #231335;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15,8,23,0.4);
}
.opciones {
  position: absolute;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.6s ease, opacity 0.6s ease;
  padding: 6px;
  box-sizing: border-box;
}
.resultado {
  margin-top: 10px;
  font-size: 14px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(15,8,23,0.7);
}
.tiempo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15,8,23,0.4);
  color: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  margin: 5px auto 15px;
  box-shadow: 0 3px 8px rgba(15,8,23,0.4);
}
.tiempo::before { content: "⏰"; font-size: 18px; }

hr { margin: 3px auto; border: 1px solid rgba(255,255,255,0.4); width: 80%; }
img.opcion-img { max-height: 120px; max-width: 90%; border-radius: 10px; }
.recursos-link {
  display: inline-block;
  margin-top: 30px;
  font-size: 14px;
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
}
.creditos { margin: 20px auto 40px; font-size: 14px; color: #fff; opacity: 0.8; }
.creditos strong { font-weight: bold; }

@media (max-width: 600px) {
  h1 { font-size: 18px; }
  .ruleta { width: 90%; }
  button { font-size: 16px; width: 90%; }
  .resultado, .tiempo { font-size: 16px; }
  .contenedor, .contenedor-juego { margin: 20px 15px; }
  #logo-juego { width: 220px; }
  .logo img { max-width: 220px; }
}

/* ---------- Modal ---------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(15,8,23,0.7);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  color: #231335;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  width: 80%;
  text-align: left;
  box-shadow: 0 6px 20px rgba(15,8,23,0.6);
  position: relative;
}
.modal-content h2 { margin-top: 0; }
.close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: #231335;
  cursor: pointer;
}

/* Modal jugar */
#modalJugar .modal-content {
  background: linear-gradient(to bottom, #FFD6E0, #FFF);
  color: #231335;
  text-align: center;
}
#modalJugar button {
  background: linear-gradient(to bottom, #D23467, #710088);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(15,8,23,0.4);
}
#modalJugar button:hover {
  background: linear-gradient(to bottom, #710088, #D23467);
}

/* Ocultar resultados temporalmente */
#resultado1, #resultado2 { display: none !important; }

/* ---------- Flecha indicador ---------- */
.flecha-indicador {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) scaleX(2);
  font-size: 280px;
  line-height: 0.8;
  pointer-events: none;
  color: rgba(255, 105, 180, 0.95);
  text-shadow: 0 0 10px rgba(255,105,180,0.9), 0 0 30px rgba(255,20,147,0.7);
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
@keyframes flechaFloat {
  0%   { transform: translate(-50%, 0); }
  50%  { transform: translate(-50%, -12px); }
  100% { transform: translate(-50%, 0); }
}
.flecha-visible {
  opacity: 1 !important;
  animation: flechaFloat 1.4s ease-in-out infinite;
}

/* ---------- Botón hamburguesa ---------- */
#hamburgerMenu { position: fixed; top: 20px; right: 10px; z-index: 99999; }
#hamburgerBtn {
  width: 50px; height: 50px;
  border-radius: 12px; border: none;
  background: linear-gradient(145deg, #ff4fa2, #710088);
  display: flex; justify-content: center; align-items: center;
  cursor: pointer; box-shadow: 0 0 15px rgba(255,0,120,0.7);
}
#hamburgerBtn:hover { transform: scale(1.1); }

#hamburgerOptions {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  display: none;
  position: absolute;
  right: 0;
  background: rgba(28,17,51,0.95);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  min-width: 180px;
  overflow: visible;
  z-index: 9999;
}
#hamburgerOptions li {
  padding: 10px 0px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
#hamburgerOptions li:last-child { border-bottom: none; }
#hamburgerOptions li:hover { background: #D23467; }

/* ---------- Submenú ---------- */
.submenu { position: relative; cursor: pointer; padding: 10px 16px; color: #fff; background: rgba(28,17,51,0.95); border-bottom: 1px solid rgba(255,255,255,0.15); width: 100%; }
.submenu-items {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  width: 100%;
  list-style: none;
  margin: 0; padding: 0;
  background: rgba(15,5,35,0.95);
  border-radius: 0 0 12px 12px;
  z-index: 99999;
}
.submenu-items li {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  background: transparent;
}
.submenu-items li:last-child { border-bottom: none; }
.submenu-items li:hover { background: #D23467; }
.submenu-items li a { color: #fff; text-decoration: none; display: block; width: 100%; }
.submenu .arrow { color: #ff4fa2; font-size: 12px; margin-left: 5px; }

/* ---------- Modal extra ---------- */
.modal-content1 {
  background: #fff;
  color: #231335;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  width: 80%;
  text-align: left;
  box-shadow: 0 6px 20px rgba(15,8,23,0.6);
  position: relative;
}
.modal-content1 h2 { margin-top: 0; }
.modal-content1 ul li { margin: 10px 0; line-height: 1.5; }
.modal-content1 ul li a { color: #D23467; text-decoration: none; font-weight: bold; }
.modal-content1 ul li a:hover { color: #710088; }
.modal-content1 ul li .descripcion { margin-left: 10px; color: #555; font-weight: normal; font-size: 0.95em; }

/* ---------- Modal FULL ---------- */
#modalFull {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}
#modalFull.show { display: flex; justify-content: center; align-items: center; }
#modalFull .modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  box-sizing: border-box;
}





/* ===== Botón burbuja circular ===== */
#bubbleMenu {
  position: fixed;
  top: 20px;
  left: 10px;
  z-index: 99999;
}

#bubbleBtn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, #ff4fa2, #710088);
  box-shadow: 0 0 15px rgba(255, 0, 120, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: pulse 5s infinite; /* efecto cada 5s */
}

#bubbleBtn img {
  width: 32px;
  height: 32px;
}

#bubbleOptions li.active {
  background: #95148E;         /* color distinto */
  color: #fff;              /* texto más apagado */
  cursor: default;          /* no parece clickeable */
  pointer-events: none;     /* evita clics */
}


#bubbleBtn:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0%, 90% { transform: scale(1); }
  95% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ===== Menú desplegable ===== */
#bubbleOptions {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  display: none;
  flex-direction: column;
  background: rgba(28,17,51,0.9);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  overflow: hidden;
}

#bubbleOptions li {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: background 0.25s ease;
}

#bubbleOptions li:last-child {
  border-bottom: none;
}

#bubbleOptions li:hover {
  background: #D23467;
}

.descripcion-collapsible {
  max-width: 600px;
  margin: 20px auto;
  color: #fff;
}

.descripcion-content {
  max-height: 160px; /* altura inicial para mostrar aproximadamente la mitad */
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 15px;
  background: rgba(15,8,23,0.4);
  border-radius: 10px;
  text-align: justify;
  line-height: 1.5;
  font-size: 14px;
}

.descripcion-content.expanded {
  max-height: 1000px; /* altura grande para mostrar todo */
}

button#toggleBtn {
  margin-top: 10px;
  background: linear-gradient(to bottom, #331944, #480056);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(15,8,23,0.3);
}
    footer.creditos {
      width: 100%;
      text-align: center;
      margin: 20px auto 10px;
      font-size: 14px;
      color: #fff;
      opacity: 0.8;
    }
	
	
	
	/* Botón flotante vertical izquierda */
.boton-flotante {
  position: fixed;
  left: 0;
  top: 60%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left top;
  background: linear-gradient(to bottom, #4CAF50, #087f23);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 0px 0px 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.boton-flotante:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  transform: translateY(-50%) rotate(-90deg) scale(1.05);
}

/* Botones dentro del modal */
.btn-compra {
  display: block;
  background: linear-gradient(to bottom, #D23467, #710088);
  color: #fff !important;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  transition: 0.3s;
}
.btn-compra:hover {
  background: linear-gradient(to bottom, #710088, #D23467);
}



.btn-flotanteverde {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(to bottom, #4CAF50, #087f23);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 9999;
}

.btn-flotanteverde:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}


	/* Dados */



#dicePopup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}


#dicePopup .popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  animation: popIn 0.4s ease;
  
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.dice-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
  
}

.dice-group {
  margin: 20px 0;
  text-align: center;
}

.dice-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.dice {
  width: 120px;
  height: 100px;
  background: linear-gradient(135deg, #2e7d32, #66bb6a); /* verde degradado */
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: white; /* letras blancas */
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.dice.roll {
  animation: roll 0.8s ease;
}

@keyframes roll {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.1); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}


@keyframes roll {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.1); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.close-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background: #231335;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}


.redes {
  margin-top: 5px;
  display: flex;
  gap: 10px; /* separación entre iconos */
   color: #fff;
}

.redes a img {
  width: 20px;
  height: 20px;
  fill: white;
  filter: invert(1); /* hace que los SVG se vean blancos sobre fondo oscuro */
  transition: transform 0.2s ease-in-out;
}

.redes a:hover img {
  transform: scale(1.2); /* efecto de zoom al pasar el mouse */
}

/* Color del enlace de la web */
.web-link {
  color: #D23467;        /* Color personalizado */
  font-weight: bold;     /* Para que resalte más */
  text-decoration: none; /* Sin subrayado */
}

.web-link:hover {
  text-decoration: underline; /* subrayado al pasar el mouse */
}




 /* lENGUAJE */

#languageSwitcher {
  position: fixed;
  top: 20px;
  right: 75px;
  display: flex;
  flex-direction: row; /* 👉 ahora van uno al lado del otro */
  gap: 6px;
  z-index: 9999;
}

.lang-btn {
  width: 24px;   /* 👉 más pequeños */
  height: 24px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.0);
  transition: transform 0.2s ease-in-out;
  background: #D23467;
  padding: 0;
}

.lang-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lang-btn:hover {
  transform: scale(1.15);
}



