/* licitaciones_publicas.css — Tablero público de licitaciones SECOP (Fase 3.1). */

.lp {
  /* seccion-Principal (layout) es flex centrado: sin width el bloque toma un
     ancho impredecible y el texto puede desbordar. Fijar 100% + border-box. */
  width: 100%;
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 56px;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp-hero, .lp-hero__title, .lp-hero__lead { overflow-wrap: break-word; }

/* Hero */
.lp-hero { text-align: center; padding: 22px 0 22px; }
.lp-hero__kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4a90e2; margin: 0 0 8px; }
.lp-hero__title {
  /* Tamano contenido: dentro de la sesion (con sidebar) el titulo a 40px se
     partia dejando "del SECOP" colgado. text-wrap balance reparte las lineas. */
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800; letter-spacing: -.02em; color: #0b2545;
  margin: 0 auto 12px; line-height: 1.15;
  text-wrap: balance;
}
.lp-hero__lead { max-width: 900px; margin: 0 auto; font-size: 15.5px; line-height: 1.6; color: #475569; text-wrap: pretty; }
.lp-hero__lead strong { color: #0b2545; }

/* Filtros */
.lp-filtros { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.lp-filtros__q { flex: 1 1 240px; }
.lp-filtros__q, .lp-filtros__sel {
  padding: 10px 14px; border: 1.5px solid #d6dce6; border-radius: 8px;
  background: #fff; color: #1e293b; font-size: 14.5px; font-family: inherit;
}
.lp-filtros__q:focus, .lp-filtros__sel:focus { outline: none; border-color: #4a90e2; }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 8px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 14.5px; font-family: inherit; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .12s;
}
.lp-btn--primary { background: #4a90e2; color: #fff; }
.lp-btn--primary:hover { background: #2f6fb0; transform: translateY(-1px); }
.lp-btn--ghost { background: #fff; color: #334155; border-color: #d6dce6; }
.lp-btn--ghost:hover { border-color: #0b2545; }
.lp-btn--lg { padding: 14px 28px; font-size: 16px; }

.lp-conteo { font-size: 13.5px; color: #64748b; margin: 0 0 16px; font-weight: 600; }

/* Lista de cards */
.lp-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lp-card {
  background: #fff; border: 1px solid #e4e9f0; border-left: 4px solid #4a90e2;
  border-radius: 10px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(11,37,69,.06);
  transition: box-shadow .15s, transform .12s;
}
.lp-card:hover { box-shadow: 0 8px 22px rgba(11,37,69,.10); transform: translateY(-2px); }

.lp-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lp-card__esp {
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: #eef4fb; color: #2f6fb0;
}
.lp-card__esp--vial { background: #fff7ed; color: #b45309; }
.lp-card__esp--edificacion { background: #eff6ff; color: #1d4ed8; }
.lp-card__esp--hidraulica { background: #ecfeff; color: #0e7490; }
.lp-card__esp--electrica { background: #fefce8; color: #a16207; }
.lp-card__estado { font-size: 12px; font-weight: 700; color: #16a34a; }
.lp-card__objeto { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 4px; line-height: 1.35; }
.lp-card__entidad { font-size: 13.5px; color: #64748b; margin: 0 0 12px; }
.lp-card__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; color: #475569; margin-bottom: 12px; }
.lp-card__meta strong { color: #334155; font-weight: 600; }
.lp-card__ref { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 12px; color: #94a3b8; }
.lp-card__acciones { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding-top: 6px; border-top: 1px solid #f1f5f9; }
.lp-link { font-size: 13.5px; font-weight: 700; color: #2f6fb0; text-decoration: none; }
.lp-link:hover { text-decoration: underline; }
.lp-link--cta { color: #0b2545; margin-left: auto; }

/* Paginación */
.lp-pag { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 26px 0 0; }
.lp-pag__btn { font-weight: 700; font-size: 14px; color: #2f6fb0; text-decoration: none; padding: 8px 14px; border: 1.5px solid #d6dce6; border-radius: 8px; }
.lp-pag__btn:hover { border-color: #4a90e2; }
.lp-pag__info { font-size: 13.5px; color: #64748b; }

.lp-vacio { text-align: center; color: #64748b; padding: 40px 0; display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* CTA final */
.lp-cta {
  margin-top: 40px; padding: 36px 24px; text-align: center;
  background: linear-gradient(160deg, #0f172a, #1e293b); border-radius: 14px; color: #fff;
}
.lp-cta__title { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; margin: 0 0 10px; }
.lp-cta__lead { max-width: 600px; margin: 0 auto 22px; font-size: 15.5px; color: #cbd5e1; line-height: 1.6; }

@media (max-width: 560px) {
  .lp-filtros__sel, .lp-filtros__q { flex: 1 1 100%; }
  .lp-link--cta { margin-left: 0; }
}

/* ── Página de detalle ── */
.lp-card__objeto a { color: inherit; text-decoration: none; }
.lp-card__objeto a:hover { color: #2f6fb0; text-decoration: underline; }

.lp-detalle { max-width: 880px; }
.lp-migas { font-size: 13.5px; margin: 4px 0 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lp-migas a { color: #2f6fb0; text-decoration: none; font-weight: 600; }
.lp-migas a:hover { text-decoration: underline; }
.lp-migas span { color: #94a3b8; }

.lp-detalle__head { margin-bottom: 22px; }
.lp-detalle__titulo { font-size: clamp(22px, 3.6vw, 30px); font-weight: 800; color: #0b2545; line-height: 1.3; margin: 10px 0 6px; }
.lp-detalle__entidad { font-size: 15px; color: #64748b; margin: 0; }

.lp-ficha { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #e4e9f0; border: 1px solid #e4e9f0; border-radius: 10px; overflow: hidden; margin: 0 0 18px; }
.lp-ficha > div { background: #fff; padding: 14px 16px; }
.lp-ficha dt { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; margin: 0 0 4px; }
.lp-ficha dd { margin: 0; font-size: 15px; font-weight: 600; color: #0f172a; }
.lp-ficha__ref { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 13px; font-weight: 500; color: #475569; }

.lp-detalle__secop { margin: 0 0 8px; }
.lp-detalle__mas { text-align: center; margin: 22px 0 0; }
.lp-detalle__mas a { color: #2f6fb0; font-weight: 700; text-decoration: none; }
.lp-detalle__mas a:hover { text-decoration: underline; }

@media (max-width: 560px) { .lp-ficha { grid-template-columns: 1fr; } }

/* ── Flash + suscripción a alertas ── */
.lp-flashes { margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.lp-flash { padding: 11px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.lp-flash--success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.lp-flash--error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.lp-flash--info, .lp-flash--message { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

.lp-alertas { margin-top: 18px; padding: 28px 24px; background: #f8fafc; border: 1px solid #e4e9f0; border-radius: 14px; }
.lp-alertas__title { font-size: 20px; font-weight: 800; color: #0b2545; margin: 0 0 6px; }
.lp-alertas__lead { font-size: 14.5px; color: #475569; margin: 0 0 16px; }
.lp-alertas__form { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-alertas__form .lp-filtros__q { flex: 1 1 220px; }
@media (max-width: 560px) { .lp-alertas__form .lp-filtros__q, .lp-alertas__form .lp-filtros__sel { flex: 1 1 100%; } }
