/* ===================================================================
   Pórtico — capa de tema propia sobre Bootstrap 5.3
   -------------------------------------------------------------------
   Identidad de ingeniería estructural: azul "azure" #1592C9 sobre
   tinta slate #0f172a, motivo "blueprint" geométrico y limpio.
   Esta hoja se carga DESPUÉS de Bootstrap para ganar especificidad.
   No toca el footer de disclaimer (queda con su estilo inline en
   base.html, que tiene mayor prioridad).
   =================================================================== */

:root {
  /* Paleta de marca */
  --px-azure: #1592c9;
  --px-azure-600: #1180b1;
  --px-azure-700: #0d6a94;
  --px-azure-050: #e8f4fb;
  --px-ink: #0f172a;
  --px-ink-700: #1e293b;
  --px-ink-500: #334155;
  --px-slate: #64748b;
  --px-mist: #f8fafc;
  --px-line: #e2e8f0;
  --px-line-strong: #cbd5e1;
  --px-white: #ffffff;

  /* Sombras sutiles */
  --px-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06),
    0 1px 3px rgba(15, 23, 42, .08);
  --px-shadow-md: 0 4px 12px rgba(15, 23, 42, .08),
    0 2px 4px rgba(15, 23, 42, .06);
  --px-shadow-azure: 0 8px 24px rgba(21, 146, 201, .18);

  /* Tipografía */
  --px-font-display: "Sora", "Segoe UI", system-ui, -apple-system,
    sans-serif;
  --px-font-body: "Inter", "Segoe UI", system-ui, -apple-system,
    sans-serif;

  /* Override de tokens Bootstrap (Bootstrap 5.3 los expone) */
  --bs-primary: #1592c9;
  --bs-primary-rgb: 21, 146, 201;
  --bs-link-color: #0d6a94;
  --bs-link-color-rgb: 13, 106, 148;
  --bs-link-hover-color: #0a516f;
  --bs-body-font-family: var(--px-font-body);
  --bs-border-color: var(--px-line);
}

/* ---- Tipografía base -------------------------------------------- */
body {
  font-family: var(--px-font-body);
  color: var(--px-ink-700);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.navbar-brand,
.px-display {
  font-family: var(--px-font-display);
  letter-spacing: -.01em;
}

/* ---- Foco visible accesible (WCAG) ------------------------------ */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.nav-link:focus-visible {
  outline: 3px solid rgba(21, 146, 201, .45);
  outline-offset: 2px;
  box-shadow: none;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--px-azure);
  outline-offset: 0;
}

/* ---- Botones ---------------------------------------------------- */
.btn-primary {
  --bs-btn-bg: var(--px-azure);
  --bs-btn-border-color: var(--px-azure);
  --bs-btn-hover-bg: var(--px-azure-600);
  --bs-btn-hover-border-color: var(--px-azure-600);
  --bs-btn-active-bg: var(--px-azure-700);
  --bs-btn-active-border-color: var(--px-azure-700);
  --bs-btn-disabled-bg: var(--px-azure);
  --bs-btn-disabled-border-color: var(--px-azure);
  font-weight: 600;
}
.btn-outline-primary {
  --bs-btn-color: var(--px-azure-700);
  --bs-btn-border-color: var(--px-azure);
  --bs-btn-hover-bg: var(--px-azure);
  --bs-btn-hover-border-color: var(--px-azure);
  --bs-btn-active-bg: var(--px-azure-700);
  --bs-btn-active-border-color: var(--px-azure-700);
  font-weight: 600;
}
.btn {
  --bs-btn-border-radius: .55rem;
  transition: transform .08s ease, box-shadow .15s ease;
}
.btn-primary:hover,
.btn-outline-primary:hover {
  box-shadow: var(--px-shadow-azure);
}
.btn-lg {
  --bs-btn-padding-y: .7rem;
  --bs-btn-padding-x: 1.4rem;
}

/* ---- Navbar (tinta con marca azure) ----------------------------- */
.navbar.px-navbar {
  background: var(--px-ink) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.navbar.px-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.navbar.px-navbar .navbar-brand img {
  height: 28px;
  width: auto;
}
.navbar.px-navbar .nav-link {
  color: rgba(226, 232, 240, .85);
  font-weight: 500;
}
.navbar.px-navbar .nav-link:hover,
.navbar.px-navbar .nav-link:focus {
  color: var(--px-white);
}

/* ---- Cards (sombra sutil + borde fino) -------------------------- */
.card {
  --bs-card-border-color: var(--px-line);
  --bs-card-border-radius: .85rem;
  box-shadow: var(--px-shadow-sm);
}
.px-card-hover {
  transition: transform .15s ease, box-shadow .2s ease,
    border-color .2s ease;
}
.px-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--px-shadow-md);
  border-color: var(--px-azure);
}

