:root {
  --bg: #f5f7fa;
  --bg-alt: #eef2f7;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #0d2033;
  --muted: #5b6b7d;
  --border: rgba(13, 32, 51, 0.09);
  --primary: #0D385B;
  --primary-2: #1d5a8f;
  --primary-3: #0a2a44;
  --accent: #d9b46c;
  --accent-soft: rgba(217, 180, 108, 0.16);
  --shadow-lg: 0 28px 70px rgba(13, 56, 91, 0.14);
  --shadow-md: 0 18px 40px rgba(13, 56, 91, 0.12);
  --shadow-sm: 0 10px 24px rgba(13, 56, 91, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(29, 90, 143, 0.12), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(217, 180, 108, 0.14), transparent 18%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Poppins, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}

.app-shell {
  position: relative;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.ambient-a { top: -10rem; right: -8rem; background: rgba(13, 56, 91, 0.4); }
.ambient-b { bottom: 8rem; left: -10rem; background: rgba(217, 180, 108, 0.25); }

.site-header,
.site-footer,
main,
.toast-container {
  position: relative;
  z-index: 1;
}

.site-header {
  backdrop-filter: blur(16px);
  background: rgba(244, 247, 245, 0.76);
  border-bottom: 1px solid rgba(13, 32, 51, 0.06);
}

.navbar-brand {
  text-decoration: none;
}

.brand-mark {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-login {
  white-space: nowrap;
}

.landing-hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6.5rem);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.94) 0%, rgba(245, 247, 250, 0.76) 46%, rgba(13, 56, 91, 0.34) 100%),
    url('/images/obras-por-impuestos-carretera-andina-peru.jpg') center/cover no-repeat;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.landing-hero h1 {
  max-width: 48rem;
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.6rem, 5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.landing-hero-grid > div:first-child {
  padding: 1.6rem 1.9rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 40px rgba(13, 56, 91, 0.08);
}

.landing-showcase .status-live {
  background: #0f8a64;
  color: #ffffff;
}

.landing-lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.landing-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.landing-showcase {
  padding: 1.35rem;
  color: #f7fffc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #0D385B, #103a32);
  box-shadow: 0 34px 70px rgba(13, 56, 91, 0.28);
}

.showcase-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.35rem 0 1.25rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-certificate {
  padding: clamp(1.5rem, 4vw, 2.35rem);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
}

.certificate-type {
  color: #dceddf;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.showcase-certificate .showcase-title {
  margin: 2.6rem 0 0.6rem;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.showcase-certificate p { color: rgba(255, 255, 255, 0.72); }

.showcase-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

.showcase-values div:last-child { grid-column: span 2; }
.showcase-values span { display: block; color: rgba(255, 255, 255, 0.62); font-size: 0.78rem; }
.showcase-values strong { display: block; margin-top: 0.22rem; font-size: 1.02rem; }
.showcase-footer { padding: 1rem 0.35rem 0.25rem; color: rgba(255, 255, 255, 0.76); font-size: 0.86rem; }
.showcase-footer i { color: var(--accent); margin-right: 0.5rem; }

.landing-heading { max-width: 46rem; }
.landing-info-card {
  height: 100%;
  padding: 1.4rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-steps-section {
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background:
    linear-gradient(180deg, rgba(245, 247, 250, 0.97) 0%, rgba(245, 247, 250, 0.88) 45%, rgba(13, 56, 91, 0.16) 100%),
    url('/images/obras-por-impuestos-puente-moderno-peru.jpg') center/cover no-repeat;
}

.landing-step {
  height: 100%;
  padding: 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
}

.landing-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.landing-step h3 { font-size: 1.18rem; }
.landing-step p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.landing-step-big { display: flex; flex-direction: column; align-items: flex-start; }
.landing-step-big > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.2rem;
  border-radius: 1rem;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 1.6rem;
}
.landing-step-big h3 { font-size: 1.35rem; font-weight: 700; }

/* --- Rediseño de la sección superior del landing (solo hero) --- */
.landing-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: #EDF4FE;
  color: #026DE6;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.landing-hero h1.landing-title {
  color: #0E3974;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.8vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0.75rem 0 1rem;
}
.landing-title-accent { color: #026DE6; }
.landing-desc {
  color: #3C485E;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 34rem;
  margin-bottom: 1.25rem;
}
.landing-elements {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.landing-element {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #3C485E;
}
.landing-element i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  background: #EDF4FE;
  color: #026DE6;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.landing-element strong { color: #0E3974; font-weight: 800; }
.landing-arrow { color: #026DE6; font-weight: 700; margin: 0 0.2rem; }
@media (max-width: 575.98px) {
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    white-space: nowrap;
  }
}

/* --- Línea de diseño unificada para el landing (secciones debajo del hero) --- */
.landing-page .section-heading h2,
.landing-page .landing-cta h2,
.landing-page .info-card h3,
.landing-page .landing-step h3,
.landing-page .landing-step-big h3 {
  color: #0E3974;
}
.landing-page .eyebrow {
  color: #026DE6;
  background: #EDF4FE;
  border: 0;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  text-transform: uppercase;
}
.landing-page .info-card i,
.landing-page .landing-step-big > i {
  color: #026DE6;
  background: #EDF4FE;
}
.landing-page .info-card p,
.landing-page .landing-step p,
.landing-page .section-heading p {
  color: #3C485E;
}

.landing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.landing-cta h2 { margin: 0.35rem 0 0; font-size: clamp(1.4rem, 3vw, 2rem); }

.auth-main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 5.4rem);
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) 1.25rem;
}

