:root {
  --brand: #377dff;
  --brand-dark: #2d6ae3;
}

html { height: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
body > * { flex-shrink: 0; }

.bg-gradient-primary {
  background: linear-gradient(135deg, #377dff 0%, #6f42c1 100%);
}

.hero {
  background: linear-gradient(160deg, #0b1437 0%, #1e2a5a 60%, #377dff 140%);
  color: #fff;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}
.hero .rotating { color: #7cc0ff; border-bottom: 3px solid #7cc0ff; }

/* Ilustración del hero */
.hero-art {
  max-width: 560px;
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-art svg { width: 100%; height: auto; display: block; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art { animation: none; }
}

.lang-switch { opacity: .6; font-weight: 600; }
.lang-switch.active { opacity: 1; text-decoration: underline; }

.benefit-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(55,125,255,.12);
  color: var(--brand);
  font-size: 1.5rem;
}

.step-number {
  width: 44px; height: 44px; line-height: 44px;
  border-radius: 50%; text-align: center;
  background: var(--brand); color: #fff; font-weight: 700;
}

.plan-card { transition: transform .15s ease, box-shadow .15s ease; }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.12) !important; }
.plan-card.featured { border: 2px solid var(--brand); }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--brand); }

.sidebar .nav-link { color: #333; border-radius: .5rem; }
.sidebar .nav-link.active { background: var(--brand); color: #fff; }

.stat-card { border-left: 4px solid var(--brand); }
.table-sm td, .table-sm th { padding: .35rem .5rem; }

/* --- Formularios de autenticación --- */
.auth-wrapper {
  background:
    radial-gradient(ellipse at top left, rgba(55,125,255,.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(111,66,193,.08), transparent 50%);
}
.auth-card { border-radius: 1rem; }
.auth-side {
  background: linear-gradient(160deg, #0b1437 0%, #1e2a5a 60%, #377dff 140%);
}
.auth-benefits li { margin-bottom: .75rem; }
.auth-benefits i { color: #7cc0ff; }
.auth-input .input-group-text {
  background: #f8f9fb;
  border-right: 0;
  color: #8a94a6;
}
.auth-input .form-control { border-left: 0; font-size: 1rem; }
.auth-input .form-control:focus {
  box-shadow: none;
  border-color: var(--brand);
}
.auth-input .form-control:focus + .toggle-pass,
.auth-input:focus-within .input-group-text,
.auth-input:focus-within .toggle-pass {
  border-color: var(--brand);
}
.auth-input .toggle-pass {
  border-left: 0;
  background: #fff;
  color: #8a94a6;
}
.auth-input .toggle-pass:hover { background: #f8f9fb; color: var(--brand); }

/* --- Panel de usuarios (admin) --- */
.user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #377dff, #6f42c1);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Footer profesional --- */
.footer-pro {
  background: #0b1437;
  color: rgba(255, 255, 255, .65);
}
.footer-title {
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-links a:hover { color: #7cc0ff; }
.footer-lang {
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  padding: .4rem .6rem;
}
.footer-lang:hover, .footer-lang.active { background: var(--brand); color: #fff; }
.footer-bottom {
  background: rgba(0, 0, 0, .25);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-bottom a { color: rgba(255, 255, 255, .55); text-decoration: none; }
.footer-bottom a:hover { color: #7cc0ff; }

/* --- Botón volver arriba --- */
#backToTop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 1030;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* --- Banner de cookies --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #0b1437;
  color: rgba(255, 255, 255, .85);
  border-top: 2px solid var(--brand);
  transform: translateY(110%);
  transition: transform .35s ease;
  z-index: 1040;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner a { color: #7cc0ff; }
