/* =========================================
   AFE SaaS - Estilos generales
   ========================================= */
:root {
  --afe-primary: #0d6efd;
  --afe-primary-dark: #0a58ca;
  --afe-bg-body: #f4f6fb;
  --afe-bg-card: #ffffff;
  --afe-text-main: #1f2933;
  --afe-text-muted: #6c757d;
  --afe-border-soft: #e0e3ec;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--afe-bg-body);
  color: var(--afe-text-main);
  -webkit-font-smoothing: antialiased;
}

/* Enlaces */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.18);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Hero */
header.bg-gradient {
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

header.bg-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(13, 110, 253, 0.25), transparent 55%),
              radial-gradient(circle at 90% 0%, rgba(32, 201, 151, 0.2), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

header.bg-gradient > .container {
  position: relative;
  z-index: 1;
}

/* Cards */
.card {
  background-color: var(--afe-bg-card);
  border-radius: 1rem;
  border: 1px solid var(--afe-border-soft);
}

.card.shadow-sm {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

.card-title {
  font-weight: 600;
}

/* Secciones */
section {
  scroll-margin-top: 80px;
}

/* Botones personalizados */
.btn-primary {
  background-color: var(--afe-primary);
  border-color: var(--afe-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--afe-primary-dark);
  border-color: var(--afe-primary-dark);
}

/* Listas de planes */
#planes .card {
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

#planes .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

#planes .card .card-title {
  font-size: 1.1rem;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Login */
body.login-page {
  background: radial-gradient(circle at 0% 0%, #e0f2fe, transparent 55%),
              radial-gradient(circle at 100% 100%, #e9d5ff, transparent 55%),
              var(--afe-bg-body);
}

.login-card {
  max-width: 420px;
}

/* Utilidades */
.text-muted {
  color: var(--afe-text-muted) !important;
}

/* PequeÃ±as mejoras de responsividad */
@media (max-width: 767.98px) {
  header.bg-gradient {
    text-align: center;
  }

  header.bg-gradient .btn-group,
  header.bg-gradient .d-flex {
    justify-content: center !important;
  }

  header.bg-gradient .card {
    margin-top: 1.5rem;
  }
}

/* Hero espec«¿fico para evitar blanco sobre blanco */
.afe-hero {
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 40%, #e0f2fe 100%);
  color: var(--afe-text-main);
}