.auth-layout {
  width: min(100%, 68rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 0.85fr);
  gap: clamp(2.5rem, 8vw, 7rem);
  align-items: center;
  margin: 0 auto;
}

.auth-intro h1 {
  max-width: 33rem;
  margin: 1rem 0;
  font-size: clamp(2.35rem, 4vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.auth-intro > p { max-width: 34rem; color: var(--muted); font-size: 1.06rem; line-height: 1.7; }

.auth-intro-points { display: grid; gap: 1rem; margin-top: 2rem; color: var(--primary-3); font-weight: 700; }
.auth-intro-points i { width: 1.6rem; color: var(--primary-2); }

.auth-card {
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border: 1px solid rgba(13, 32, 51, 0.09);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-lg);
}

.auth-card h2 { margin: 0.5rem 0; font-size: 1.85rem; }
.auth-card .form-label { font-size: 0.9rem; font-weight: 700; }
.auth-card .form-control { border-color: rgba(13, 32, 51, 0.14); }
.auth-card .form-control:focus { border-color: var(--primary-2); box-shadow: 0 0 0 0.25rem rgba(29, 90, 143, 0.12); }

.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.65rem 0; color: var(--muted); font-size: 0.82rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { white-space: nowrap; }

.social-login-grid { display: grid; grid-template-columns: 1fr; gap: 0.65rem; }

.social-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.social-login svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.social-login:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.auth-feedback { margin-top: 1.25rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: rgba(13, 56, 91, 0.09); color: var(--primary-3); font-size: 0.9rem; line-height: 1.5; }
.auth-switch { margin: 1.6rem 0 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
.auth-switch a { color: var(--primary); font-weight: 800; text-decoration: none; }

.consent-group {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}

.consent-group .form-check {
  padding-left: 1.8rem;
}

.consent-group .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin-left: -1.8rem;
  margin-top: 0.18rem;
  border-color: rgba(13, 32, 51, 0.3);
}

.consent-group .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.consent-group .form-check-label {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.consent-group a,
.legal-links a {
  color: var(--primary);
  font-weight: 800;
}

.legal-main {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.legal-card {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.legal-card h1 {
  margin: 1rem 0 0.45rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.legal-updated {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-card > p,
.legal-card section p {
  color: var(--muted);
  line-height: 1.72;
}

.legal-card section {
  margin-top: 2rem;
}

.legal-card section h2 {
  font-size: 1.14rem;
  font-weight: 800;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (max-width: 991.98px) {
  .landing-hero-grid, .auth-layout { grid-template-columns: 1fr; }
  .landing-showcase { max-width: 35rem; }
  .auth-layout { max-width: 35rem; }
}

@media (max-width: 575.98px) {
  .landing-hero { padding-top: 3.5rem; }
  .landing-cta { align-items: flex-start; flex-direction: column; }
  .landing-cta .btn { width: 100%; }
  .social-login { min-height: 2.85rem; }
  .auth-main { align-items: flex-start; padding-top: 1.5rem; }
  .auth-card-wrap { order: -1; }
  .auth-intro { margin-top: 0.5rem; }
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  font-size: 1.12rem;
}

.brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  border: none;
  box-shadow: 0 14px 30px rgba(13, 56, 91, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-3) 0%, var(--primary) 100%);
  box-shadow: 0 18px 34px rgba(13, 56, 91, 0.26);
}

.btn-outline-primary {
  border-color: rgba(13, 56, 91, 0.18);
  color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(13, 56, 91, 0.06);
  color: var(--primary);
  border-color: rgba(13, 56, 91, 0.22);
}

.btn-soft {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
}

.hero-section {
  padding: 4.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy h1,
.section-heading h2,
.detail-hero h1 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero-copy h1 {
  font-size: clamp(2.55rem, 4.6vw, 4.5rem);
  max-width: 12ch;
  margin: 0.75rem 0 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(13, 56, 91, 0.08);
  border: 1px solid rgba(13, 56, 91, 0.08);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
}

.lead-copy {
  font-size: 1.13rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 1.8rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-pill strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.stat-pill span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-panel {
  position: relative;
}

.hero-card,
.info-card,
.card-surface,
.filter-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-card {
  padding: 1.5rem;
  backdrop-filter: blur(18px);
}

.hero-card-top,
.seller-head,
.detail-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.panel-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-card h2 {
  margin: 0.45rem 0 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(17, 74, 64, 0.08);
  color: var(--primary);
  white-space: nowrap;
}

.status-live {
  background: rgba(29, 90, 143, 0.12);
  color: var(--primary-2);
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.35rem 0;
}

.mini-metrics div,
.summary-stack div,
.detail-metadata div,
.seller-metrics div {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(13, 32, 51, 0.07);
  border-radius: 18px;
  padding: 0.92rem 1rem;
}

.mini-metrics span,
.summary-stack span,
.detail-metadata span,
.seller-metrics span,
.highlight-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.28rem;
}

.mini-metrics strong,
.summary-stack strong,
.detail-metadata strong,
.seller-metrics strong,
.highlight-card strong {
  font-size: 1.02rem;
}

.trust-list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  color: var(--text);
}

.trust-list div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(13, 56, 91, 0.05);
}

.trust-list i,
.trust-chip i {
  color: var(--primary-2);
}

.hero-signal {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(217, 180, 108, 0.18), rgba(13, 56, 91, 0.06));
  color: var(--text);
  font-weight: 600;
}

.pulse-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 0 0 rgba(29, 90, 143, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(29, 90, 143, 0.55); }
  70% { box-shadow: 0 0 0 18px rgba(29, 90, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 90, 143, 0); }
}

.section-block {
  padding: 1.8rem 0 3rem;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 2.3vw, 2.4rem);
  margin: 0.8rem 0 0;
}

.section-heading p,
.filter-hint,
.list-header p,
.footer-panel p {
  color: var(--muted);
}

.trust-cards .info-card {
  height: 100%;
  padding: 1.4rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover,
.certificate-card:hover,
.feature-card:hover,
.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.info-card i {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(13, 56, 91, 0.08);
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.info-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.info-card p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.65;
}

.marketplace-section {
  padding-top: 0.6rem;
}

.filter-shell {
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.filter-bar {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}

.filter-search {
  flex: 1 1 520px;
}

.filter-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-left: auto;
}

.search-group .input-group-text,
.form-control,
.form-select {
  border-color: rgba(13, 32, 51, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.search-group .input-group-text {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background: rgba(13, 56, 91, 0.06);
  color: var(--primary);
}

.search-group .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  min-height: 3.35rem;
}

.icon-hint {
  color: var(--muted);
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-hint:hover {
  color: var(--primary);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.filter-block {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(13, 32, 51, 0.06);
  border-radius: 20px;
  padding: 1rem;
}

.filter-block .form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-btn {
  border: 1px solid rgba(13, 56, 91, 0.12);
  background: rgba(13, 56, 91, 0.05);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.chip-btn:hover,
.chip-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(13, 32, 51, 0.07);
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

.summary-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}

.summary-chip strong {
  font-size: 1.1rem;
}

.summary-chip span {
  color: var(--muted);
  font-size: 0.85rem;
}

.certificate-card {
  height: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.certificate-card .card-body {
  padding: 1.2rem;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.card-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.favorite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border: 1px solid rgba(13, 56, 91, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.favorite-btn:hover,
.favorite-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(13, 56, 91, 0.08);
}

.favorite-btn.is-favorite {
  border-color: rgba(185, 53, 88, 0.2);
  background: rgba(185, 53, 88, 0.1);
  color: #b93558;
}

.seller-tag {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.certificate-card h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 800;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.metric-box {
  border-radius: 16px;
  background: rgba(13, 56, 91, 0.04);
  border: 1px solid rgba(13, 56, 91, 0.06);
  padding: 0.8rem;
}

.metric-box span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 0.18rem;
}

.metric-box strong {
  font-size: 0.96rem;
}

.chip-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ghost-chip {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 32, 51, 0.08);
  padding: 0.46rem 0.68rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text);
}

.ghost-chip i {
  color: var(--primary-2);
}

.price-block {
  padding: 0.95rem 1rem;
  margin: 1rem 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 56, 91, 0.06), rgba(217, 180, 108, 0.09));
  border: 1px solid rgba(13, 32, 51, 0.05);
}

.price-block span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.price-block strong {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.card-footer-lite {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(13, 32, 51, 0.07);
}

.reputation {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #b5811a;
  font-size: 0.94rem;
  font-weight: 700;
}

.pagination-shell {
  padding-top: 1.75rem;
}

.pagination-premium .page-link {
  border: none;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.72);
  margin: 0 0.22rem;
  border-radius: 14px;
  min-width: 2.8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.pagination-premium .page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
}

.site-footer {
  padding: 1rem 0 2.2rem;
}

.footer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(13, 32, 51, 0.06);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  padding: 1.2rem 1.4rem;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.premium-modal,
.premium-toast {
  border: 1px solid rgba(13, 32, 51, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.premium-modal {
  background: rgba(255, 255, 255, 0.96);
}

.premium-toast {
  background: rgba(255, 255, 255, 0.95);
}

.modal-checklist,
.anonymous-banner,
.seller-card,
.sticky-summary,
.detail-hero,
.detail-skeleton,
.detail-main .content-block,
.recommendation-card {
  margin-top: 1rem;
}

.modal-checklist {
  display: grid;
  gap: 0.75rem;
}

.modal-checklist div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(13, 56, 91, 0.05);
}

.modal-checklist i {
  color: var(--primary-2);
}

.toast-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 56, 91, 0.1);
  color: var(--primary);
}

.toast-container {
  z-index: 1080;
}

.breadcrumb-shell {
  padding-top: 1rem;
}

.breadcrumb {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(13, 32, 51, 0.06);
  border-radius: 999px;
  padding: 0.8rem 1rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.detail-page {
  padding: 1rem 0 2.5rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 1.4rem;
  margin-top: 1rem;
}

.detail-main,
.detail-aside {
  min-width: 0;
}

.detail-hero,
.seller-card,
.sticky-summary,
.content-block,
.recommendation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.4rem;
}

.detail-hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0.5rem 0 0.55rem;
}

.detail-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.highlight-card {
  border-radius: 20px;
  padding: 1rem;
  background: rgba(13, 56, 91, 0.04);
  border: 1px solid rgba(13, 56, 91, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.detail-metadata {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.detail-trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(13, 56, 91, 0.05);
  border: 1px solid rgba(13, 56, 91, 0.08);
  font-weight: 700;
  color: var(--text);
}

.content-block {
  margin-top: 1.4rem;
}

.premium-accordion .accordion-item {
  border: 1px solid rgba(13, 32, 51, 0.08);
  border-radius: 18px !important;
  overflow: hidden;
  margin-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.76);
}

.premium-accordion .accordion-button {
  font-weight: 800;
  background: transparent;
  box-shadow: none;
}

.premium-accordion .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: rgba(13, 56, 91, 0.05);
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-list div {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(13, 32, 51, 0.08);
}

.faq-list div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-list strong,
.faq-list span {
  display: block;
}

.faq-list span {
  color: var(--muted);
  margin-top: 0.22rem;
}

.seller-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.summary-stack {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.summary-stack div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.anonymous-banner {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 56, 91, 0.08), rgba(217, 180, 108, 0.12));
  border: 1px solid rgba(13, 56, 91, 0.08);
  color: var(--text);
  line-height: 1.7;
}

.project-rubro-card {
  margin-top: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(13, 56, 91, 0.07), rgba(217, 180, 108, 0.12));
  border: 1px solid rgba(13, 56, 91, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-rubro-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-rubro-card h3 {
  margin: 0.4rem 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.project-rubro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(13, 56, 91, 0.08);
  color: var(--primary);
  font-weight: 800;
  padding: 0.62rem 0.9rem;
}

.offer-guidance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.offer-guidance div,
.offer-success,
.negotiation-side-note,
.timeline-content,
.action-checklist div {
  border-radius: 18px;
  border: 1px solid rgba(13, 56, 91, 0.08);
}

.offer-guidance div {
  background: rgba(13, 56, 91, 0.04);
  padding: 0.9rem 0.95rem;
}

.offer-guidance span {
  display: block;
  color: var(--muted);
  font-size: 0.77rem;
  margin-bottom: 0.24rem;
}

.offer-guidance strong {
  font-size: 0.96rem;
}

.offer-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(13, 56, 91, 0.05);
  border: 1px solid rgba(13, 56, 91, 0.08);
}

.offer-preview span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.offer-preview strong {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.discount-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
}

.discount-split-decimal {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.discount-split-dot {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  transform: translateY(-0.12rem);
}

.discount-split-decimal .form-control {
  width: 4.25rem;
  padding-left: 0.9rem;
}

.offer-success {
  background: linear-gradient(135deg, rgba(13, 56, 91, 0.08), rgba(217, 180, 108, 0.12));
  padding: 2rem 1.6rem;
  text-align: center;
}

.offer-success h6 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0.8rem 0 0.5rem;
}

.success-mark {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 999px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
  font-size: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.negotiation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 1.4rem;
  margin-top: 1rem;
}

.negotiation-main,
.negotiation-side {
  min-width: 0;
}

.negotiation-header,
.timeline-panel {
  padding: 1.4rem;
}

.negotiation-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: end;
}

