@import url('https://fonts.cdnfonts.com/css/milky-nice');

body {
    font-family: 'Milky Nice', Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6a1b9a, #283593);
    margin: 0;
    padding: 0;
    text-align: center;
    color: #fff;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #4a148c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

#titulo-seccion {
    font-weight: 400;
    font-size: 1.6rem;
}

/* Hamburger */
.hamburger {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 1.4rem;
    display: block;
    margin-right: 10px;
}
.hamburger .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
}

/* Navbar oculto por defecto */
#nav-bar {
    display: none;
    flex-direction: column;
    gap: 12px;
    background: rgba(74,20,140,0.95);
    position: absolute;
    top: 60px;
    right: 10px;
    min-width: 180px;
    padding: 12px;
    border-radius: 8px;
    z-index: 999;
}
.header.nav-open #nav-bar {
    display: flex;
}

/* Links del menú */
#nav-bar a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    font-weight: 400;
    border-radius: 6px;
    transition: background 0.2s;
}
#nav-bar a:hover { background: rgba(255,255,255,0.2); }

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #1a237e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
}

/* Contenido */
.contenido {
    padding-top: 80px;
    padding-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Contenedor scroll horizontal */
#opciones-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 10px; /* margen para que no se salgan los contenedores */
    box-sizing: border-box;
}

/* Flex fila de tarjetas */
#opciones {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    scroll-behavior: smooth;
}

/* Scrollbar visible */
#opciones-container::-webkit-scrollbar {
    height: 8px;
}
#opciones-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
#opciones-container::-webkit-scrollbar-thumb {
    background: #42a5f5;
    border-radius: 4px;
}
#opciones-container {
    scrollbar-width: thin;
    scrollbar-color: #42a5f5 rgba(255,255,255,0.1);
}

