/* =========================================================
   ORK - Portal de verificación (UI refinada, look profesional)
   Mantiene: 2 cards (datos + alcance), mismas clases existentes
   ========================================================= */

:root{
  --bg: #f3f7ff;
  --ink: #0b1f3a;
  --muted: #5c6b7a;

  --primary: #0d6efd;
  --primary-2: #2b8cff;

  --card-radius: 22px;
  --soft-radius: 16px;

  --line: rgba(11,31,58,.10);
  --line-soft: rgba(11,31,58,.06);

  --shadow-1: 0 10px 30px rgba(11,31,58,.10);
  --shadow-2: 0 18px 50px rgba(11,31,58,.14);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,.55);

  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
}

/* ============ Base ============ */
html, body{ height: 100%; }

body{
  background: radial-gradient(circle at 18% 6%, rgba(13,110,253,.10), transparent 45%),
              radial-gradient(circle at 80% 10%, rgba(0,200,255,.08), transparent 45%),
              linear-gradient(180deg, #f5f8ff 0%, #eef4ff 100%);
  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ text-decoration: none; }
a:hover{ text-decoration: none; }

/* ============ Topbar ============ */
.topbar{
  background: linear-gradient(90deg, #07172c 0%, #081a31 60%, #07172c 100%);
  color: #fff;
  box-shadow: 0 10px 34px rgba(0,0,0,.18);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand-mark{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
  overflow:hidden;
}

.brand-mark::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 55%);
  transform: rotate(18deg);
  pointer-events:none;
}

.brand-logo{
  height: 34px;
  width: auto;
  position: relative;
  z-index: 1;
}

.brand-fallback{
  font-weight: 900;
  letter-spacing: .6px;
  color: rgba(255,255,255,.92);
  position: relative;
  z-index: 1;
}

.brand-title{
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.1;
}

.brand-subtitle{
  font-size: .86rem;
  color: rgba(255,255,255,.75);
}

/* ============ Hero layout ============ */
.hero{
  padding: 56px 0 44px;
  position: relative;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:-160px -120px auto -120px;
  height: 420px;
  background:
    radial-gradient(circle at 18% 32%, rgba(13,110,253,.22), transparent 55%),
    radial-gradient(circle at 64% 28%, rgba(0,200,255,.14), transparent 55%),
    radial-gradient(circle at 86% 14%, rgba(13,110,253,.10), transparent 55%);
  filter: saturate(115%);
}

.footer{
  margin-top: 22px;
  color: #7a8699;
}

/* ============ Pills de confianza (si los usas) ============ */
.trust-row{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.trust-pill{
  font-size: .85rem;
  color: #0b1f3a;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(11,31,58,.08);
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(11,31,58,.06);
}

.dot{
  display:inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}
.dot-success{ background: #22c55e; }

/* ============ Inputs / botones ============ */
.form-control, .input-group-text{
  border-radius: 14px;
  border-color: rgba(11,31,58,.10);
}

.form-control:focus{
  border-color: rgba(13,110,253,.35);
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.15);
}

.input-group-lg>.form-control,
.input-group-lg>.input-group-text{
  padding: 14px 14px;
}

.btn-primary{
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  border: 0;
  background: linear-gradient(180deg, var(--primary) 0%, #0b5ed7 100%);
  box-shadow: 0 12px 28px rgba(13,110,253,.22);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(13,110,253,.28);
  filter: saturate(115%);
}

.btn-outline-light{
  border-radius: 12px;
  border-color: rgba(255,255,255,.35);
}

.btn-outline-light:hover{
  background: rgba(255,255,255,.10);
}

/* ============ Cards ============ */
.search-card{
  border-radius: var(--card-radius);
  position: relative;
  z-index: 2;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(11,31,58,.08);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}

.search-card:hover{
  box-shadow: var(--shadow-2);
}

/* Sello “premium” sutil arriba */
.search-card::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height: 3px;
  background: linear-gradient(90deg, rgba(13,110,253,.0) 0%, rgba(13,110,253,.55) 50%, rgba(13,110,253,.0) 100%);
  opacity: .65;
  pointer-events:none;
}

/* ===== Estado visual del certificado (borde izq) ===== */
.card-estado-success{ border-left: 7px solid var(--success); }
.card-estado-danger { border-left: 7px solid var(--danger); }
.card-estado-warning{ border-left: 7px solid var(--warning); }

/* ===== Watermark sutil ===== */
.watermark{
  position:absolute;
  right: 16px;
  top: 14px;
  font-weight: 950;
  letter-spacing: .22em;
  opacity: .06;
  transform: rotate(-10deg);
  user-select: none;
  pointer-events: none;
}

/* ============ Icono estado ============ */
.status-icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(11,31,58,.10);
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(11,31,58,.10);
}

.status-icon-success{
  background: rgba(34,197,94,.14);
  color: var(--success);
  border: 1px solid rgba(34,197,94,.30);
}

.status-icon-danger{
  background: rgba(239,68,68,.14);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,.30);
}