.negotiation-header-copy {
  max-width: 52rem;
}

.negotiation-header-copy p {
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.65;
}

.negotiation-header-chips {
  justify-content: flex-end;
  align-self: start;
}

.negotiation-header,
.negotiation-grid > .card-surface,
.timeline-panel,
.negotiation-side .sticky-summary {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 48px rgba(13, 56, 91, 0.1);
}

.negotiation-header h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0.6rem 0 0.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.negotiation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.negotiation-metadata {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.negotiation-summary-card .section-heading,
.negotiation-actions-card .section-heading {
  margin-bottom: 1rem !important;
}

.negotiation-summary-card .section-heading h2,
.negotiation-actions-card .section-heading h2,
.timeline-panel .section-heading h2 {
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  line-height: 1.08;
}

.negotiation-summary-card .detail-metadata div {
  min-height: 5.6rem;
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
}

.negotiation-summary-card .detail-metadata strong {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.negotiation-summary-card .detail-metadata span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0;
}

.action-checklist {
  display: grid;
  gap: 0.75rem;
}

.action-checklist div {
  padding: 1.05rem 1.1rem;
  background: rgba(13, 56, 91, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.5;
  font-size: 0.95rem;
  min-height: 0;
}

.action-checklist i {
  color: var(--primary-2);
  margin-top: 0.15rem;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  gap: 1rem;
  align-items: flex-start;
}

.timeline-marker {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: rgba(13, 56, 91, 0.18);
  border: 3px solid rgba(13, 56, 91, 0.48);
  margin-top: 1rem;
  position: relative;
}

.timeline-entry:not(:last-child) .timeline-marker::after {
  content: "";
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 2px;
  height: calc(100% + 1rem);
  transform: translateX(-50%);
  background: rgba(13, 56, 91, 0.12);
}

.timeline-content {
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 249, 0.92));
}

