/* ================== GLOBAL ================== */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* evita scroll lateral fantasma */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* asegura que el footer esté al fondo */
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  text-align: center;
}

/* Contenedor principal que empuja el footer */
.container {
  flex: 1;
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
  padding-top: 40px;
  text-align: center;
  background: none;
}

/* ================== BOTÓN VOLVER ================== */
#backBtn {
  background-color: #00bfff;
  color: white;
  border: none;
  padding: 8px 12px;
  margin-bottom: 15px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}

#backBtn:hover {
  background-color: #009acd;
}

/* ================== NAV ================== */
nav {
  background-color: #06141b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-right: 20px;
}

.brand span.yellow { color: #f9a825; }
.brand span.blue { color: #00bfff; }
.brand span.white { color: #ffffff; }

/* Links de contacto */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #00bfff;
}

/* Íconos redes a la izquierda */
.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 20px;
}

.nav-icon {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.2s;
}

.nav-icon:hover {
  transform: scale(1.2);
}

/* ================== TÍTULOS ================== */
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px #000;
}

/* ================== MODOS / CARDS ================== */
.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  background: none;
}

.mode-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.mode-card:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
}

.mode-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.mode-card:hover img {
  transform: scale(1.1);
}

/* ================== QUIZ ================== */
#quiz {
  display: none;
  margin-top: 20px;
}

.question {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.options button {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 8px;
  background: #1e90ff;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.options button:hover {
  background: #4682b4;
}

a {
  text-decoration: none;
  color: inherit;
}

.small-text {
  font-size: 0.7em;
  display: block;
  margin-top: 4px;
  font-weight: 400;
  color: #00bfff;
}

/* ================== FOOTER ================== */
footer {
  background-color: #06141b;
  padding: 10px 10%;
  color: #fff;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
  margin-top: auto; /* asegura que quede al fondo */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.footer-left, .footer-center, .footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-left a {
  color: #00bfff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-left a:hover {
  color: #f9a825;
}

.footer-right .footer-icon {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.2s;
}

.footer-right .footer-icon:hover {
  transform: scale(1.2);
}
    /* ===== Tabs ===== */
    .tabs {
      display: flex;
      justify-content: center;
      margin: 20px 0;
      gap: 20px;
    }
    .tab-btn {
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #06141b;
    border: 1px solid #00bfff;
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
      }
    .tab-btn.active {
    background-color: #00bfff;
    color: #06141b;
    }
    .section {
      display: none;
    }
    .section.active {
      display: block;
    }
    /* Scrollbar para Chrome, Edge, Opera */
body::-webkit-scrollbar {
  width: 12px;           /* ancho del scrollbar vertical */
  height: 12px;          /* alto del scrollbar horizontal */
}

body::-webkit-scrollbar-track {
  background: #020202;      /* color de fondo del track */
  border-radius: 6px;    /* bordes redondeados del track */
}

body::-webkit-scrollbar-thumb {
    background:#2c5364;
  border-radius: 6px;        /* bordes redondeados de la barra */
  border: 1px solid #2c5364;    /* espacio entre barra y track */
}

body::-webkit-scrollbar-thumb:hover {
  background-color: #2c5364b0; /* color al pasar el mouse */
}