.status-icon-warning{
  background: rgba(245,158,11,.14);
  color: var(--warning);
  border: 1px solid rgba(245,158,11,.30);
}

/* ============ Inner blocks (datos) ============ */
.card-inner{
  background: rgba(11,31,58,.03);
  border: 1px solid rgba(11,31,58,.06);
  border-radius: var(--soft-radius);
  padding: 16px;
  box-shadow: var(--shadow-inset);
}

.field{
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(11,31,58,.06);
  height: 100%;
}

.field-label{
  font-size: .80rem;
  color: #6b7c8f;
  margin-bottom: 4px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.field-value{
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.32;
  word-break: break-word;
}

/* Badge más pro (Bootstrap ya lo pinta, esto lo afina) */
.badge{
  font-weight: 900 !important;
  letter-spacing: .02em;
  border: 1px solid rgba(11,31,58,.08);
  box-shadow: 0 10px 22px rgba(11,31,58,.08);
}

/* ============ Tarjeta Alcance (tipo documento) ============ */
.details-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px){
  .details-grid{
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

.detail-item{
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(11,31,58,.08);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 22px rgba(11,31,58,.08);
}

.detail-label{
  font-size: .80rem;
  color: #6b7c8f;
  font-weight: 950;
  margin-bottom: 8px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.detail-value{
  color: var(--ink);
  font-weight: 650;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-line;
}

/* Encabezado del “Alcance” como sección de informe */
.search-card h2{
  letter-spacing: .01em;
}

.search-card h2.h6{
  font-weight: 950;
}

/* ============ Micro-espaciados y responsive ============ */
@media (max-width: 575px){
  .status-icon{
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .field{
    padding: 12px;
  }
}

/* ============ Certificaciones (logos ISO) ============ */
.cert-strip-title{
  font-weight: 950;
  font-size: .92rem;
  color: #344454;
  margin-bottom: 10px;
  text-align: center;
}

.cert-logos{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: center;
  justify-items: center;
}

@media (max-width: 768px){
  .cert-logos{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px){
  .cert-logos{ grid-template-columns: repeat(2, 1fr); }
}

.cert-logos img{
  width: 100%;
  max-width: 130px;
  height: 72px;
  object-fit: contain;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(11,31,58,.08);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 10px 22px rgba(11,31,58,.08);
  filter: grayscale(35%);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.cert-logos img:hover{
  filter: grayscale(0%);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(11,31,58,.12);
}

.cert-strip-note{
  margin-top: 10px;
  color: #6b7c8f;
  font-size: .86rem;
  text-align: center;
}

/* ============ Print (por si imprimen certificado) ============ */
@media print{
  body{
    background: #fff !important;
  }
  .topbar, .footer, .btn, .btn-outline-light{
    display: none !important;
  }
  .search-card{
    box-shadow: none !important;
    border: 1px solid #d7dde7 !important;
    background: #fff !important;
  }
  .watermark{ opacity: .04 !important; }
}