/* ---- Patrón blueprint reutilizable ------------------------------ */
.px-blueprint {
  background-color: var(--px-ink);
  background-image:
    linear-gradient(rgba(21, 146, 201, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 146, 201, .14) 1px,
      transparent 1px);
  background-size: 26px 26px;
}

/* ---- Hero de la home -------------------------------------------- */
.px-hero {
  background-color: var(--px-ink);
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}
.px-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 146, 201, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 146, 201, .08) 1px,
      transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000, transparent
    72%);
  mask-image: radial-gradient(circle at 30% 40%, #000, transparent 72%);
  pointer-events: none;
}
.px-hero .px-hero-inner { position: relative; z-index: 1; }
.px-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--px-white);
}
.px-hero .px-hero-accent { color: var(--px-azure); }
.px-hero .lead { color: #94a3b8; }
.px-hero-img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--px-shadow-azure);
  border: 1px solid rgba(255, 255, 255, .08);
}
.px-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--px-font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--px-azure);
  background: rgba(21, 146, 201, .12);
  border: 1px solid rgba(21, 146, 201, .3);
  padding: .3rem .7rem;
  border-radius: 999px;
}

/* ---- Secciones de la landing ------------------------------------ */
.px-section { padding: 3.5rem 0; }
.px-section-title {
  font-weight: 700;
  letter-spacing: -.02em;
}
.px-family-label {
  font-family: var(--px-font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--px-azure-700);
}
.px-chip {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--px-ink-700);
  background: var(--px-azure-050);
  border: 1px solid var(--px-line-strong);
  border-radius: .5rem;
  padding: .22rem .55rem;
  margin: .15rem .15rem 0 0;
}
.px-family-card {
  border-top: 3px solid var(--px-azure);
}

/* ---- Split layout (login / registro) ---------------------------- */
.px-auth-wrap {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: stretch;
}
.px-auth-form {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}
.px-auth-form-inner { width: 100%; max-width: 25rem; }
.px-auth-aside {
  flex: 1 1 50%;
  position: relative;
  background-color: var(--px-ink);
}
.px-auth-aside img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.px-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--px-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--px-ink);
  text-decoration: none;
}
.px-auth-brand img { height: 34px; width: auto; }

/* ---- Estado vacío ----------------------------------------------- */
.px-empty {
  text-align: center;
  padding: 2.5rem 1rem;
}
.px-empty img {
  max-width: 260px;
  width: 60%;
  height: auto;
  opacity: .95;
  margin-bottom: 1.25rem;
}

/* ---- List groups con acento ------------------------------------- */
.list-group-item .px-pin {
  color: var(--px-azure);
}

/* ---- Bloque dedicado Waiki Cimentum (promo curada) -------------- */
.px-cimentum-features { display: grid; gap: .55rem; }
.px-cimentum-features li {
  position: relative;
  padding-left: 1.6rem;
  color: #cbd5e1;
  font-size: .95rem;
  line-height: 1.35;
}
.px-cimentum-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--px-azure);
  font-weight: 700;
}

/* ---- Banda rotativa de cross-sell del pie (catálogo Waiki) ------ */
/* No es la card blanca sosa: fondo aclarado azure con acento, texto
   legible encima y borde superior de marca. Responsive por Bootstrap. */
#cross-sell-pie {
  background-color: var(--px-azure-050);
  border-top: 2px solid var(--px-azure) !important;
}
#cross-sell-pie .px-banda-titulo {
  font-family: var(--px-font-display);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--px-azure-700);
}
#cross-sell-pie .card {
  border: 1px solid var(--px-line-strong);
  border-left: 3px solid var(--px-azure);
  background-color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
#cross-sell-pie .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--px-shadow-md);
}

/* ---- Responsive: el panel decorativo se oculta en mobile -------- */
@media (max-width: 767.98px) {
  .px-auth-aside { display: none; }
  .px-auth-form { padding: 2rem 1rem; }
}
