/* ==========================================================================
   AdmiralONE Due Diligence: /due-diligence-kyc/, /precios/, /informe-de-ejemplo/
   y páginas por comprador (/due-diligence-proveedores/, -clientes/, -compliance/)
   ========================================================================== */

/* ---------- Hero ---------- */
.theme-dw .hero-note {
  margin-top: 1.25rem;
  font-size: 0.95rem !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

.theme-dw .hero-note a {
  margin-left: 0.5rem;
  color: var(--dw-accent);
  font-weight: 700;
  white-space: nowrap;
}

.theme-dw .hero-note a:hover { color: #fff; }

.theme-dw .module-hero-frame { position: relative; }

.theme-dw .ddq-shot-tag {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(0, 17, 51, 0.72);
  backdrop-filter: blur(4px);
}

/* ---------- Secciones (ritmo) ---------- */
.theme-dw .ddq-buyers,
.theme-dw .ddq-steps,
.theme-dw .ddq-report,
.theme-dw .ddq-usecases,
.theme-dw .ddq-sources,
.theme-dw .ddq-plans,
.theme-dw .ddq-story {
  padding: 6rem 0;
}

.theme-dw .ddq-buyers { background: #fff url('../../img/bg-tecnologia.svg') center / cover no-repeat; }
.theme-dw .ddq-steps { background: var(--dw-lavender); }
.theme-dw .ddq-report { background: #fff; }
.theme-dw .ddq-usecases { background: linear-gradient(180deg, var(--dw-lavender) 0%, #fff 100%); }
.theme-dw .ddq-plans { background: #fff; }
.theme-dw .ddq-story { background: var(--dw-lavender); }

/* ---------- Selector por comprador ---------- */
.theme-dw .buyer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.theme-dw .buyer-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--dw-border);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(13, 28, 119, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.theme-dw .buyer-card:hover {
  transform: translateY(-6px);
  border-color: var(--dw-violet);
  box-shadow: 0 24px 48px -20px rgba(58, 78, 242, 0.35);
}

.theme-dw .buyer-who {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--dw-accent-dark), var(--dw-indigo));
}

.theme-dw .buyer-card h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.theme-dw .buyer-card p {
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.theme-dw .buyer-link {
  margin-top: auto;
  color: var(--dw-indigo);
  font-weight: 700;
}

.theme-dw .buyer-link i { transition: transform 0.25s ease; }
.theme-dw .buyer-card:hover .buyer-link i { transform: translateX(5px); }

/* ---------- Pasos ---------- */
.theme-dw .steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: none;
}

.theme-dw .step {
  position: relative;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--dw-border);
  border-radius: 16px;
}

.theme-dw .step-num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--dw-lavender-2);
}

.theme-dw .step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.theme-dw .step p { font-size: 0.98rem; margin: 0; }

/* ---------- Bloques del informe ---------- */
.theme-dw .report-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto 4.5rem;
}

.theme-dw .report-block:last-child { margin-bottom: 0; }
.theme-dw .report-block.is-reverse .ddq-shot { order: 2; }

.theme-dw .report-text h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: 1rem;
}

.theme-dw .report-text p { font-size: 1.08rem; }

/* Marco común de las capturas: mismo ancho, borde y sombra */
.theme-dw .ddq-shot {
  position: relative;
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--dw-border);
  border-radius: 18px;
  box-shadow: 0 40px 70px -35px rgba(13, 28, 119, 0.45);
}

.theme-dw .ddq-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.theme-dw .ddq-shot .ddq-shot-tag { top: 20px; right: 20px; }

.theme-dw .ddq-shot-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(143, 139, 255, 0.25), transparent 55%),
    linear-gradient(160deg, var(--dw-lavender-2), var(--dw-lavender));
}

.theme-dw .ddq-shot-placeholder i {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--dw-accent-dark), var(--dw-indigo));
  box-shadow: 0 16px 30px -12px rgba(58, 78, 242, 0.7);
}

.theme-dw .ddq-shot-placeholder span {
  font-weight: 700;
  color: var(--dw-blue-800);
}

/* ---------- Casos de uso ---------- */
.theme-dw .usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.theme-dw .usecase {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--dw-border);
  border-radius: 14px;
}

.theme-dw .usecase:last-child:nth-child(odd) { grid-column: 1 / -1; }

.theme-dw .usecase > i {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--dw-accent-dark), var(--dw-indigo));
}

