
:root {
  --cs-navy: #071628;
  --cs-navy-soft: #10233b;
  --cs-blue: #1f8cd8;
  --cs-blue-soft: #35a0ee;
  --cs-bg: #0b1624;
  --cs-card-bg: #111f33;
  --cs-border-soft: rgba(255, 255, 255, 0.06);
  --cs-text-main: #f4f7fb;
  --cs-text-muted: rgba(224, 231, 245, 0.8);
}

body.bg-body {
  background: radial-gradient(circle at top, #152949 0, #050913 55%, #020308 100%);
  color: var(--cs-text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Inputs y selects con alto contraste */
.form-control,
.form-select {
  background-color: rgba(5, 11, 22, 0.9);
  border-color: rgba(126, 193, 255, 0.35);
  color: var(--cs-text-main);
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(5, 11, 22, 0.95);
  border-color: var(--cs-blue-soft);
  color: var(--cs-text-main);
  box-shadow: 0 0 0 0.1rem rgba(53, 160, 238, 0.25);
}

.form-control::placeholder,
.form-select option {
  color: rgba(244, 247, 251, 0.8);
}

/* Texto global claro */
body,
p,
h1, h2, h3, h4, h5, h6,
label,
.form-label,
.navbar-nav .nav-link,
.navbar-text,
small,
.text-muted {
  color: var(--cs-text-main) !important;
}

.text-muted {
  color: var(--cs-text-muted) !important;
}

.pt-navbar {
  padding-top: 4.5rem;
}

.main-navbar {
  background: linear-gradient(90deg, var(--cs-navy) 0%, #0f2b4a 35%, #163963 100%);
}

.navbar-brand {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.navbar-nav .nav-link {
  opacity: 0.9;
}
.navbar-nav .nav-link:hover {
  opacity: 1;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cs-blue), var(--cs-blue-soft));
  color: #0a1a2d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-transform: uppercase;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.extra-small {
  font-size: 0.75rem;
}

.brand-logo-circle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff 0, #8cd5ff 35%, #1a6eb3 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #03101e;
}

.btn-primary-brand {
  background: linear-gradient(135deg, var(--cs-blue) 0%, var(--cs-blue-soft) 100%);
  border: none;
  color: #fff;
  box-shadow: 0 10px 25px rgba(7, 108, 191, 0.45);
}
.btn-primary-brand:hover {
  filter: brightness(1.05);
  color: #fff;
}

.bg-brand-soft {
  background: rgba(53, 160, 238, 0.18);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

/* Inputs en tarjetas oscuras */
.auth-card input,
.auth-card input:focus,
.auth-card input.form-control,
.auth-card input.form-control:focus {
  background-color: rgba(1, 5, 15, 0.9);
  border-color: rgba(160, 195, 255, 0.5);
  color: var(--cs-text-main);
}

.auth-card .form-label {
  color: var(--cs-text-main);
}

/* Hero carousel */
.hero-carousel {
  height: 80vh;
  min-height: 540px;
}
.hero-slide {
  height: 100%;
  background-position: center;
  background-size: cover;
  position: relative;
}
.hero-slide-1 {
  background-image: radial-gradient(circle at top left, #2f74c8 0, #071628 55%, #020308 100%);
}
.hero-slide-2 {
  background-image: radial-gradient(circle at top, #1f8cd8 0, #08192b 55%, #020308 100%);
}
.hero-slide-3 {
  background-image: radial-gradient(circle at top right, #35a0ee 0, #061322 50%, #010308 100%);
}

.hero-overlay {
  width: 100%;
  height: 100%;
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.15) 0, rgba(0, 0, 0, 0.75) 65%);
}

.text-light-70 {
  color: rgba(255, 255, 255, 0.7);
}

/* Pills */
.pill {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}
.pill-soft {
  background: rgba(7, 108, 191, 0.15);
  border: 1px solid rgba(95, 183, 255, 0.4);
  color: #e2f1ff;
}

/* Sections */
.section-gradient-top {
  background: linear-gradient(to bottom, rgba(11, 28, 53, 0.95), rgba(7, 16, 32, 0.95));
}
.section-gradient-bottom {
  background: linear-gradient(to bottom, rgba(7, 16, 32, 0.96), rgba(3, 7, 15, 0.98));
}

.feature-card {
  background: rgba(5, 11, 22, 0.95);
  border-radius: 1rem;
  border: 1px solid var(--cs-border-soft);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}
.feature-card .card-title {
  color: #e8f3ff;
}
.feature-card .card-text {
  color: rgba(235, 243, 255, 0.85);
}

.list-steps {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.list-steps li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 2rem;
  color: rgba(240, 244, 252, 0.9);
}
.list-steps li::before {
  content: "✓";
  position: absolute;
  left: 0.4rem;
  top: 0.1rem;
  color: var(--cs-blue-soft);
}

/* Dashboard & cards */
.stat-card {
  border-radius: 1rem;
  background: radial-gradient(circle at top left, rgba(53, 160, 238, 0.15), rgba(5, 11, 22, 0.98));
  border: 1px solid rgba(126, 193, 255, 0.4);
  color: #f5f9ff;
}

.card {
  border-radius: 1rem;
  background-color: rgba(7, 16, 32, 0.95);
  color: var(--cs-text-main);
}

.auth-card {
  background: rgba(5, 11, 22, 0.98);
  border: 1px solid rgba(126, 193, 255, 0.4);
}

/* Tables */
.table {
  color: var(--cs-text-main);
}
.table thead th {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.table tbody tr {
  border-color: rgba(255, 255, 255, 0.04);
}
.table-hover tbody tr:hover {
  background-color: rgba(31, 140, 216, 0.12);
}

.table td,
.table th {
  white-space: normal;
}

/* Footer */
.main-footer {
  background: rgba(3, 7, 15, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  background: linear-gradient(90deg, #071628 0%, #0f2b4a 50%, #163963 100%);
  color: #f4f7fb;
  padding: 0.95rem 1.4rem;
}
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-text {
  max-width: 680px;
}
.cookie-actions {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 80vh;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}


.form-text {
    color: white;
}