:root {
  --azul: #1e90ff;
  --fondo: #0a0f1c;
  --texto: #f0f0f0;
  --gris: #c0c0c0;
  --card-fondo: #111;
  --sombra: rgba(0, 0, 0, 0.4);
  --fuente: 'Poppins', sans-serif;
}

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

body {
  background-color: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente);
  padding: 2rem;
}

/* Hero */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.hero-content .logo-img img {
  width: 80px;
  display: none;
}

/* Nav */
.nav {
  background-color: #10172a;
  position: relative;
}

nav button img {
  border-radius: 8px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.menu-toggle img {
  width: 36px;
  height: 36px;
}
.nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1rem;
  padding: 1rem;
}
.nav a {
  color: var(--texto);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.nav a:hover {
  color: var(--azul);
}

/* Sections */
.slides-section {
  max-width: 1200px;
  margin: 4.5rem auto;
  text-align: center;
}

.titulo {
  font-size: 2rem;
  color: var(--azul);
  margin-bottom: 2rem;
}

/* Slide cards grid */
.slides-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.slide-card {
  background-color: var(--card-fondo);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px var(--sombra);
  transition: transform 0.3s ease;
}
.slide-card:hover {
  transform: translateY(-5px);
}
.slide-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.slide-content {
  padding: 1rem;
}
.slide-content p {
  font-size: 0.95rem;
  color: var(--gris);
  margin-bottom: 1rem;
  min-height: 3rem;
}
.slide-content a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--azul);
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.slide-content a:hover {
  background-color: #0077cc;
}

/* Botones finales */
.botones-finales {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.boton {
  background-color: var(--azul);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.boton:hover {
  background-color: #0077cc;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #0d1224;
  color: var(--gris);
  margin-top: 3rem;
  font-size: 0.9rem;
}
.footer-links {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.footer-links a {
  color: var(--azul);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-links img.icono-red {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav ul {
    display: none;
    flex-direction: column;
    background-color: #10172a;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 999;
  }
  .nav ul.show {
    display: flex;
  }
  .nav ul li {
    padding: 0.5rem 0;
    text-align: center;
  }
}
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

  /* Estilos para que el logo en pantallas mayores a 768px se vea */
  @media (min-width: 769px) {
    .hero-content .logo-img img {
      display: block;
    }
  }