html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(-45deg, #85beff, #4ab8e7, #a37cff, #e39bff);
  background-size: 400% 400%;
  animation: fondoAnimado 12s ease infinite;
}

/* ========== CONTENEDOR PRINCIPAL ========== */
.container {
  .container {
  background-color: rgba(255, 255, 255, 0.3); /* semi-transparente */
  backdrop-filter: blur(10px); /* opcional: efecto vidrio */
  background-color: rgba(255, 255, 255, 0.2); /* o más opaco si quieres */
backdrop-filter: blur(10px);
}
  padding: 2em;
  border-radius: 20px;
  box-shadow: 0 0 15px rgb(230, 214, 255);
  max-width: 600px;
  width: 100%;
}

/* ========== TEXTOS GENERALES ========== */
h1, h2 {
  color: #352c5d;
}

/* ========== TEXTAREA Y SELECT ========== */
textarea {
  width: 100%;
  height: 80px;
  margin-top: 10px;
  margin-bottom: 15px;
  padding: 10px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #290853;
  resize: vertical;
}

select {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #290853;
}

/* ========== BOTONES ========== */
button {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  background-color: #543189;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 10px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #ac3fec;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========== RESULTADOS ========== */
#resultado, #resultadoReels {
  background: #f8f7fa;
  padding: 1em;
  border-left: 4px solid #9b5cb6;
  border-radius: 10px;
  margin-bottom: 1em;
  white-space: pre-wrap;
  animation: aparecerSuave 0.6s ease;
  color: #1f2937;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== HEADER Y LOGO ========== */
.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  align-self: stretch;
  animation: aparecerDesdeArriba 1s ease-out;
}

.titulo-contenedor {
  display: flex;
  flex-direction: column;
  align-items: center; /* ← Esto centra ambos elementos */
  gap: 0.2rem;
}


.tituloWeb {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 3.5em;
  color: #ffffff;
  margin: 0;
  font-weight: 600;
  animation: fadeInUp 1s ease-out;
  letter-spacing: 1px; /* antes estaba en 6px */
  text-transform: uppercase;
}

.eslogan {
  font-size: 1.5em; /* antes era 1.2em */
  color: #ffffff;
  margin: -15;
  font-weight: 500;
  letter-spacing: 1px;
  animation: fadeInUp 1.4s ease-out;
}