.timeline-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.timeline-top h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0.45rem 0 0;
}

.timeline-badge,
.timeline-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(13, 56, 91, 0.08);
  color: var(--primary);
}

.timeline-date,
.timeline-meta {
  color: var(--muted);
  font-size: 0.83rem;
}

.timeline-meta {
  margin: 0.2rem 0 0.7rem;
}

.timeline-amount {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  color: var(--primary-3);
}

.timeline-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.timeline-entry.buyer .timeline-marker {
  background: rgba(217, 180, 108, 0.18);
  border-color: rgba(181, 129, 26, 0.58);
}

.timeline-entry.seller .timeline-marker {
  background: rgba(13, 56, 91, 0.18);
  border-color: rgba(13, 56, 91, 0.5);
}

.timeline-entry.platform .timeline-marker {
  background: rgba(96, 114, 108, 0.16);
  border-color: rgba(96, 114, 108, 0.4);
}

.negotiation-side-note {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  background: rgba(13, 56, 91, 0.05);
  color: var(--muted);
  line-height: 1.65;
}

.negotiation-side .btn-primary {
  min-height: 3.4rem;
}

.negotiation-side .summary-stack div {
  min-height: 4rem;
}

.negotiation-side .form-control,
.negotiation-side .form-select {
  min-height: 3.6rem;
}

