/* ==========================================
   ESTILOS BASE Y LIENZO MATRIX
   ========================================== */
body {
  margin: 0;
  padding: 0;
  background-color: #020617; /* Fondo oscuro profundo */
  color: #f1f5f9;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Este es el lienzo donde los números caerán infinitamente */
#matrixCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Se mantiene siempre detrás de tus textos y botones */
  pointer-events: none; /* No interrumpe los clicks en la pantalla */
}

/* ==========================================
   CONTENEDORES E INTERFACES (100% RESPONSIVOS)
   ========================================== */
.nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: rgba(15, 23, 42, 0.6); /* Cristal oscuro */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: auto;
  min-height: 70px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 10px;
}

.container, .container2, .containerv {
  width: 92%;
  max-width: 1200px;
  margin: 25px auto;
  padding: 30px 20px;
  display: flex; 
  flex-wrap: wrap; 
  justify-content: space-around;
  align-items: center;
  box-sizing: border-box;
  border-radius: 20px;
  gap: 20px;
}

.container {
  color: #f8fafc;
  background-color: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.container2 {
  background-image: linear-gradient(135deg, rgba(0, 198, 255, 0.85) 0%, rgba(0, 82, 212, 0.9) 100%);
  border: solid 1px rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 82, 212, 0.3);
  height: auto;
}

.containerv {
  background-color: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.containervd {
  background-color: transparent;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

/* ==========================================
   BOTONES ESTILO PÍLDORA PREMIUM
   ========================================== */
.bottone-registrazione, .bottone-registrazione2 {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-appearance: none;
  appearance: none;
  margin: 10px;
  box-sizing: border-box;
}

.bottone-registrazione {
  color: #ffffff;
  background-image: linear-gradient(135deg, #00c6ff, #0052d4);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 198, 255, 0.4);
}

.bottone-registrazione:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 198, 255, 0.6);
  filter: brightness(1.1);
}

.bottone-registrazione2 {
  color: #00c6ff;
  background-color: transparent;
  border: 2px solid #00c6ff;
}

.bottone-registrazione2:hover {
  background-color: rgba(0, 198, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 198, 255, 0.2);
}

.bottone-registrazione:active, .bottone-registrazione2:active {
  transform: translateY(0);
}

/* Links y botones secundarios */
.a, .a2, .s, .ae, .av {
  text-decoration: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 10px;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.a {
  background-color: #10b981; /* Verde neón/esmeralda */
  color: white;
}

.a:hover {
  background-color: #059669;
  transform: scale(1.02);
}

.a2 {
  border: solid 1px rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.a2:hover {
  background: #ffffff;
  color: #020617;
}

.s {
  background: #0052d4;
  color: #ffffff;
}

.s:hover {
  background: #10b981;
}

.ae {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

.ae:hover {
  background: #ef4444;
  color: #ffffff;
}

.av {
  background-image: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  border: 1px solid rgba(255,255,255,0.05);
}

.link2 {
  display: block;
  background-color: rgba(255, 255, 255, 0.02);
  border: solid 1px rgba(255, 255, 255, 0.08); 
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  height: auto;
  padding: 20px;
  margin: 30px auto;
  color: #00c6ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.link2:hover {
  background-color: #0052d4;
  color: #ffffff;
  border-color: #00c6ff;
  box-shadow: 0 10px 25px rgba(0, 82, 212, 0.4);
}

/* ==========================================
   TIENDAS Y MULTIMEDIA RESPONSIVA
   ========================================== */
.store {
  width: 100%;
  max-width: 280px;
  height: auto;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.store h2 {
  font-size: 15px;
  margin: 0 0 10px 0;
  color: #1e293b;
}

.imgStore {
  width: 100%;
  max-width: 200px;
  height: auto;
  background-color: #000000;
  border-radius: 8px;
  border: solid 2px #e2e8f0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.imgStore:hover {
  border-color: #00c6ff;
  transform: scale(1.02);
}

.apple, .android {
  text-decoration: none;
  display: inline-block;
}

.img {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 16px;
  object-fit: cover;
}

.im2 {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
}

.im3 {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 20px;
  background-color: #0052d4;
  border: solid 2px rgba(255, 255, 255, 0.3);
}

.imm {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 16px;
}

.titolo {
  color: #ffffff;
  margin: 15px;
  font-weight: 700;
}

.span {
  color: #10b981;
}

.rosso {
  color: #ef4444;
  font-weight: bold;
}

/* ==========================================
   MEDIA QUERIES (TABLETS Y MÓVILES)
   ========================================== */
@media all and (max-width: 768px) {
  .container, .container2, .containerv {
    width: 95%;
    padding: 20px 15px;
  }
  .store, .im2, .im3 {
    max-width: 230px;
  }
}

@media all and (max-width: 480px) { 
  .nav, .navi {
    flex-direction: column;
    height: auto;
    padding: 15px;
  }

  .imgi {
    display: none;
  }

  .container, .container2, .containerv {
    flex-direction: column;
    width: 95%;
  }

  .containervd {
    flex-direction: column;
    align-items: center;
  }

  .store {
    max-width: 280px;
    margin: 0 auto !important;
  }

  .apple, .android {
    width: 100%;
  }

  .bottone-registrazione, .bottone-registrazione2 {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 10px auto;
  }

  .ae, .s, .link2 {
    width: 100%;
  }

  .im2, .im3 {
    max-width: 200px;
    margin: 10px auto;
  }
}