/* -------------------- Fuentes y Body -------------------- */
body {
  font-family: 'Orbitron', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9fb;
  color: #222;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -------------------- Hero Section -------------------- */
.hero {
  background-color: #2c3e50;
  color: white;
  min-height: 80vh;
  padding: 3rem 1rem;
  font-family: 'Orbitron', sans-serif;
  margin: 0;
}

.hero h1 {
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.hero p.lead {
  font-size: 1.4rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.btn-discord {
  background-color: #ffffff;
  border: 2px solid #5865F2;
  color: #5865F2;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(88, 101, 242, 0.3);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

.btn-discord:hover,
.btn-discord:focus {
  background-color: #323538;
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(108, 117, 125, 0.7);
  outline: none;
}

/* -------------------- Contenedor y Secciones -------------------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
}

h2 {
  font-weight: 700;
  color: #333;
}

.row.g-4 {
  margin-top: 1.5rem;
}

.icon-circle {
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
  line-height: 48px;
  border-radius: 50%;
  color: white;
  text-align: center;
  flex-shrink: 0;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* -------------------- Colores para íconos -------------------- */
.bg-purple { background-color: #6f42c1; }
.bg-blue { background-color: #007bff; }
.bg-green { background-color: #28a745; }
.bg-orange { background-color: #fd7e14; }
.bg-red { background-color: #dc3545; }
.bg-pink { background-color: #e83e8c; }
.bg-teal { background-color: #20c997; }
.bg-yellow { background-color: #ffc107; }
.bg-cyan { background-color: #17a2b8; }

/* -------------------- Texto de características -------------------- */
.d-flex.align-items-start > div h5 {
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #222;
}

.d-flex.align-items-start > div p {
  color: #555;
  margin: 0;
  font-size: 0.95rem;
}

/* -------------------- Accordion -------------------- */
.accordion-button {
  background-color: #f1f3f5;
  font-weight: 600;
  color: #222;
  border-radius: 0.5rem;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.05);
  transition: background-color 0.25s ease;
}

.accordion-button:not(.collapsed) {
  background-color: #dbeafe;
  color: #1d4ed8;
  box-shadow: inset 0 0 8px rgba(29, 78, 216, 0.3);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.5);
  outline: none;
}

.accordion-body {
  color: #444;
  font-size: 1rem;
  background-color: #fafafa;
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 1rem 1.5rem;
}

/* -------------------- Footer -------------------- */
footer {
  background-color: #f8f9fa;
  color: #666;
  font-size: 0.9rem;
  padding: 2rem 1rem;
  text-align: center;
}

footer a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #0056b3;
  text-decoration: underline;
}

footer .btn-warning {
  background-color: #f0ad4e;
  border: none;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(240, 173, 78, 0.6);
  transition: background-color 0.3s ease;
}

footer .btn-warning:hover,
footer .btn-warning:focus {
  background-color: #ec971f;
  box-shadow: 0 4px 12px rgba(236, 151, 31, 0.8);
  outline: none;
}

footer .footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

footer .footer-links a {
  font-weight: 600;
  color: #007bff;
}

footer .footer-links a:hover {
  color: #0056b3;
}

/* -------------------- Idiomas -------------------- */
#controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 10px;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lang-btn {
  background: linear-gradient(145deg, #2c3e50, #1a252f);
  color: #f0f0f0;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  outline: none;
}

.lang-btn:hover {
  background: linear-gradient(145deg, #34495e, #2c3e50);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: linear-gradient(145deg, #e67e22, #d35400);
  color: #fff;
  box-shadow: 0 6px 15px rgba(211, 84, 0, 0.6);
  transform: translateY(0);
}

.lang-btn.active:hover {
  background: linear-gradient(145deg, #d35400, #c0392b);
}

.sticky-lang-bar {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #2c3e50;
  padding: 0.5rem 0;
  border: none;
  box-shadow: none;
}

/* -------------------- Comandos Mejorados -------------------- */
.commands {
  max-width: 1140px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.commands h2.text-center {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #222;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.command-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e0e4e8;
}

.command-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cmd-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f3f5;
  color: #2c3e50;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.command-card.premium .cmd-icon {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #fff;
}

.cmd-info {
  flex: 1;
}

.cmd-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.command-card.premium .cmd-name {
  color: #155724;
}

.cmd-desc {
  font-size: 0.95rem;       /* tamaño cómodo de lectura */
  color: #444;              /* color un poco más oscuro */
  line-height: 1.6;         /* aumenta separación vertical */
  letter-spacing: 0.5px;    /* espacio entre letras */
  margin-top: 0.4rem;       /* separación del nombre del comando */
  word-wrap: break-word;    /* rompe palabras largas si hace falta */
  white-space: normal;      /* permite que el texto haga wrap */
}

/* -------------------- Botón Volver al Inicio -------------------- */
.btn-back-home {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.btn-back-home:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.btn-back-home:active {
  transform: translateY(0);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p.lead { font-size: 1.1rem; }
  .icon-circle { width: 40px; height: 40px; font-size: 1.4rem; line-height: 40px; }
  .command-card { flex-direction: column; align-items: flex-start; }
  .cmd-icon { margin-bottom: 0.5rem; }
}

@media (max-width: 600px) {
  #controls { top: 10px; right: 10px; flex-direction: column; gap: 8px; }
  .lang-btn { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 576px) {
  section.container.py-5 h2 { font-size: 1.75rem; }
  .accordion-button { font-size: 0.95rem; }
  .accordion-body { font-size: 0.9rem; }
}

.badge-new {
  display: inline-block;
  background-color: #28a745; /* verde */
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1.2;
}

/* Comando Premium con verde transparente */
.command-card.premium {
  background-color: rgba(40, 167, 69, 0.1); /* verde transparente */
  border: 2px solid rgba(40, 167, 69, 0.6); /* borde verde más visible */
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2); /* sombra verde suave */
  color: #155724;
}

.command-card.premium .cmd-icon {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.command-card.premium .cmd-name {
  color: #155724;
}
