/* Viewport fijo y sin zoom en iOS */
input, button, select, textarea {
  font-size: 16px !important;
}
input:focus {
  outline: none;
}

/* Fondo base negro */
html {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Bitcount Prop Single', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: fixed;
  color: white;
  text-align: center;
  background-color: black;
}

.contenedor {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  margin: 0 auto; /* <- CAMBIO: de 10vh auto a 0 auto */
  max-width: 600px;
  text-align: center;
  box-sizing: border-box;
  width: 90%;
}


/* Encabezados */
h1, h2, h3 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 10px;
}

/* Slideshow */
.slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  background: black;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation-duration: 18s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.slide:nth-child(1) {
  background-image: url('imagenes/fondo1.jpg');
  animation-name: fade1;
  animation-delay: 0s;
}

.slide:nth-child(2) {
  background-image: url('imagenes/fondo2.jpg');
  animation-name: fade2;
  animation-delay: 6s;
}

.slide:nth-child(3) {
  background-image: url('imagenes/fondo3.jpg');
  animation-name: fade3;
  animation-delay: 12s;
}

@keyframes fade1 {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  30%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes fade2 {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  30%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes fade3 {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  30%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Input HEX */
#hexInput {
  padding: 10px;
  font-size: 1.2em;
  width: 80%;
  max-width: 300px;
  border: 2px solid #ccc;
  border-radius: 8px;
  text-align: center;
}

/* Botones */
button {
  padding: 12px 24px;
  font-size: 1.1em;
  border: none;
  background-color: #333;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:hover {
  background-color: #555;
}

/* Créditos 
.creditos {
  position: fixed;
  bottom: 10px;
  left: 10px;
  width: 300px; /* 120px * 2.5 = 300px 
  opacity: 0.85;
  z-index: 10;
}
.creditos img {
  width: 100%;
  height: auto;
  display: block;
}
*/


/* Contenedor de la pantalla de resultado */
#pantalla3 {
  max-width: 90%;
  width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 10px; /* <- era 20px */
  box-sizing: border-box;
}

/* Imagen del resultado */
#imagen {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

/* Texto */
p {
  font-size: 1.2em;
  line-height: 1.5em;
}

/* Responsivo para móviles */
@media (max-width: 480px) {
  h1, h2, h3 {
    font-size: 1.4em;
  }

  p {
    font-size: 1em;
  }

  #hexInput {
    font-size: 1em;
    padding: 8px;
  }

  #imagen {
    max-height: 200px;
  }

  button {
    font-size: 1em;
    padding: 10px 20px;
  }

  #pantalla3 {
    padding: 10px;
    margin-bottom: 10px;
  }
  
  @media (max-width: 480px) {
  .creditos {
    width: 180px; /* más pequeño en pantallas chicas */
  }
  }

}

.barra-suscripcion {
  display: flex;
  align-items: center; /* Esto puede mantenerse */
  justify-content: center;
  margin-top: 0;
  gap: 15px;
  padding: 10px 15px; /* Añadido: mejora el alineamiento interno */
}


.barra-suscripcion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.foto-perfil {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

.boton-suscribirse {
  padding: 8px 18px; /* Antes era 10px 18px, ahora más estrecho */
  font-size: 1em;
  background-color: red;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin: 0; /* Por si tiene márgenes */
  display: flex;
  align-items: center;
}


.boton-suscribirse:hover {
  background-color: darkred;
}

.bloque-suscripcion {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 12px 16px;
  margin-top: 8px; /* 👈 mucho más pegado */
  border-radius: 12px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
}



@media (max-width: 480px) {
  .foto-perfil {
    width: 48px;
    height: 48px;
  }

  .boton-suscribirse {
    font-size: 0.9em;
    padding: 10px 16px;
  }
}

#imagen:empty,
#imagen[src=""] {
  display: none;
}

.banner-paleta {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px 20px;
  border-radius: 15px;
  text-align: center;
  font-weight: bold;
  font-family: 'Bitcount Prop Single', sans-serif;
  margin: 25px auto 10px auto;
  width: fit-content;
  max-width: 90%;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.banner-paleta a {
  text-decoration: none;
  color: white;
  font-size: 1em;
}

.banner-paleta .rojo {
  color: red;
  font-weight: bold;
}

@media (max-width: 600px) {
  .banner-paleta {
    font-size: 0.9em;
    padding: 10px 16px;
  }
}

.icono-raza {
  width: 240px;
  height: auto;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

