/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Título principal */
body > h1 {
  margin: 30px 0 20px;
  font-size: 2rem;
  text-align: center;
  color: #38bdf8;
  letter-spacing: 1px;
}

/* Menú */
.menu {
  width: 100%;
  max-width: 600px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px; /* separación entre cards */
}

/* Tarjeta base */
.card {
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  background: #1e293b; /* color por defecto */
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* Overlay para mejorar contraste si hay imagen */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: inherit;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

/* Título dentro de la tarjeta */
.card h1 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #facc15;
}

/* Lista */
.card ul {
  list-style: none;
}

.card li {
  margin: 12px 0;
}

/* Enlaces estilo botón */
.card a {
  display: inline-block;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  color: #f1f5f9;
  background: #0ea5e9;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.card a:hover {
  background: #0284c7;
  transform: scale(1.03);
}

/* Variantes de color */
.bg-red {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}
.bg-green {
  background: linear-gradient(135deg, #16a34a, #15803d);
}
.bg-blue {
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

/* AxelGI*/
.bg-axl {
  background-color: #333;
  background-image: url("https://avatars.githubusercontent.com/u/31020300?v=4");
}
.bg-axl h2 {
  font-size: xx-large;
  color: black;
}

.bg-axl a {
  background-color: yellowgreen;
}

.bg-axl a:hover {
  background-color: black;
}

/* Responsivo */
@media (max-width: 600px) {
  body > h1 {
    font-size: 1.5rem;
  }
  .card {
    padding: 20px;
  }
  .card h1 {
    font-size: 1.3rem;
  }
  .card a {
    font-size: 0.95rem;
    padding: 10px;
  }
}
