/* General */
body {
  margin: 0;
  background: #000;
  color: #0f0;
  font-family: 'Courier New', monospace;
  overflow-x: hidden;
}

/* Pantalla de carga */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #000, #0f0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
}

#loader h1 {
  font-size: 4em;
  letter-spacing: 4px;
  text-shadow: 0 0 20px #0f0;
  animation: flicker 1.5s infinite;
}

.glow {
  border: 2px solid #0f0;
  padding: 10px 20px;
  margin-top: 40px;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: pulse 2s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 5px #0f0; }
  50% { box-shadow: 0 0 20px #0f0; }
  100% { box-shadow: 0 0 5px #0f0; }
}

/* Dashboard */
#dashboard {
  display: none;
  padding: 40px;
}

header {
  border-bottom: 1px solid #0f0;
  padding-bottom: 20px;
}

/* Contenedor para alinear el título y el menú */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 2.5em;
  margin: 0;
  text-shadow: 0 0 10px #0f0;
}

header p {
  margin: 5px 0 0;
  font-size: 1em;
  opacity: 0.8;
}

/* Ícono de verificado */
.verificado-icon {
  vertical-align: middle;
  margin-left: 6px;
  width: 16px;
  height: 16px;
  fill: #0f0;
}

/* Menú de tres puntos */
#menu-toggle {
  color: #0f0;
  padding: 10px;
  transition: transform 0.2s;
  cursor: pointer;
  font-size: 2em;
}

#menu-toggle:hover {
  transform: scale(1.2);
}

#menu-dropdown {
  text-align: center;
  margin-top: 10px;
}

#menu-dropdown button {
  background: #111;
  border: 1px solid #0f0;
  color: #0f0;
  padding: 8px 12px;
  margin: 5px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  transition: background 0.3s, color 0.3s;
}

#menu-dropdown button:hover {
  background: #0f0;
  color: #000;
}

/* Buscador */
#search {
  margin: 30px auto;
  max-width: 400px;
  text-align: center;
}

#search input {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  background: #111;
  border: 1px solid #0f0;
  color: #0f0;
  outline: none;
}

/* Tarjetas de apps */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.app-card {
  background: #111;
  border: 1px solid #0f0;
  padding: 20px;
  box-shadow: 0 0 10px #0f0;
  text-align: center;
  text-decoration: none;
  color: #0f0;
  transition: transform 0.2s;
}

.app-card:hover {
  transform: scale(1.03);
}

.app-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
}

.app-card h2 {
  margin-top: 0;
}

.app-card p {
  font-size: 0.9em;
  opacity: 0.8;
}

/* Etiquetas */
.tags {
  margin-top: 10px;
  font-size: 0.8em;
  opacity: 0.7;
}

.tag {
  display: inline-block;
  margin: 2px 4px;
  padding: 2px 6px;
  border: 1px solid #0f0;
  border-radius: 4px;
  background: #000;
  color: #0f0;
  font-family: 'Courier New', monospace;
}

/* Página individual de app */
.app-page {
  max-width: 600px;
  margin: 60px auto;
  text-align: center;
  padding: 20px;
}

.app-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.download-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #0f0;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
}

.back-link {
  display: block;
  margin-top: 30px;
  color: #0f0;
  text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 600px) {
  header h1 {
    font-size: 1.8em;
  }

  .app-card img {
    width: 48px;
    height: 48px;
  }

  .app-icon {
    width: 64px;
    height: 64px;
  }
}

/* --- Estilos para la Página de Contacto --- */

.contact-links {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  background: #111;
  border: 1px solid #0f0;
  padding: 15px;
  display: flex;
  align-items: center;
  font-size: 1.1em;
}

.contact-item a {
  color: #0f0;
  text-decoration: none;
  font-weight: bold;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-icon {
  font-size: 1.5em;
  margin-right: 15px;
}

.copy-btn {
  background: #111;
  border: 1px solid #0f0;
  color: #0f0;
  padding: 5px 10px;
  margin-left: auto;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  transition: background 0.3s, color 0.3s;
}

.copy-btn:hover {
  background: #0f0;
  color: #000;
}

/* --- Estilos para la Página de Error 404 --- */

.error-gif {
  max-width: 250px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px #0f0);
}

.blinking-cursor {
  font-weight: bold;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from, to { color: transparent; }
  50% { color: #0f0; }
}