/* Tarjetas */
.contenedor-bonito {
    flex: 0 0 auto;
    width: 220px;
    min-width: 180px;
    max-width: 250px;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(145deg, #7b1fa2, #512da8);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Hover */
.contenedor-bonito:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .contenedor-bonito {
        width: 200px;
        min-width: 180px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .contenedor-bonito {
        width: 160px;
        min-width: 160px;
        max-width: 180px;
    }
}

/* Botones dentro de las tarjetas */
.contenedor-bonito a.boton {
    padding: 8px 16px;         /* tamaño proporcionado */
    border-radius: 10px;
    text-decoration: none;
    background: #29b6f6;
    color: #fff;
    font-weight: 400;
    font-family: 'Milky Nice', sans-serif;
    transition: all 0.2s;
    display: inline-block;     /* no ocupa todo el ancho */
    text-align: center;
    max-width: 100%;           /* nunca sobrepasa la tarjeta */
    align-self: center;        /* centra dentro de la tarjeta */
}

.contenedor-bonito a.boton:hover {
    background: #0288d1;
}

/* Ajuste responsive para mobile */
@media (max-width: 768px) {
    .contenedor-bonito a.boton {
        padding: 7px 14px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .contenedor-bonito a.boton {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Botón de acceso al área beta */
#beta-btn {
    position: absolute;
    right: 15px;
    bottom: 10px;
    background: #00c853;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Milky Nice', sans-serif;
    transition: background 0.2s;
}
#beta-btn:hover {
    background: #00e676;
}

/* Tarjetas Beta */
.beta-card {
    background: linear-gradient(145deg, #009688, #00695c);
}
.beta-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

/* ============================= */
/* 🌌 Tema alternativo: Modo Beta */
/* ============================= */

body.modo-beta {
  background: radial-gradient(circle at center, #1e1e2f 0%, #11111b 100%) !important;
  color: #ffffff !important;
  font-family: 'Milky Nice', sans-serif;
  transition: background 0.6s ease, color 0.6s ease;
}

/* Header y Footer en modo beta */
body.modo-beta .header {
  background-color: rgba(40, 44, 52, 0.9) !important;
  box-shadow: 0 2px 15px rgba(0, 255, 180, 0.2);
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

body.modo-beta #titulo-seccion {
  color: #8be9fd !important;
  text-shadow: 0 0 10px rgba(139, 233, 253, 0.6);
}

body.modo-beta .footer {
  background-color: #12121b !important;
  color: #8be9fd;
  box-shadow: 0 -2px 10px rgba(0, 255, 180, 0.2);
}

/* Botón Beta */
#beta-btn {
  position: absolute;
  right: 15px;
  bottom: 10px;
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: 'Milky Nice', sans-serif;
  transition: all 0.25s ease;
}
#beta-btn:hover {
  background: linear-gradient(135deg, #50fa7b, #00ff99);
  transform: scale(1.05);
}

/* Tarjetas beta */
body.modo-beta .beta-card {
  background: linear-gradient(145deg, #282a36, #1e1e2f);
  border: 1px solid #50fa7b;
  box-shadow: 0 0 15px rgba(80, 250, 123, 0.3);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
body.modo-beta .beta-card:hover {
  box-shadow: 0 0 25px rgba(139, 233, 253, 0.5);
  transform: translateY(-4px);
}

body.modo-beta .beta-card h2 {
  color: #8be9fd;
}
body.modo-beta .beta-card p {
  color: #cccccc;
}
body.modo-beta .beta-card a.boton {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  font-weight: bold;
  box-shadow: 0 0 8px rgba(101, 217, 255, 0.3);
}
body.modo-beta .beta-card a.boton:hover {
  background: linear-gradient(135deg, #833ab4, #fd1d1d);
}

/* Scrollbar modo beta */
body.modo-beta #opciones-container::-webkit-scrollbar-thumb {
  background: #6a11cb;
}
body.modo-beta #opciones-container::-webkit-scrollbar-track {
  background: #2c2f3a;
}

/* Suavizado general */
body.modo-beta * {
  transition: all 0.4s ease;
}
/* ========================= */
/* 🌐 Contenedores modo Beta */
/* ========================= */

body.modo-beta .contenedor,
body.modo-beta .opciones,
body.modo-beta .seccion,
body.modo-beta .card,
body.modo-beta .opcion,
body.modo-beta #opciones-container {
  background: linear-gradient(145deg, #222336, #1b1c2a);
  border: 1px solid rgba(80, 250, 123, 0.4);
  box-shadow: 0 0 20px rgba(80, 250, 123, 0.25);
  border-radius: 16px;
  color: #eaeaea;
  transition: all 0.5s ease;
}

/* Efecto hover suave en los contenedores */
body.modo-beta .contenedor:hover,
body.modo-beta .card:hover,
body.modo-beta .opcion:hover {
  box-shadow: 0 0 25px rgba(139, 233, 253, 0.4);
  transform: translateY(-3px);
}
body.modo-beta .contenedor-bonito {
  background: linear-gradient(160deg, #2a2b3f 0%, #1b1b2b 100%);
  border: 1px solid rgba(80, 250, 123, 0.2);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.6),
    0 0 10px rgba(80, 250, 123, 0.15);
  color: #f8f8f8;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.5s ease;
}

body.modo-beta .contenedor-bonito:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(80, 250, 123, 0.3);
  background: linear-gradient(160deg, #33354a 0%, #1f2032 100%);
}
/* Si tienen títulos o textos */
body.modo-beta h1,
body.modo-beta h2,
body.modo-beta h3 {
  color: #8be9fd;
  text-shadow: 0 0 10px rgba(139, 233, 253, 0.6);
}

body.modo-beta p {
  color: #cccccc;
}

/* Botones internos de los contenedores */
body.modo-beta .boton,
body.modo-beta button {
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: 'Milky Nice', sans-serif;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(80, 250, 123, 0.3);
  transition: all 0.3s ease;
}
body.modo-beta .boton:hover,
body.modo-beta button:hover {
  background: linear-gradient(135deg, #50fa7b, #00ff99);
  box-shadow: 0 0 20px rgba(139, 233, 253, 0.5);
  transform: scale(1.05);
}

/* Scrollbar */
body.modo-beta ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #50fa7b, #00e676);
}
body.modo-beta ::-webkit-scrollbar-track {
  background: #1b1c2a;
}

/* Input, select, etc. */
body.modo-beta input,
body.modo-beta select,
body.modo-beta textarea {
  background: #222336;
  border: 1px solid #50fa7b;
  color: #fff;
  border-radius: 8px;
  transition: all 0.3s ease;
}
body.modo-beta input:focus,
body.modo-beta select:focus,
body.modo-beta textarea:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(139, 233, 253, 0.6);
}
