@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #050508;
  --bg-soft: #090a10;
  --surface: #0d0f17;
  --surface-2: #12141d;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --white: #f4f6fb;
  --muted: #9aa0b4;
  --blue: #2f6bff;
  --red: #ff2a22;
  --gradient: linear-gradient(90deg, var(--blue), #ffffff 50%, var(--red));
  --radius: 18px;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: Manrope, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:hover {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--blue);
  color: #fff;
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
}

.text-red {
  color: var(--red);
}

/* Botones principales */
.btn-hero,
.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--gradient);
  color: #050508 !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 32px rgba(47, 107, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero:hover,
.btn-auth:hover {
  color: #050508 !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(255, 42, 34, 0.22);
}

.btn-hero.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Formularios oscuros */
.form-label {
  margin-bottom: 0.4rem;
  color: #cfd3df;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.form-control,
.form-select {
  min-height: 46px;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: #08090f;
  color: var(--white);
  font-size: 0.92rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--blue);
  background-color: #08090f;
  color: var(--white);
  box-shadow: 0 0 0 0.2rem rgba(47, 107, 255, 0.16);
}

.form-control::placeholder {
  color: #666c7f;
}

.form-select option {
  background: var(--surface);
  color: var(--white);
}

/* Alertas */
.alert {
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.alert-danger {
  border-color: #4d1616;
  background: #2a0d0d;
  color: #ffd6d4;
}

.alert-success {
  border-color: #12384f;
  background: #0b1f2e;
  color: #d5ecff;
}

/* Navegación móvil de Bootstrap sobre fondo oscuro */
.navbar-toggler {
  border-color: var(--line-strong);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.08);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* Paginación de CodeIgniter */
.pager {
  margin-top: 1.6rem;
}

.pager a,
.pager strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  margin-right: 0.35rem;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
}

.pager strong {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