.theme-dw .usecase h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.theme-dw .usecase p { font-size: 0.95rem; margin: 0; }

/* ---------- Cobertura ---------- */
.theme-dw .sources-table-wrap { max-width: 1000px; margin: 0 auto; overflow-x: auto; }

.theme-dw .sources-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--dw-border);
  border-radius: 14px;
  overflow: hidden;
}

.theme-dw .sources-table th,
.theme-dw .sources-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--dw-border);
  font-size: 0.95rem;
}

.theme-dw .sources-table th { background: var(--dw-lavender-2); color: var(--dw-blue-800); }
.theme-dw .sources-updated { margin-top: 0.75rem; font-size: 0.85rem; }

/* ---------- Tres formas de contratar ---------- */
.theme-dw .plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.theme-dw .plan-card {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem;
  background: #fff;
  border: 1px solid var(--dw-border);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(13, 28, 119, 0.04);
}

.theme-dw .plan-card.is-featured {
  border: 2px solid var(--dw-indigo);
  box-shadow: 0 30px 60px -30px rgba(58, 78, 242, 0.55);
}

.theme-dw .plan-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--dw-accent-dark), var(--dw-indigo));
}

.theme-dw .plan-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.theme-dw .plan-who { font-weight: 600; color: var(--dw-blue-800); font-size: 0.98rem; margin-bottom: 0.75rem; }
.theme-dw .plan-what { font-size: 0.98rem; margin-bottom: 1.75rem; }
.theme-dw .plan-card .btn { margin-top: auto; }

/* ---------- Autoridad ---------- */
.theme-dw .ddq-authority {
  padding: 5rem 0;
  background: linear-gradient(120deg, var(--dw-navy-900), var(--dw-navy-700));
}

.theme-dw .authority-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 900px;
}

.theme-dw .authority-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--dw-accent-dark), var(--dw-indigo));
}

.theme-dw .ddq-authority h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.theme-dw .ddq-authority h2 strong { color: #fff; }
.theme-dw .ddq-authority p { color: rgba(255, 255, 255, 0.82); }

.theme-dw .authority-link { color: var(--dw-accent); font-weight: 700; }
.theme-dw .authority-link:hover { color: #fff; }

/* ---------- Cierre ---------- */
.theme-dw .ddq-closing {
  padding: 5rem 0;
  background: var(--dw-lavender);
  text-align: center;
}

.theme-dw .ddq-closing--light { background: #fff; }

.theme-dw .closing-inner { max-width: 820px; }
.theme-dw .closing-inner h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.theme-dw .closing-inner .hero-cta { justify-content: center; margin-top: 1.5rem; }

/* ---------- Historia (páginas por comprador) ---------- */
.theme-dw .story-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

.theme-dw .story-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.theme-dw .story-text p { font-size: 1.1rem; }

.theme-dw .story-checks {
  display: grid;
  gap: 0.75rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--dw-border);
  border-radius: 16px;
}

.theme-dw .story-checks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--dw-navy-900);
}

.theme-dw .story-checks i {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, var(--dw-accent-dark), var(--dw-indigo));
}

/* ---------- Formulario corto en Precios / Informe ---------- */
.theme-dw .ddq-quote .cta-alt a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---------- Otros módulos (compacto) ---------- */
.theme-dw .related-modules--compact { padding: 3.5rem 0; }

.theme-dw .related-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.theme-dw .related-title a { font-weight: 800; color: var(--dw-indigo); }

.theme-dw .related-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.theme-dw .related-chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: #fff;
  border: 1px solid var(--dw-border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dw-blue-800);
}

.theme-dw .related-chips a:hover { border-color: var(--dw-violet); }
.theme-dw .related-chips i { color: var(--dw-indigo); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .theme-dw .buyer-grid,
  .theme-dw .plan-grid,
  .theme-dw .steps-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .theme-dw .report-block,
  .theme-dw .story-inner { grid-template-columns: 1fr; gap: 2rem; }
  .theme-dw .report-block.is-reverse .ddq-shot { order: 0; }
}

@media (max-width: 768px) {
  .theme-dw .usecase-grid { grid-template-columns: 1fr; }
  .theme-dw .authority-inner { flex-direction: column; }
  .theme-dw .hero-note a { display: inline-block; margin: 0.5rem 0 0; }
}

.theme-dw .story-link { font-size: 1rem !important; }
.theme-dw .story-link a { color: var(--dw-indigo); font-weight: 700; white-space: nowrap; }