/* ========== ANIMACIONES ========== */
.fondo-animado {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(-45deg, #85beff, #4ab8e7, #a37cff, #e39bff);
  background-size: 400% 400%;
  animation: fondoAnimado 12s ease infinite;
  .fondo-animado {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(-45deg, #85beff, #4ab8e7, #a37cff, #e39bff);
  background-size: 400% 400%;
  animation: fondoAnimado 12s ease infinite;
}
}
@keyframes aparecerDesdeArriba {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aparecerDesdeAbajo {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes girarLogo {
  from {
    transform: rotate(-15deg);
    opacity: 0;
  }
  to {
    transform: rotate(0);
    opacity: 1;
  }
}

@keyframes aparecerSuave {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.destello {
  animation: resaltar 0.6s ease;
}

@keyframes resaltar {
  0% {
    background-color: #fef08a;
  }
  100% {
    background-color: #f9fafb;
  }
}

footer {
  text-align: center;
  font-size: 0.9em;
  color: #1f2937; /* negro suave */
  margin-top: 30px; /* espacio arriba */
  padding-bottom: 20px; /* por si quieres más aire abajo */
  background: none;
  border: none;
  font-weight: 500;
}
.mensaje-bienvenida {
  font-size: 1.2em;
  color: #ffffff;
  margin: 1.5em auto 2em;
  text-align: center;
  animation: aparecerSuave 1s ease-out;
  max-width: 600px;
  font-weight: 500;
}
@media (max-width: 600px) {
  body {
    padding: 1em;
  }

  .container {
    padding: 1.5em;
    border-radius: 12px;
  }

  .tituloWeb {
    font-size: 2em;
  }

  .logo-img-esquina {
    width: 45px;
    top: 15px;
    left: 15px;
  }

}
.mensaje-bienvenida {
  font-size: 1.2em;
  color: #ffffff;
  margin: 1.5em auto 2em;
  text-align: center;
  animation: fadeInBienvenida 1s ease-out;
  max-width: 600px;
  font-weight: 500;
  opacity: 1;
  transition: opacity 1s ease;
  height: auto;
}
@keyframes fadeInBienvenida {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ejemplos {
  margin-top: 60px;
  text-align: center;
}

.ejemplos h2 {
  font-size: 1.6em;
  color: #4f46e5;
  margin-bottom: 1em;
  font-weight: 600;
}

.ejemplos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
  max-width: 600px;
  margin: 0 auto;
}

.ejemplo {
  background-color: #f3f4f6;
  border-left: 4px solid #6366f1;
  padding: 1em;
  border-radius: 10px;
  color: #374151;
  font-style: italic;
}

.alerta-limite {
  background-color: #fee2e2;
  color: #991b1b;
  padding: 12px 20px;
  border-left: 5px solid #ef4444;
  border-radius: 10px;
  font-weight: 500;
  max-width: 600px;
  margin: 20px auto;
  text-align: center;
  animation: aparecerSuave 0.6s ease;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.oculto {
  display: none;
}

.btn-pro {
  padding: 10px 16px;
  font-size: 0.95em;
  background-color: #f97316; /* color llamativo naranja */
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  transition: all 0.3s ease;
  margin-left: 10px;
}

.btn-pro:hover {
  background-color: #ea580c;
  transform: translateY(-2px);
}

.botones-generales {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 10px 0 20px;
}

.btn-pro {
  background-color: #f59e0b;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  transition: all 0.3s ease;
}

@keyframes fondoAnimado {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.selector-idioma {
  background-color: #5e2ca5;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  width: auto;
  font-family: 'Poppins', sans-serif;
}


.selector-idioma button {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 6px 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.selector-idioma button:hover {
  background-color: #ff030333;
}


.selector-idioma button {
  background: none;
  border: none;
  color: white;
  font-size: 0.9em;
  cursor: pointer;
  padding: 4px 6px;
  transition: opacity 0.3s ease;
}

.selector-idioma button:hover {
  opacity: 0.7;
}


.selector-idioma:hover {
  background-color: #7d59af;
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: transparent;
}

.navbar li a {
  color: white;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 1.2rem;
  border: 2px solid white;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
}

.navbar li a:hover {
  background-color: white;
  color: #3486decf; /* o el color que uses para los textos */
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 1rem;
  padding-right: 2rem;
  width: 100%; /* ← ¡clave! */
}

.tituloWeb {
  margin: 0;
  font-size: 3.5rem;
  color: white;
  font-weight: 800;
}
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .selector-idioma {
    align-self: flex-end;
  }
}
#tiktok {
  padding: 3em 2em;
  #tiktok, .tiktok-seccion, #tiktok-section {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  margin: 60px auto;
  max-width: 800px;
  animation: aparecerDesdeAbajo 0.8s ease;
}
#tiktok textarea, #tiktok select {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 15px;
  padding: 10px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #290853;
}

#resultadoTikTok {
#tiktok, .tiktok-seccion, #tiktok-section {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
  padding: 1em;
  border-left: 4px solid #7c3aed;
  border-radius: 10px;
  margin-top: 1em;
  color: #1f2937;
}
/* ========== SECCIÓN TIKTOK ESPECIAL ========== */
.tiktok-seccion {
  #tiktok, .tiktok-seccion, #tiktok-section {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
  border-left: 6px solid #a855f7;
  padding: 2rem;
  border-radius: 20px;
  margin: 3rem auto;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
  animation: aparecerSuave 0.6s ease;
}

.tiktok-seccion h2 {
  text-align: center;
  font-size: 1.7rem;
  color: #6b21a8;
  margin-bottom: 1rem;
}

#categoriaTikTok {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border-radius: 10px;
  border: 2px solid #9333ea;
  margin-bottom: 1rem;
  #tiktok, .tiktok-seccion, #tiktok-section {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
  color: #4b0082;
  font-weight: 600;
}

#categoriaTikTok option {
  color: #4b0082;
}

.tiktok-seccion button {
  #tiktok, .tiktok-seccion, #tiktok-section {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 1rem;
}

/* Estilo para la sección TikTok */
#tiktok-section {
 #tiktok, .tiktok-seccion, #tiktok-section {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
  padding: 2em;
  border-radius: 20px;
  margin-top: 10px;
  margin-bottom: 40px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: white;
  font-family: 'Poppins', sans-serif;
  transition: background 0.3s ease;
}

/* Títulos */
#tiktok-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Inputs y selects */
#tiktok-section textarea,
#tiktok-section select {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Etiquetas */
#tiktok-section label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 1rem;
  color: white;
}

/* Botones */
#tiktok-section button {
 #tiktok, .tiktok-seccion, #tiktok-section {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
  color: white;
  padding: 14px 24px;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  font-weight: 600;
  width: 100%;
}

#tiktok-section button:hover {
  background-color: none;
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(128, 0, 255, 0.3);
}

/* Resultado */
.resultado-tiktok {
  background-color: none;
  color: #4b2ba3;
  padding: 16px;
  margin-top: 20px;
  border-radius: 12px;
  font-weight: 500;
  white-space: pre-wrap;
  font-size: 1.1rem;
}

/* Estilos especiales por tipo */
.tiktok-divertido {
  background: linear-gradient(to right, #f9d423, #ff4e50);
}

.tiktok-trend {
  background: none;
}

.tiktok-educativo {
  background: linear-gradient(to right, #f0f0f0, #d1d1d1);
  color: #333;
}

.tiktok-impactante {
  background: linear-gradient(to right, #000000, #434343);
  color: #fff;
}
html, body {
  height: 100%;
}
/* ========== ESTILO VIDRIO GENERAL ========== */
.vidrio {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
#pro {
  scroll-margin-top: 100px;
}
