/* --------- RESET & BASE --------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
  background-color: #fff;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
::selection {
  background: #0b6efd;
  color: white;
}
a {
  text-decoration: none;
  color: inherit;
}

/* --------- HEADER --------- */
header {
  background-color: white;
  border-bottom: 1px solid #ddd;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0b6efd;
  text-align: center;
  flex: 1;
}

/* --------- MENU HAMBURGUESA --------- */
.menu-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 30px;
  cursor: pointer;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menu-btn span {
  height: 4px;
  background-color: #180501;
  border-radius: 2px;
  transition: 0.4s;
}
.menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --------- NAV LATERAL --------- */
nav {
  position: fixed;
  top: 0;
  right: -240px;
  width: 240px;
  height: 100vh;
  background-color: #0b6efd;
  color: white;
  display: flex;
  flex-direction: column;
  padding-top: 70px;
  transition: right 0.3s ease-in-out;
  z-index: 150;
}
nav.open {
  right: 0;
}
nav a {
  padding: 18px 25px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-weight: bold;
  transition: background 0.3s;
}
nav a:hover {
  background: rgba(255,255,255,0.2);
}

/* --------- MAIN --------- */
main {
  max-width: 960px;
  margin: 20px auto 40px;
  padding: 0 15px;
  flex: 1;
}

/* --------- IMAGEN ANIME --------- */
.anime-uli {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}
.anime-uli img {
  max-width: 300px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --------- GRID DE APPS --------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.app-card {
  background-color: white;
  border-radius: 16px;
  border: 1px solid #ddd;
  box-shadow: 0 5px 15px rgba(11,110,253,0.1);
  overflow: hidden;
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(11,110,253,0.2);
}
.app-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 12px;
}
.app-card h3 {
  font-size: 1.3rem;
  color: #0b6efd;
  margin-bottom: 8px;
}
.app-card p {
  font-size: 0.95rem;
  color: #333;
}
.app-card.disabled {
  pointer-events: none;
  opacity: 0.6;
}
#countdown {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0b6efd;
  margin-top: 8px;
}

/* --------- FOOTER --------- */
footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 20px;
  border-top: 1px solid #ddd;
  background-color: #f9f9f9;
  color: #444;
}

/* --------- ANIMACIONES --------- */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------- RESPONSIVE --------- */
@media screen and (max-width: 480px) {
  .anime-uli img {
    max-width: 90%;
  }
}