/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================== BASE ===================== */
html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: #f0f0f5;

  /* Fondo oscuro con overlay fijo */
  background: linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.88)),
              url('https://i.ibb.co/N6NpBVtk/file-00000000de2c6230aca07408455d09bd.png') no-repeat center center;
  background-size: cover;
  background-attachment: scroll; /* ✅ Arreglado: se eliminó fixed */
  -webkit-overflow-scrolling: touch;
}

/* ===================== SCROLLBAR ===================== */
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
body::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* ===================== HEADER ===================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e2eff;
  font-weight: bold;
}

.boton-header {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(145deg, #8e2eff, #5b14d2);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.boton-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ===================== MAIN ===================== */
.main {
  min-height: 100vh;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.main h1 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.main p {
  max-width: 600px;
  font-size: 1rem;
  opacity: 0.85;
}

.boton3d {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  background: linear-gradient(145deg, #8e2eff, #5b14d2);
  color: #fff;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1rem;
}

.boton3d:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.subtexto {
  font-size: 0.9rem;
  color: #ddd;
}

.subtexto a {
  color: #8e2eff;
  text-decoration: underline;
}

/* ===================== MINADOR ===================== */
.minador-container {
  margin-top: 3rem;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.minador-ui {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(142, 46, 255, 0.2);
}

.minador-barra {
  background-color: #222;
  height: 10px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.minador-progreso {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8e2eff, #5b14d2);
  transition: width 0.3s ease-in-out;
}

.minador-dato {
  font-size: 1.1rem;
  color: #fff;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.minador-texto {
  font-size: 0.95rem;
  color: #aaa;
}

/* ===================== CARDS ===================== */
.bloques {
  margin-top: 4rem;
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translateY(-8px);
}

.card[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* ===================== FOOTER ===================== */
footer {
  text-align: center;
  font-size: 0.8rem;
  padding: 2rem;
  color: #888;
}

/* ===================== RESPONSIVE ===================== */
@media (min-width: 768px) {
  .main h1 {
    font-size: 2.8rem;
  }
  .main p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .bloques {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    padding-bottom: 2rem;
  }
  .card {
    width: 90%;
    margin: 1rem auto;
  }
  .minador-container {
    padding: 0 1rem;
  }
  footer .legal-links {
    margin-top: 0.5rem;
    font-size: 0.8rem;
  }
  footer .legal-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.4rem;
    transition: color 0.3s ease;
  }
  footer .legal-links a:hover {
    color: #fff !important;
    text-decoration: underline;
  }
}

/* ===================== BLOQUES 3D ESTILO TRANSPARENTE ===================== */
.bloque-3d {
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bloque-3d:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.12);
}

/* ===================== SCROLLBAR AFINADO ===================== */
body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* =============== SCROLL UNIVERSAL AFINADO =============== */

/* Scroll para navegadores basados en WebKit (Chrome, Safari, Edge, Opera) */
body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25); /* Color suave y elegante */
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background 0.3s ease;
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
7}

body::-webkit-scrollbar-track {
  background: transparent;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Scroll suave universal */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* iOS scroll suave */
}

/* Fix para evitar desbordes horizontales en móviles y tablets */
html, body {
  overflow-x: hidden;
}

/* Previene saltos raros al hacer scroll en móviles y Safari */
body {
  overscroll-behavior: contain;
}

<style>
  @keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
  }

  .animate-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
  }
</style>