.sticky-summary {
  position: sticky;
  top: 6rem;
}

.recommendation-card {
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.recommendation-card h3 {
  font-size: 1rem;
}

.recommendation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.8rem 0;
}

.recommendation-meta span {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(13, 56, 91, 0.05);
}

.detail-skeleton,
.skeleton-grid {
  display: grid;
  gap: 1rem;
}

.skeleton-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-skeleton {
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.4rem;
}

.skeleton-card {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(13, 32, 51, 0.07);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}

.skeleton-inner {
  padding: 1.15rem;
}

.skeleton-line,
.skeleton-badge,
.skeleton-figure {
  position: relative;
  overflow: hidden;
  background: rgba(13, 32, 51, 0.08);
}

.skeleton-line::after,
.skeleton-badge::after,
.skeleton-figure::after,
.skeleton-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.skeleton-line {
  border-radius: 999px;
  height: 0.8rem;
  margin-bottom: 0.6rem;
}

.skeleton-badge {
  height: 1.2rem;
  width: 6rem;
  border-radius: 999px;
}

.skeleton-figure {
  height: 1.8rem;
  border-radius: 14px;
}

.skeleton-surface {
  height: 100%;
  min-height: 10rem;
  background: rgba(13, 32, 51, 0.05);
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.skeleton-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.skeleton-grid .skeleton-card {
  min-height: 25rem;
}

.skeleton-grid .skeleton-card .skeleton-surface {
  height: 6rem;
  border-radius: 0;
}

.certificate-card .btn,
.recommendation-card .btn {
  white-space: nowrap;
}

.details-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.details-link:hover {
  text-decoration: underline;
}

.page-hidden {
  display: none !important;
}

.fade-enter {
  animation: fadeUp 0.38s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199.98px) {
  .hero-grid,
  .detail-layout,
  .detail-skeleton,
  .negotiation-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .filters-grid,
  .detail-highlight-grid,
  .detail-metadata,
  .skeleton-grid,
  .offer-guidance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .negotiation-grid,
  .negotiation-metadata {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .sticky-summary {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 3rem;
  }

  .hero-stats,
  .filters-grid,
  .detail-highlight-grid,
  .detail-metadata,
  .seller-metrics,
  .mini-metrics,
  .skeleton-grid,
  .offer-guidance,
  .negotiation-grid,
  .negotiation-metadata {
    grid-template-columns: 1fr;
  }

  .section-heading-row,
  .filter-bar,
  .filter-footer,
  .footer-panel,
  .detail-hero-top,
  .seller-head,
  .project-rubro-card,
  .timeline-top,
  .negotiation-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .negotiation-header {
    display: flex;
  }

  .negotiation-header-chips {
    justify-content: flex-start;
  }

  .filter-actions {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .filter-search {
    flex-basis: 100%;
  }

  .card-footer-lite {
    flex-direction: column;
    align-items: stretch;
  }

  .card-footer-lite .btn {
    width: 100%;
  }

  .detail-badges {
    justify-content: flex-start;
  }
}

/* Métricas resaltadas de forma sutil */
.metric {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95em;
  line-height: 1.4;
  white-space: nowrap;
}
.metric-neutral { background: rgba(13, 32, 51, 0.06); color: #5b6b7d; }
.metric-primary { background: rgba(13, 56, 91, 0.09); color: #0D385B; }
.metric-success { background: rgba(11, 110, 79, 0.10); color: #0b6e4f; }
.metric-warning { background: rgba(200, 145, 0, 0.14); color: #8a6400; }

/* Header flotante y fijo */
.app-header {
  position: sticky;
  top: 0.9rem;
  z-index: 1030;
  margin: 0.9rem 0 0;
}
.app-header .navbar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(13, 32, 51, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(13, 56, 91, 0.10);
  padding: 0.66rem 1.25rem;
}
.app-header .nav-link { font-weight: 500; color: var(--text); }
.app-header .nav-link:hover { color: var(--primary); }

/* Logotipo del header responsive: más grande en escritorio, compacto en móvil */
.app-header .navbar-brand img {
  height: 3.2rem !important;
}
@media (max-width: 991.98px) {
  .app-header .navbar {
    padding: 0.5rem 1rem;
  }
  .app-header .navbar-brand img {
    height: 1.89rem !important;
  }
}

/* Footer unificado */
.footer-panel-cols {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 10rem;
}
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--primary); }
.footer-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Login/registro compactos en móvil */
@media (max-width: 767px) {
  .auth-intro { display: none; }
  .auth-main { min-height: auto; padding: 1rem 1rem 1.6rem; align-items: center; }
  .auth-layout { gap: 0; }
  .auth-card { padding: 1.3rem 1.15rem; border-radius: 20px; }
  .auth-card h2 { font-size: 1.45rem; margin: 0.25rem 0 0.6rem; }
  .auth-card .eyebrow { margin-bottom: 0.25rem; }
  .auth-card .mb-3, .auth-card .mb-4 { margin-bottom: 0.7rem !important; }
  .auth-card .form-control-lg { min-height: 2.85rem; font-size: 1rem; }
  .auth-divider { margin: 1rem 0; }
  .auth-switch { margin: 0.95rem 0 0; }
  .consent-group { gap: 0.45rem; margin-bottom: 1rem; }
  .social-login { min-height: 2.6rem; }
}
