:root {
  color-scheme: light;
  --kiuu-primary: var(--kiuu-brand-purple-dark);
  --kiuu-primary-deep: var(--kiuu-brand-purple-deep);
  --green: #0f9f6e;
  --amber: #f3b23c;
  --ink: #101828;
  --muted: #5b667a;
  --line: #e7ddfe;
  --soft: #f9f7ff;
  --white: #ffffff;
  --danger: #b42318;
  --success: #067647;
  --shadow: 0 20px 55px rgba(16, 24, 40, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--dg-font-body, "Poppins"), Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--dg-border-default, #E7DDFE);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--dg-radius-control, 12px);
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--kiuu-primary);
  font-size: 18px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--kiuu-primary);
}

.nav-links a[aria-current="page"] {
  color: var(--kiuu-primary);
  font-weight: 800;
}

.button,
button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--dg-radius-button, 14px);
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--kiuu-primary);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: var(--kiuu-primary-deep);
}

.button.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--kiuu-primary);
  color: var(--kiuu-primary);
}

.hero {
  background:
    linear-gradient(120deg, rgba(124, 58, 237, 0.12), rgba(15, 159, 110, 0.09)),
    var(--soft);
}

.hero-inner,
.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  min-height: calc(100vh - 72px);
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--kiuu-brand-primary, #241442);
  font-family: var(--dg-font-display, "Outfit"), Arial, sans-serif;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  margin-top: 14px;
  max-width: 720px;
  font-size: clamp(42px, 6vw, 76px);
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
}

h3 {
  font-size: 20px;
}

p {
  color: var(--muted);
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: 19px;
}

.hero-actions,
.actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--dg-radius-card, 20px);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screen-top {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber);
}

.dot:nth-child(2) {
  background: var(--green);
}

.dot:nth-child(3) {
  background: var(--kiuu-primary);
}

.screen-body {
  padding: 22px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric,
.feature,
.step,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--dg-radius-card-compact, 16px);
  background: var(--white);
}

.metric {
  padding: 16px;
}

.metric strong {
  display: block;
  font-size: 28px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.queue {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.queue-row {
  padding: 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  background: var(--soft);
  font-weight: 700;
}

section {
  padding: 78px 0;
}

.section-heading {
  max-width: 760px;
}

.grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature,
.step,
.faq-item {
  padding: 22px;
}

.feature strong,
.step strong {
  color: var(--kiuu-primary);
}

.band {
  background: var(--soft);
}

.form-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 78px;
}

.form-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  margin-top: 16px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.error-list,
.notice {
  border-radius: 8px;
  padding: 14px 16px;
}

.error-list {
  border: 1px solid rgba(180, 35, 24, 0.25);
  color: var(--danger);
  background: #fff4f2;
}

.notice {
  border: 1px solid rgba(6, 118, 71, 0.25);
  color: var(--success);
  background: #ecfdf3;
}

.legal {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 78px;
}

.legal h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.legal h2 {
  margin-top: 34px;
  font-size: 26px;
}

.faq-list {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner a {
  color: var(--white);
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    padding: 14px 0;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

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

  .footer-inner {
    flex-direction: column;
  }
}

/* Kiuu landing styles */
.mockup-home {
  background: #fff;
}

.mockup-home .dg {
  min-height: 100vh;
  color: #0e1b36;
  background: #fff;
  font-family: "Poppins", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.mockup-home .dg *,
.mockup-home .dg *::before,
.mockup-home .dg *::after {
  box-sizing: border-box;
}

.mockup-home .dg section {
  padding: 0;
  scroll-margin-top: 88px;
}

.dg a {
  text-decoration: none;
}

.dg svg {
  display: block;
}

.dg-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.dg-announcement {
  padding: 9px 16px;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  background: linear-gradient(120deg, #241442 0%, #7c3aed 55%, #8b5cf6 120%);
}

.dg-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--dg-border-default);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.dg-nav {
  width: min(1180px, calc(100% - 48px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.dg-brand img,
.dg-brand-logo {
  height: 60px;
  width: auto;
  max-width: 175px;
  display: block;
  object-fit: contain;
}

.dg-brand svg {
  width: 38px;
  height: 34px;
}

.dg-brand-white {
  color: #fff;
}

.dg-brand-white img,
.dg-brand-white .dg-brand-logo {
  height: 70px;
  width: auto;
  max-width: 175px;
  display: block;
}

.dg-nav-links,
.dg-nav-actions {
  display: flex;
  align-items: center;
}

.dg-nav-links {
  gap: 20px;
}

.dg-nav-links a,
.dg-login {
  color: #46557a;
  font-size: 14px;
  font-weight: 500;
}

.dg-nav-links a:hover,
.dg-nav-links .is-active,
.dg-nav-links a[aria-current="page"],
.dg-login:hover {
  color: #7c3aed;
}

.dg-nav-links .is-active,
.dg-nav-links a[aria-current="page"] {
  font-weight: 700;
}

.dg-nav-links .is-active::after,
.dg-nav-links a[aria-current="page"]::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #8b5cf6);
}

.dg-nav-actions {
  gap: 12px;
}

.dg-login {
  padding: 9px 14px;
  color: #241442;
  font-weight: 600;
  border-radius: 11px;
}

.dg-login:hover {
  background: #f3efff;
}

.dg-mobile-button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: none;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #f3efff;
  color: #241442;
}

.dg-mobile-button:hover {
  background: var(--kiuu-brand-lavender);
}

.dg-mobile-button svg {
  width: 20px;
  height: 20px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.dg-mobile-menu {
  padding: 10px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--dg-border-default);
  background: #fff;
}

.dg-mobile-menu a {
  padding: 11px 8px;
  color: #46557a;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
}

.dg-mobile-menu a:hover {
  color: #7c3aed;
  background: #f9f7ff;
}

.dg-button,
.dg button.dg-button {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  box-shadow: 0 18px 34px -16px rgba(124, 58, 237, 0.75);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dg-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.dg-button-small {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.dg-button-ghost {
  color: #241442;
  border: 1.5px solid #d8ccff;
  background: #fff;
  box-shadow: none;
}

.dg-button-ghost:hover {
  color: #7c3aed;
  border-color: #7c3aed;
  background: #fff;
}

.dg-button-white {
  color: #241442;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
}

.dg-button-white:hover {
  background: #fff;
}

.dg-button-full {
  width: 100%;
}

.dg-page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 80% -8%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(740px 420px at 8% 16%, rgba(124, 58, 237, 0.12), transparent 64%),
    linear-gradient(180deg, #f9f7ff 0%, #fff 100%);
}

.dg-page-hero-grid {
  padding: 72px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 46px;
}

.dg-page-hero h1 {
  max-width: 780px;
  margin-top: 20px;
  font-size: clamp(36px, 4.8vw, 62px);
}

.dg-page-hero p {
  max-width: 740px;
  margin: 20px 0 0;
  color: #46557a;
  font-size: 18px;
  line-height: 1.7;
}

.dg-page-proof {
  padding: 26px;
  border: 1px solid #ece6ff;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px -48px rgba(124, 58, 237, 0.55);
}

.dg-page-proof strong,
.dg-page-proof span {
  display: block;
}

.dg-page-proof strong {
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 26px;
}

.dg-page-proof span {
  margin-top: 4px;
  color: #52617a;
}

.dg-page-proof dl {
  margin: 22px 0 0;
}

.dg-page-proof div {
  padding: 13px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--kiuu-brand-lavender-soft);
}

.dg-page-proof dt,
.dg-page-proof dd {
  margin: 0;
  font-size: 14px;
}

.dg-page-proof dt {
  color: #52617a;
}

.dg-page-proof dd {
  color: #241442;
  font-weight: 800;
  text-align: right;
}

.dg-page-content {
  padding: 58px 0 94px;
}

.dg-page-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.dg-page-toc {
  position: sticky;
  top: 104px;
  padding: 20px;
  border: 1px solid #ece6ff;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 54px -46px rgba(36, 20, 66, 0.5);
}

.dg-page-toc strong {
  display: block;
  margin-bottom: 12px;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
}

.dg-page-toc a {
  display: block;
  padding: 9px 0;
  color: #5b667a;
  border-top: 1px solid var(--kiuu-brand-lavender-soft);
  font-size: 14px;
  line-height: 1.35;
}

.dg-page-toc a:hover {
  color: #7c3aed;
}

.dg-page-main {
  min-width: 0;
}

.dg-page-intro {
  margin: 0 0 34px;
  padding: 24px;
  color: #241442;
  border: 1px solid #e7ddfe;
  border-radius: 20px;
  background: #f9f7ff;
  font-size: 18px;
  line-height: 1.7;
}

.dg-page-section {
  padding: 0;
}

.dg-page-section + .dg-page-section {
  margin-top: 42px;
}

.dg-page-section h2 {
  margin: 0 0 14px;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.12;
}

.dg-page-section h3 {
  margin: 0 0 8px;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 20px;
}

.dg-page-section p {
  margin: 0;
  color: #3f4b63;
  font-size: 17px;
  line-height: 1.82;
}

.dg-page-section p + p {
  margin-top: 16px;
}

.dg-page-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dg-page-tags span {
  padding: 8px 12px;
  color: #241442;
  border: 1px solid #e7ddfe;
  border-radius: 999px;
  background: var(--kiuu-brand-lavender-soft);
  font-size: 13px;
  font-weight: 700;
}

.dg-page-faq article {
  padding: 18px 0;
  border-top: 1px solid #ece6ff;
}

.dg-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1100px 600px at 75% -10%, #f3eeff 0%, #faf8ff 45%, #ffffff 80%);
}

.dg-hero-grid {
  padding: 64px 0 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.dg-hero-copy {
  animation: dgFadeUp 0.6s ease both;
}

.dg-hero-video-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 50px -12px rgba(36, 20, 66, 0.22), 0 0 0 1px rgba(139, 92, 246, 0.2);
  background: #241442;
  line-height: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dg-hero-video-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -12px rgba(124, 58, 237, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.35);
}

.dg-hero-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 624 / 464;
}

.dg-hero-video-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(36, 20, 66, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
  z-index: 2;
}

.dg-hero-video-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
}

.dg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.dg-pill-live {
  color: #087448;
  border: 1px solid #c5ecd3;
  background: #e9faf4;
}

.dg-pill-live span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0fb68a;
}

.dg h1,
.dg h2,
.dg h3 {
  margin: 0;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  letter-spacing: -1px;
}

.dg h1 {
  margin-top: 20px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.4px;
}

.dg h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(120deg, #7c3aed, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
}

.dg-hero-copy p {
  max-width: 520px;
  margin: 22px 0 0;
  color: #46557a;
  font-size: 18px;
  line-height: 1.6;
}

.dg-hero-copy p strong {
  color: #241442;
}

.dg-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.dg-checks {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.dg-checks span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #46557a;
  font-size: 13.5px;
}

.dg-checks span::before,
.dg-benefits li::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  background: url("data:image/svg+xml,%3Csvg width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%230FB68A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dg-hero-art {
  position: relative;
  animation: dgFadeUp 0.8s ease both;
}

.dg-hero-art::before {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.22), transparent);
  filter: blur(10px);
}

.dg-live-card {
  position: relative;
  padding: 26px;
  border: 1px solid #ece6ff;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 40px 80px -40px rgba(124, 58, 237, 0.5);
}

.dg-card-head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dg-card-head div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dg-card-head svg {
  width: 26px;
  height: 23px;
  fill: #7c3aed;
}

.dg-card-head strong {
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 15px;
}

.dg-card-head span {
  padding: 5px 10px;
  color: #0fb68a;
  background: #e9faf4;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.dg-current-turn {
  padding: 24px;
  border-radius: 18px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #241442, #7c3aed);
}

.dg-current-turn span {
  display: block;
  font-size: 12px;
  letter-spacing: 1.5px;
  opacity: 0.8;
}

.dg-current-turn strong {
  display: block;
  margin: 8px 0;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
}

.dg-current-turn small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.dg-turn-details {
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.dg-turn-details div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dg-turn-details div:last-child {
  padding-top: 11px;
  border-top: 1px solid var(--kiuu-brand-lavender-soft);
}

.dg-turn-details dt,
.dg-turn-details dd {
  margin: 0;
  font-size: 13px;
}

.dg-turn-details dt {
  color: #52617a;
}

.dg-turn-details dd {
  color: #241442;
  font-weight: 700;
}

.dg-turn-details div:last-child dd {
  color: #7c3aed;
}

.dg-floating-note {
  position: absolute;
  bottom: -22px;
  left: -22px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #ece6ff;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 40px -22px rgba(36, 20, 66, 0.4);
  animation: dgFloat 4s ease-in-out infinite;
}

.dg-floating-note > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #0fb68a;
  background: #e9faf4;
  font-weight: 800;
}

.dg-floating-note strong,
.dg-floating-note small {
  display: block;
}

.dg-floating-note strong {
  color: #241442;
  font-size: 12px;
}

.dg-floating-note small {
  color: #596983;
  font-size: 11px;
}

.dg-trust-grid {
  padding: 0 0 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.dg-trust-grid div {
  padding: 18px;
  border: 1px solid var(--kiuu-brand-lavender-soft);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.dg-trust-grid strong {
  display: block;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
}

.dg-trust-grid span {
  display: block;
  margin-top: 2px;
  color: #52617a;
  font-size: 12.5px;
}

.dg-section {
  background: #fff;
}

.dg-section > .dg-container {
  padding-top: 72px;
  padding-bottom: 72px;
}

.dg-section-soft {
  background: #f9f7ff;
}

.dg-section-dark {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #241442;
}

.dg-section-dark::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
}

.dg-section-dark .dg-container {
  position: relative;
}

.dg-section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.dg-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.dg-section-heading > span,
.dg-kicker {
  color: #7c3aed;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.dg-section-dark .dg-section-heading > span {
  color: #C4B5FD;
}

.dg-section-heading h2,
.dg-narrow h2,
.dg-signup-grid h2,
.dg-final-cta h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.1;
}

.dg-section-dark h2,
.dg-section-dark h3 {
  color: #fff;
}

.dg-section-heading p,
.dg-narrow p,
.dg-signup-grid p {
  margin: 16px 0 0;
  color: #46557a;
  font-size: 17px;
  line-height: 1.6;
}

.dg-section-dark .dg-section-heading p,
.dg-section-dark article p {
  color: rgba(255, 255, 255, 0.7);
}

.dg-free-grid,
.dg-card-grid,
.dg-store-grid,
.dg-steps-grid,
.dg-sectors-grid,
.dg-footer-grid,
.dg-signup-grid,
.dg-cot-grid {
  display: grid;
  gap: 18px;
}

.dg-free-grid,
.dg-card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.dg-free-grid article,
.dg-card-grid article,
.dg-store-grid article,
.dg-steps-grid article {
  border-radius: 20px;
}

.dg-free-grid article {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.dg-card-grid article {
  padding: 24px;
  border: 1px solid #ece6ff;
  background: #fff;
}

.dg-free-grid h3,
.dg-card-grid h3,
.dg-store-grid h3,
.dg-steps-grid h3 {
  margin: 16px 0 7px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.dg-free-grid p,
.dg-card-grid p,
.dg-store-grid p,
.dg-steps-grid p {
  margin: 0;
  color: #52617a;
  font-size: 13.5px;
  line-height: 1.55;
}

.dg-section-dark .dg-free-grid p {
  color: rgba(255, 255, 255, 0.68);
}

.dg-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 24px;
}

.dg-icon svg,
.dg-store-icon svg,
.dg-cot-app-icon svg,
.dg-floating-note > span svg,
.dg-whatsapp svg {
  display: block;
  flex-shrink: 0;
}

.dg-violet { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.dg-green { background: linear-gradient(135deg, #0fb68a, #4be0b0); }
.dg-purple { background: linear-gradient(135deg, #7c5cfc, #a98bff); }
.dg-navy { background: linear-gradient(135deg, #241442, #7c3aed); }
.dg-lavender { background: linear-gradient(135deg, #8b5cf6, #C4B5FD); }
.dg-orange { background: linear-gradient(135deg, #e8631e, #ff8c4b); }
.dg-purple-text { color: #7c5cfc !important; }
.dg-green-text { color: #087448 !important; }

.dg-store-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dg-store-grid article {
  padding: 22px;
  border: 1px solid #ece6ff;
  background: #fff;
}

.dg-store-grid article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dg-store-grid b {
  padding: 5px 11px;
  border-radius: 999px;
  color: #087448;
  background: #e9faf4;
  font-size: 11.5px;
}

.dg-store-grid .is-premium {
  border-color: #e7dcff;
  background: linear-gradient(150deg, #fbf7ff, #fff);
}

.dg-store-grid .is-whatsapp {
  border-color: #c5ecd3;
  background: linear-gradient(150deg, #f0fbf6, #fff);
}

.dg-store-grid .is-api {
  border-color: #ddd6fe;
  background: linear-gradient(150deg, #f5f3ff, #fff);
}

.dg-store-grid .is-premium b {
  color: #7c5cfc;
  background: #f3eeff;
}

.dg-store-grid .is-api b {
  color: #7c3aed;
  background: #f5f3ff;
}

.dg-store-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-weight: 800;
}

.dg-store-violet { color: #7c3aed; background: #f5f3ff; }
.dg-store-green { color: #0fb68a; background: #e9faf4; }
.dg-store-lavender { color: #8b5cf6; background: #f5f3ff; }
.dg-store-orange { color: #e8631e; background: #fff1e8; }
.dg-store-purple { color: #7c5cfc; background: #f3eeff; }

.dg-store-cta {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: linear-gradient(135deg, #241442, #7c3aed) !important;
}

.dg-store-cta h3 {
  margin: 0;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.dg-store-cta p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.75);
}

.dg-store-cta a {
  padding: 13px 22px;
  border-radius: 12px;
  color: #241442;
  background: #fff;
  font-size: 14.5px;
  font-weight: 700;
}

.dg-quote-builder-section {
  background: linear-gradient(180deg, #f9f7ff 0%, #f3efff 100%);
}

.dg-cot-grid {
  grid-template-columns: 1.55fr 0.9fr;
  align-items: start;
  gap: 26px;
}

.dg-cot-main,
.dg-cot-groups {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.dg-cot-group-head {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dg-cot-group-head h3 {
  margin: 0;
  color: #241442;
  font-size: 18px;
  font-weight: 700;
}

.dg-cot-group-head span {
  flex: 1;
  height: 1px;
  background: #ece6ff;
}

.dg-cot-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 14px;
}

.dg-cot-app {
  padding: 16px;
  display: flex;
  flex-direction: column;
  border: 1.5px solid #ece6ff;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px -28px rgba(36, 20, 66, 0.5);
}

.dg-cot-app.is-selected {
  border-color: #c4b5fd;
  background: #f9f7ff;
}

.dg-cot-app-top,
.dg-cot-app-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dg-cot-app-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
}

.dg-cot-app-icon.dg-store-violet { color: #7c3aed; background: #f5f3ff; }
.dg-cot-app-icon.dg-store-green { color: #0fb68a; background: #e9faf4; }
.dg-cot-app-icon.dg-store-lavender { color: #8b5cf6; background: #f5f3ff; }
.dg-cot-app-icon.dg-store-orange { color: #e8631e; background: #fff1e8; }
.dg-cot-app-icon.dg-store-purple { color: #7c5cfc; background: #f3eeff; }

.dg-summary-dot.dg-store-violet { background: #7c3aed; }
.dg-summary-dot.dg-store-green { background: #0fb68a; }
.dg-summary-dot.dg-store-lavender { background: #8b5cf6; }
.dg-summary-dot.dg-store-orange { background: #e8631e; }
.dg-summary-dot.dg-store-purple { background: #7c5cfc; }


.dg-cot-price {
  font-size: 12.5px;
  font-weight: 700;
}

.dg-cot-price.is-free {
  color: #087448;
}

.dg-cot-price.is-paid {
  color: #7c5cfc;
}

.dg-cot-app h4 {
  margin: 13px 0 5px;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.dg-cot-app p {
  min-height: 38px;
  margin: 0 0 14px;
  color: #52617a;
  font-size: 12.5px;
  line-height: 1.5;
}

.dg-qty {
  padding: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--dg-border-default);
  border-radius: 10px;
  background: #f9f7ff;
}

.dg-qty button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  color: #7c3aed;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(36, 20, 66, 0.08);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.dg-qty span {
  min-width: 22px;
  text-align: center;
  color: #241442;
  font-size: 13px;
  font-weight: 700;
}

.dg-cot-toggle {
  min-height: 0;
  padding: 8px 12px;
  border: 1px solid #7c3aed;
  border-radius: 10px;
  color: #fff;
  background: #7c3aed;
  font-size: 12.5px;
  font-weight: 700;
}

.dg-cot-toggle.is-selected {
  color: #087448;
  border-color: #c5ecd3;
  background: #e9faf4;
}

.dg-cot-notes {
  padding: 22px;
  border: 1px solid #ece6ff;
  border-radius: 18px;
  background: #fff;
}

.dg-cot-notes h3 {
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: 0;
}

.dg-cot-notes p {
  margin: 0 0 14px;
  color: #596983;
  font-size: 12.5px;
}

.dg-cot-notes label,
.dg-form-grid label {
  display: block;
  color: #46557a;
  font-size: 12.5px;
  font-weight: 600;
}

.dg-cot-notes label + textarea,
.dg-form-grid input,
.dg-form-grid select {
  margin-top: 7px;
}

.dg-cot-notes textarea,
.dg-form-grid input,
.dg-form-grid select {
  width: 100%;
  border: 1px solid #e7ddfe;
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  color: #0e1b36;
  background: #fff;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 14px;
}

.dg-cot-notes textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.55;
}

.dg-cot-notes label:not(:first-of-type) {
  margin-top: 14px;
}

.dg-cot-summary {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border: 1px solid #ece6ff;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 60px -40px rgba(36, 20, 66, 0.5);
}

.dg-cot-summary-head {
  padding: 20px 22px;
  color: #fff;
  background: linear-gradient(135deg, #241442, #7c3aed);
}

.dg-cot-summary-head span {
  display: block;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.78;
}

.dg-cot-summary-head strong {
  display: block;
  margin-top: 4px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.dg-cot-summary-body {
  padding: 18px 22px;
}

.dg-tax-toggle-wrap {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1.5px dashed var(--dg-border-strong);
  border-radius: 12px;
  background: #f9f7ff;
}

.dg-tax-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #241442;
  font-size: 12.5px;
  font-weight: 600;
  user-select: none;
}

.dg-tax-toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #7c3aed;
  cursor: pointer;
}


#quoteSummary {
  max-height: 280px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.dg-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dg-summary-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 3px;
}

.dg-summary-copy {
  min-width: 0;
  flex: 1;
}

.dg-summary-copy strong {
  display: block;
  color: #241442;
  font-size: 13px;
  line-height: 1.25;
}

.dg-summary-copy span {
  color: #596983;
  font-size: 11.5px;
}

.dg-summary-price {
  color: #241442;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.dg-summary-remove {
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #e5484d;
  background: #fdeef0;
}

.dg-cot-totals {
  margin-top: 14px;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--kiuu-brand-lavender-soft);
}

.dg-cot-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #46557a;
  font-size: 13px;
}

.dg-cot-totals strong {
  color: #241442;
}

.dg-cot-totals .is-total {
  padding-top: 8px;
  border-top: 1px dashed var(--dg-border-default);
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.dg-cot-totals .is-total strong {
  color: #7c3aed;
  font-size: 18px;
  font-weight: 800;
}

.dg-cot-totals small {
  color: #596983;
  text-align: right;
  font-size: 11px;
}

.dg-cot-summary .dg-button-full {
  margin-top: 16px;
}

/* --- Recarga de mensajería (paquetes SMS / WhatsApp) --------------------- */
.dg-cot-pkg {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--dg-border-default);
}
.dg-cot-pkg-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #241442;
  margin-bottom: 8px;
}
.dg-cot-pkg-label em {
  font-style: normal;
  font-weight: 500;
  color: #596983;
}
.dg-cot-pkg-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dg-cot-pkg-opt {
  border: 1px solid #d8ccff;
  background: #fff;
  color: #46557a;
  border-radius: 999px;
  padding: 6px 12px;
  font: 600 12px "Poppins", Arial, sans-serif;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.dg-cot-pkg-opt:hover {
  border-color: #7c3aed;
}
.dg-cot-pkg-opt.is-active {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  border-color: transparent;
  color: #fff;
}

.dg-summary-item.is-onetime .dg-summary-copy span {
  color: #087448;
}

.dg-cot-onetime {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f1f8f5;
  border: 1px solid #cdeede;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dg-cot-onetime-head {
  font: 700 12px "Outfit", Arial, sans-serif;
  letter-spacing: 0.02em;
  color: #087448;
  text-transform: uppercase;
}
.dg-cot-onetime-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #46557a;
}
.dg-cot-onetime-row strong { color: #241442; }
.dg-cot-onetime-row.is-total {
  padding-top: 6px;
  border-top: 1px dashed #bfe6d2;
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 700;
  color: #241442;
}
.dg-cot-onetime-row.is-total strong { color: #087448; font-size: 16px; font-weight: 800; }
.dg-cot-onetime small { color: #596983; font-size: 11px; }

.dg-steps-grid {
  grid-template-columns: repeat(4, 1fr);
}

.dg-steps-grid article strong {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  font-family: "Outfit", Arial, sans-serif;
}

.dg-sectors-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.dg-sectors-grid article {
  padding: 20px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.dg-sectors-grid span {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
}

.dg-sectors-grid strong {
  color: #fff;
  font-size: 13.5px;
}

.dg-narrow {
  max-width: 920px;
}

.dg-narrow h2 {
  margin-top: 0;
}

.dg-narrow p {
  line-height: 1.75;
}

.dg-narrow strong {
  color: #241442;
}

.dg-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dg-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  color: #7c3aed;
  background: #f5f3ff;
  font-size: 13px;
  font-weight: 500;
}

.dg-faq-wrap {
  max-width: 820px;
}

.dg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dg-faq-list article {
  overflow: hidden;
  border: 1px solid #ece6ff;
  border-radius: 16px;
  background: #fff;
}

.dg-faq-list button {
  width: 100%;
  min-height: 0;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  color: #241442;
  background: none;
  text-align: left;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
}

.dg-faq-list button span {
  color: #7c3aed;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  transition: transform 0.25s ease;
}

.dg-faq-list article.is-open button span {
  transform: rotate(45deg);
}

.dg-faq-list article > div {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.dg-faq-list article.is-open > div {
  max-height: 260px;
  opacity: 1;
}

.dg-faq-list p {
  margin: 0;
  padding: 0 22px 20px;
  color: #46557a;
  font-size: 14.5px;
  line-height: 1.65;
}

.dg-signup-grid {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 40px;
}

.dg-benefits {
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.dg-benefits li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #241442;
  font-size: 14px;
  font-weight: 500;
}

.dg-signup-card,
.dg-modal-card {
  padding: 30px;
  border: 1px solid #ece6ff;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 60px -38px rgba(36, 20, 66, 0.5);
}

.dg-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.dg-form-grid .is-full {
  grid-column: 1 / -1;
}

.dg-form-error {
  margin: 14px 0 0;
  padding: 11px 13px;
  border: 1px solid #f6d4d6;
  border-radius: 11px;
  color: #c0353a !important;
  background: #fdeced;
  font-size: 13px !important;
  font-weight: 500;
}

.dg-signup-card .dg-button {
  margin-top: 18px;
}

.dg-signup-card small {
  display: block;
  margin-top: 14px;
  color: #596983;
  text-align: center;
  font-size: 12px;
}

.dg-signup-success {
  text-align: center;
}

.dg-signup-success > span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0fb68a, #4be0b0);
  font-size: 34px;
  font-weight: 800;
}

.dg-signup-success h3 {
  margin: 0;
  font-size: 24px;
}

.dg-final-cta {
  padding: 72px 0 !important;
  color: #fff;
  background: linear-gradient(135deg, #241442 0%, #7c3aed 60%, #8b5cf6 130%);
  text-align: center;
}

.dg-final-cta h2 {
  max-width: 760px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
}

.dg-final-cta p {
  max-width: 600px;
  margin: 18px auto 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.6;
}

.dg-footer {
  color: rgba(255, 255, 255, 0.7);
  background: var(--kiuu-brand-primary);
}

.dg-footer .dg-container {
  padding-top: 54px;
  padding-bottom: 30px;
}

.dg-footer-grid {
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 28px;
}
.dg-footer-nit {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.dg-footer-grid p {
  max-width: 300px;
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
}

.dg-footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.dg-footer-grid strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.dg-footer a {
  color: rgba(255, 255, 255, 0.7);
}

.dg-footer a:hover {
  color: #fff;
}

.dg-footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12.5px;
}

.dg-footer-bottom div {
  display: flex;
  gap: 20px;
}

.dg-footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.dg-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0fb68a;
  box-shadow: 0 14px 30px -8px rgba(15, 182, 138, 0.6);
  font-weight: 800;
  animation: dgPulse 2.6s infinite;
}

.dg-modal,
.dg-quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
}

.dg-modal {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 23, 54, 0.5);
  backdrop-filter: blur(4px);
}

.dg-modal-card {
  width: min(520px, 100%);
  max-height: 92vh;
  padding: 0;
  overflow: auto;
  animation: dgFadeUp 0.35s ease both;
}

.dg-modal-head {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  background: linear-gradient(135deg, #241442, #7c3aed);
}

.dg-modal-head strong {
  font-family: "Outfit", Arial, sans-serif;
  font-size: 19px;
}

.dg-modal-head button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 24px;
}

.dg-modal-body {
  padding: 24px 26px 26px;
}

.dg-modal-actions {
  margin-top: 20px;
  display: flex;
  gap: 11px;
}

.dg-modal-actions .dg-button {
  flex: 1;
}

.dg-quote-overlay {
  z-index: 150;
  overflow-y: auto;
  padding-bottom: 60px;
  background: #41506b;
}

/* --- Selector de plataforma (v1/v2) al abrir "Iniciar sesión" --- */
.dg-login-modal-card {
  animation: dgModalPop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dg-login-modal-lead {
  margin: 0 0 20px;
  color: #46557a;
  font-size: 15px;
  line-height: 1.6;
}

.dg-login-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dg-login-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid #ece6ff;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  animation: dgLoginOptionIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--dg-stagger, 0) * 90ms + 80ms);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.dg-login-option:hover,
.dg-login-option:focus-visible {
  transform: translateY(-3px);
  border-color: #c9b8ff;
  box-shadow: 0 20px 40px -24px rgba(124, 58, 237, 0.55);
  background: #fbfaff;
}

.dg-login-option-primary {
  border-color: #ddd0ff;
  background: linear-gradient(180deg, #faf8ff 0%, #fff 100%);
  box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.28);
  animation: dgLoginOptionIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both, dgLoginGlow 2.6s ease-in-out 0.6s infinite;
}

.dg-login-option-primary:hover,
.dg-login-option-primary:focus-visible {
  border-color: #a78bfa;
  background: linear-gradient(180deg, #f5f1ff 0%, #fff 100%);
}

.dg-login-option-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #7c3aed;
  background: #f3efff;
  transition: transform 0.25s ease;
}

.dg-login-option-primary .dg-login-option-icon {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.dg-login-option:hover .dg-login-option-icon {
  transform: scale(1.08) rotate(-4deg);
}

.dg-login-option-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dg-login-option-body strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 16px;
}

.dg-login-option-body small {
  color: #596983;
  font-size: 13px;
  line-height: 1.5;
}

.dg-login-option-arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #a394d6;
  transition: transform 0.22s ease, color 0.22s ease;
}

.dg-login-option-arrow svg {
  width: 100%;
  height: 100%;
}

.dg-login-option:hover .dg-login-option-arrow {
  transform: translateX(4px);
  color: #7c3aed;
}

.dg-login-modal-footer {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13.5px;
}

@keyframes dgModalPop {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes dgLoginGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.28); }
  50% { box-shadow: 0 0 0 8px rgba(124, 58, 237, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .dg-login-modal-card,
  .dg-login-option {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.dg-quote-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(10, 23, 54, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dg-quote-bar button {
  min-height: 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
  font-weight: 700;
}

.dg-quote-bar button:last-child {
  border: 0;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.dg-quote-doc {
  max-width: 820px;
  margin: 26px auto;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.5);
  color: #1f2937;
  font-family: "Poppins", Arial, sans-serif;
}

.dg-quote-doc > header {
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background: #241442;
}

.dg-quote-doc > header img {
  height: 42px;
  width: auto;
}

.dg-quote-doc > header div {
  text-align: right;
}

.dg-quote-doc > header span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.7;
}

.dg-quote-doc > header strong {
  display: block;
  margin-top: 4px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.dg-quote-doc > header small {
  display: block;
  margin-top: 3px;
  opacity: 0.75;
}

.dg-doc-body {
  padding: 30px 40px 36px;
}

.dg-doc-meta,
.dg-doc-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dg-doc-meta {
  margin-bottom: 24px;
}

.dg-doc-meta > div,
.dg-quote-doc section,
.dg-doc-two > div {
  border: 1px solid var(--dg-border-strong);
  border-radius: 10px;
  background: var(--kiuu-brand-lavender-soft);
}

.dg-doc-meta > div {
  padding: 14px 18px;
  background: #f5f3ff;
}

.dg-doc-meta span {
  display: block;
  color: var(--kiuu-brand-primary);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dg-doc-meta strong {
  display: block;
  margin-top: 5px;
  color: var(--kiuu-brand-primary);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 16px;
}

.dg-doc-meta small {
  display: block;
  margin-top: 3px;
  color: #46557a;
  font-size: 12px;
}

.dg-quote-doc section {
  margin-bottom: 22px;
  padding: 16px 20px;
}

.dg-quote-doc h2 {
  margin: 0 0 10px;
  color: var(--kiuu-brand-primary);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dg-quote-doc h3 {
  margin: 0 0 6px;
  color: var(--kiuu-brand-primary);
  font-size: 11px;
}

.dg-quote-doc p,
.dg-quote-doc li {
  color: #1f2937;
  font-size: 12.5px;
  line-height: 1.65;
}

.dg-quote-doc table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ccd7e5;
  font-size: 11.5px;
}

.dg-quote-doc th {
  padding: 9px 11px;
  color: #fff;
  background: var(--kiuu-brand-primary);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.dg-quote-doc th:not(:first-child),
.dg-quote-doc td:not(:first-child) {
  text-align: right;
}

.dg-quote-doc td {
  padding: 9px 11px;
  border-top: 1px solid var(--dg-border-default);
}

.dg-doc-total {
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--kiuu-brand-primary);
  border-radius: 10px;
  background: var(--kiuu-brand-lavender-soft);
}

.dg-doc-total div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.dg-doc-total div:nth-child(3) {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--dg-border-strong);
}

.dg-doc-total div:nth-child(3) strong {
  color: var(--kiuu-brand-primary);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 17px;
}

.dg-doc-two > div {
  padding: 13px 16px;
  background: var(--kiuu-bg-surface);
}

.dg-quote-doc > footer {
  padding: 24px 40px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e7ddfe;
  background: var(--kiuu-bg-surface);
}

.dg-quote-doc > footer span {
  display: block;
  color: #596983;
  font-size: 11px;
  line-height: 1.6;
}

.dg-quote-doc > footer img {
  height: 42px;
}

[hidden] {
  display: none !important;
}

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

@keyframes dgFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes dgPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 182, 138, 0.5); }
  50% { box-shadow: 0 0 0 14px rgba(15, 182, 138, 0); }
}

@media print {
  @page { margin: 24mm 12mm 22mm; }
  html,
  body {
    background: #fff !important;
  }
  .dg > *:not(.dg-quote-overlay) {
    display: none !important;
  }
  .dg-quote-overlay {
    position: static !important;
    inset: auto !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }
  .dg-quote-bar {
    display: none !important;
  }
  .dg-quote-doc {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

@media (max-width: 900px) {
  .dg-container,
  .dg-nav {
    width: min(100% - 32px, 1180px);
  }

  .dg-hero-grid,
  .dg-signup-grid,
  .dg-cot-grid,
  .dg-page-hero-grid,
  .dg-page-layout {
    grid-template-columns: 1fr;
  }

  .dg-hero-art {
    max-width: 420px;
  }

  .dg-free-grid,
  .dg-card-grid,
  .dg-store-grid,
  .dg-steps-grid,
  .dg-sectors-grid,
  .dg-trust-grid,
  .dg-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dg-store-cta {
    grid-column: span 2;
  }

  [data-dg-desktop-nav] {
    display: none !important;
  }

  /* En móvil el header es: logo + CTA compacto ("Crear cuenta", sin la
     palabra "gratis" ni flecha) + botón de menú. */
  .dg-nav-actions {
    gap: 8px;
  }

  .dg-nav-cta.dg-button {
    padding: 8px 13px;
    font-size: 13px;
    border-radius: 10px;
    box-shadow: none;
    white-space: nowrap;
  }

  .dg .dg-nav-cta-extra {
    display: none;
  }

  /* Marca más compacta para dejar sitio al CTA + menú. */
  .dg-brand {
    font-size: 18px;
  }

  .dg-brand svg {
    width: 32px;
    height: 29px;
  }

  .dg-header .dg-brand-logo {
    height: 42px;
  }

  .dg-mobile-button {
    display: grid;
  }

  .dg-cot-summary {
    position: static;
  }

  .dg-page-toc {
    position: static;
  }
}

@media (max-width: 360px) {
  .dg-nav-actions {
    gap: 6px;
  }

  .dg-nav-cta.dg-button {
    padding: 8px 10px;
    font-size: 12.5px;
  }
}

@media (max-width: 560px) {
  .dg-free-grid,
  .dg-card-grid,
  .dg-store-grid,
  .dg-steps-grid,
  .dg-footer-grid,
  .dg-form-grid,
  .dg-doc-meta,
  .dg-doc-two {
    grid-template-columns: 1fr;
  }

  .dg-sectors-grid,
  .dg-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dg-store-cta {
    grid-column: span 1;
  }

  .dg-floating-note {
    left: 10px;
  }

  .dg-footer-bottom,
  .dg-quote-doc > header,
  .dg-quote-doc > footer,
  .dg-quote-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dg-quote-doc > header div {
    text-align: left;
  }

  .dg-doc-body,
  .dg-quote-doc > header,
  .dg-quote-doc > footer {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* Blog */
.dg-blog {
  min-height: 100vh;
  background: #fff;
}

.blog-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.blog-narrow {
  width: min(850px, calc(100% - 32px));
}

.blog-hero,
.blog-post-header {
  position: relative;
  overflow: hidden;
  padding: 78px 0 70px;
  background:
    radial-gradient(820px 420px at 82% 0%, rgba(139, 92, 246, 0.18), transparent 58%),
    radial-gradient(720px 420px at 10% 20%, rgba(124, 58, 237, 0.12), transparent 62%),
    linear-gradient(180deg, #f9f7ff 0%, #fff 100%);
}

.blog-hero::after,
.blog-post-header::after {
  content: "";
  position: absolute;
  right: max(18px, calc((100vw - 1120px) / 2));
  bottom: -92px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.08), transparent);
}

.blog-hero .blog-container,
.blog-post-header .blog-container {
  position: relative;
  z-index: 1;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 40px;
}

.blog-hero-panel {
  padding: 24px;
  border: 1px solid #e7ddfe;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 70px -48px rgba(124, 58, 237, 0.65);
}

.blog-hero-panel strong {
  display: block;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 58px;
  line-height: 1;
}

.blog-hero-panel span {
  display: block;
  margin-top: 8px;
  color: #7c3aed;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.blog-hero-panel p {
  margin-top: 14px;
  color: #46557a;
  font-size: 15px;
  line-height: 1.65;
}

.blog-kicker,
.blog-back,
.blog-card-meta span,
.blog-featured span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.blog-kicker,
.blog-featured span {
  padding: 7px 12px;
  border: 1px solid #e7ddfe;
  border-radius: 999px;
  background: var(--kiuu-brand-lavender-soft);
}

.blog-back {
  gap: 8px;
  text-decoration: none;
}

.blog-back::before {
  content: "<";
  font-size: 14px;
}

.blog-hero h1,
.blog-post-header h1 {
  max-width: 860px;
  margin: 18px 0 0;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -1.4px;
}

.blog-hero p,
.blog-post-header p {
  max-width: 770px;
  margin: 20px 0 0;
  color: #46557a;
  font-size: 18px;
  line-height: 1.7;
}

.blog-list-section {
  padding: 46px 0 92px;
}

.blog-featured {
  margin-bottom: 26px;
  padding: 28px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 28px;
  border: 1px solid #ece6ff;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(139, 92, 246, 0.06)),
    #fff;
  box-shadow: 0 28px 70px -48px rgba(124, 58, 237, 0.55);
}

.blog-featured h2 {
  margin-top: 14px;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.blog-featured p {
  margin: 0;
  color: #46557a;
  font-size: 16px;
  line-height: 1.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.blog-category-nav {
  margin: 0 0 28px;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid #ece6ff;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 58px -50px rgba(36, 20, 66, 0.5);
}

.blog-category-nav a {
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #241442;
  border: 1px solid var(--dg-border-default);
  border-radius: 999px;
  background: #f9f7ff;
  font-size: 13px;
  font-weight: 700;
}

.blog-category-nav a:hover {
  color: #7c3aed;
  border-color: #ddd6fe;
}

.blog-category-nav span {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  color: #7c3aed;
  border-radius: 999px;
  background: var(--kiuu-brand-lavender-soft);
  font-size: 12px;
}

.blog-editorial-card {
  margin-bottom: 36px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(440px 230px at 88% 15%, rgba(139, 92, 246, 0.42), transparent 62%),
    linear-gradient(135deg, #241442, #7c3aed);
  box-shadow: 0 32px 80px -48px rgba(36, 20, 66, 0.8);
}

.blog-editorial-card span {
  color: var(--kiuu-brand-lavender);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.blog-editorial-card h2 {
  max-width: 760px;
  margin: 10px 0 0;
  color: #fff;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
}

.blog-editorial-card p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.blog-category-sections {
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.blog-category-section {
  padding: 0;
  scroll-margin-top: 110px;
}

.blog-category-section > header {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.blog-category-section > header span {
  color: #7c3aed;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.blog-category-section > header h2 {
  margin: 6px 0 0;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}

.blog-category-section > header a {
  color: #52617a;
  font-size: 13px;
  font-weight: 700;
}

.blog-card {
  min-height: 315px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid #ece6ff;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 58px -45px rgba(36, 20, 66, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--kiuu-brand-lavender);
  box-shadow: 0 32px 76px -48px rgba(124, 58, 237, 0.6);
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #596983;
  font-size: 13px;
}

.blog-card-meta time,
.blog-card-meta > span:not(:first-child) {
  color: #596983;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.blog-card h2 {
  margin: 15px 0 0;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.5px;
}

.blog-card h2 a {
  text-decoration: none;
}

.blog-card p {
  margin: 14px 0 0;
  color: #5b667a;
  line-height: 1.65;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #596983;
  font-size: 14px;
}

.blog-card-footer a {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 800;
}

.blog-card-footer a::after {
  content: " ->";
}

.blog-post-header {
  padding-bottom: 58px;
}

.blog-post-header .blog-card-meta {
  margin-top: 18px;
}

.blog-content {
  padding: 60px 0 94px;
}

.blog-content section {
  padding: 0;
}

.blog-content section + section {
  margin-top: 42px;
}

.blog-content h2 {
  margin: 0 0 14px;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.6px;
}

.blog-content p,
.blog-content li {
  color: #3f4b63;
  font-size: 17px;
  line-height: 1.82;
}

.blog-content p {
  margin: 0;
}

.blog-content p + p {
  margin-top: 16px;
}

.blog-content ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.blog-content li {
  position: relative;
  padding-left: 30px;
}

.blog-content li + li {
  margin-top: 10px;
}

.blog-content li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #e9faf4;
  box-shadow: inset 0 0 0 4px #0fb68a;
}

.blog-cta {
  margin: 52px 0;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(420px 220px at 86% 20%, rgba(139, 92, 246, 0.42), transparent 62%),
    linear-gradient(135deg, #241442, #7c3aed);
  box-shadow: 0 28px 70px -38px rgba(36, 20, 66, 0.78);
}

.blog-cta span {
  color: var(--kiuu-brand-lavender);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.blog-cta h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(25px, 3vw, 34px);
}

.blog-cta p {
  max-width: 560px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.65;
}

.blog-cta .dg-button {
  flex: 0 0 auto;
}

.blog-related {
  margin-top: 54px;
  padding: 0;
}

.blog-related > h2 {
  margin-bottom: 18px;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.blog-related-grid a {
  min-height: 130px;
  padding: 18px;
  display: block;
  border: 1px solid #ece6ff;
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 20px 50px -44px rgba(36, 20, 66, 0.5);
}

.blog-related-grid a:hover {
  border-color: var(--kiuu-brand-lavender);
}

.blog-related-grid span {
  color: #7c3aed;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-related-grid strong {
  display: block;
  margin-top: 8px;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .blog-featured,
  .blog-hero-grid,
  .blog-editorial-card,
  .blog-grid,
  .blog-related-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    min-height: 0;
  }

  .blog-hero-panel {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  .blog-hero,
  .blog-post-header {
    padding: 56px 0 50px;
  }

  .blog-list-section,
  .blog-content {
    padding-bottom: 68px;
  }

  .blog-featured,
  .blog-editorial-card,
  .blog-card,
  .blog-cta {
    border-radius: 18px;
  }

  .blog-featured,
  .blog-editorial-card {
    padding: 22px;
  }

  .blog-category-section > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-cta .dg-button {
    width: 100%;
  }
}

/* ==========================================================================
   Nuevas Secciones Comerciales: Registro, Precios, Demo & Empresa
   ========================================================================== */

/* Subdominio addon & Form Controls */
.dg-input-addon-group {
  display: flex;
  align-items: center;
}

.dg-input-addon-group .dg-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.dg-input-addon {
  padding: 10px 14px;
  background: var(--kiuu-brand-lavender-soft);
  border: 1px solid #d0dbe9;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  color: #7c3aed;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.dg-form-help {
  display: block;
  margin-top: 5px;
  color: #6b7c96;
  font-size: 12px;
}

.dg-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1e293b;
  cursor: pointer;
}

.dg-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #7c3aed;
  cursor: pointer;
}

/* Form Alerts & Dividers */
.dg-alert {
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
}

.dg-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.dg-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.dg-alert-icon {
  flex-shrink: 0;
}

.dg-divider {
  border: 0;
  border-top: 1px solid #a7f3d0;
  margin: 16px 0;
}

.dg-step-list {
  padding-left: 20px;
  margin: 12px 0;
  line-height: 1.6;
}

/* Sidebar & Onboarding Features */
.dg-onboarding-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dg-feature-check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dg-feature-check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.5;
}

.dg-feature-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: 900;
}

.dg-card-accent {
  background: linear-gradient(135deg, var(--kiuu-brand-lavender-soft) 0%, var(--dg-border-strong) 100%);
  border: 1px solid var(--dg-border-strong);
}

/* Pricing Page & Toggle Switcher */
.dg-pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.dg-toggle-label {
  font-weight: 700;
  font-size: 15px;
  color: #1e293b;
}

.dg-badge-discount {
  background: #10b981;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
}

.dg-pricing-toggle {
  width: 56px;
  height: 30px;
  background: #cbd5e1;
  border-radius: 30px;
  border: none;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.dg-pricing-toggle.is-annual,
.dg-pricing-toggle.is-usd {
  background: #7c3aed;
}

.dg-pricing-toggle-handle {
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dg-pricing-toggle.is-annual .dg-pricing-toggle-handle,
.dg-pricing-toggle.is-usd .dg-pricing-toggle-handle {
  transform: translateX(26px);
}

/* Pricing Cards */
.dg-pricing-cards {
  align-items: stretch;
}

.dg-pricing-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dg-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.15);
}

.dg-pricing-popular {
  border: 2px solid #7c3aed;
  box-shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.25);
}

.dg-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #7c3aed;
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dg-price-tag {
  margin: 20px 0 10px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.dg-currency {
  font-size: 24px;
  font-weight: 700;
  color: #7c3aed;
}

.dg-amount {
  font-size: 48px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.dg-amount-custom {
  font-size: 32px;
  font-weight: 800;
  color: #7c3aed;
}

.dg-period {
  color: #64748b;
  font-size: 15px;
}

.dg-billing-note {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 20px;
}

.dg-pricing-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dg-pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #334155;
}

.dg-pricing-features li.dg-disabled {
  color: #94a3b8;
  text-decoration: line-through;
}

.dg-pricing-features svg {
  color: #10b981;
  flex-shrink: 0;
}

.dg-pricing-features li.dg-disabled svg {
  color: #cbd5e1;
}

/* Calculator & Matrix Table */
.dg-calculator-box {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
}

.dg-range {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  accent-color: #7c3aed;
  cursor: pointer;
}

.dg-calc-result-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 28px;
  border-radius: 16px;
  text-align: center;
}

.dg-calc-price {
  font-size: 42px;
  font-weight: 900;
  color: var(--kiuu-brand-lavender);
  margin: 10px 0 4px;
}

.dg-calc-price small {
  font-size: 16px;
  color: #94a3b8;
}

.dg-calc-cop {
  display: block;
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 16px;
}

.dg-calc-plan-name {
  color: #e2e8f0;
  margin-bottom: 20px;
}

.dg-table-wrapper {
  overflow-x: auto;
  margin-top: 24px;
}

.dg-comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dg-comparison-table th,
.dg-comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.dg-comparison-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
  font-size: 15px;
}

/* Stats and Channels */
.dg-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.dg-stat-item {
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.dg-stat-value {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: #7c3aed;
}

.dg-stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.dg-support-channel-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.dg-channel-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 18px;
  border-radius: 14px;
}

.dg-channel-item p {
  color: #64748b;
  font-size: 13px;
  margin: 4px 0 12px;
}

.dg-link-arrow {
  display: inline-block;
  margin-top: 12px;
  color: #7c3aed;
  font-weight: 700;
  text-decoration: none;
}

.dg-link-arrow:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
/* ==========================================================================
   Modelo de Venta por Selección de Apps Estilo Odoo
   ========================================================================== */
.dg-odoo-banner {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #6ee7b7;
  padding: 24px;
  border-radius: 18px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.dg-odoo-badge {
  background: #059669;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.dg-grid-cotizacion {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.dg-sticky {
  position: sticky;
  top: 90px;
}

.dg-card-summary {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.08);
}

.dg-badge-sub {
  display: inline-block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
  font-weight: 600;
}

.dg-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 18px;
  padding-right: 4px;
}

.dg-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 13px;
}

.dg-summary-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dg-summary-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dg-summary-copy strong {
  font-size: 13px;
  color: #0f172a;
}

.dg-summary-copy span {
  font-size: 11px;
  color: #64748b;
}

.dg-summary-price {
  font-weight: 700;
  font-size: 13px;
  color: #7c3aed;
}

.dg-summary-remove {
  border: none;
  background: transparent;
  color: #ef4444;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}

/* Odoo Status Box */
.dg-odoo-status-box {
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 18px;
  transition: all 0.3s;
}

.dg-odoo-status-box.is-free {
  background: #ecfdf5;
  border: 1px dashed #10b981;
  color: #065f46;
}

.dg-odoo-status-box.is-paid {
  background: var(--kiuu-brand-lavender-soft);
  border: 1px dashed var(--kiuu-brand-purple-dark);
  color: var(--kiuu-brand-purple-deep);
}

.dg-odoo-status-label {
  display: block;
  font-weight: 800;
  font-size: 14px;
}

.dg-odoo-status-desc {
  font-size: 12px;
  opacity: 0.9;
}

.dg-summary-totals {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dg-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #64748b;
}

.dg-total-main {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.dg-total-main strong {
  color: #7c3aed;
}

.dg-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* PDF Document styles */
.dg-doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.dg-doc-table th,
.dg-doc-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}

/* ==========================================================================
   Estilos del Árbol de Decisiones (Wizard Interactivo Paso a Paso)
   ========================================================================== */
.dg-wizard-progress {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}

.dg-wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
  transition: all 0.3s;
}

.dg-wizard-step.is-active,
.dg-wizard-step.is-completed {
  opacity: 1;
}

.dg-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #0f172a;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

.dg-wizard-step.is-active .dg-step-num {
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.dg-wizard-step.is-completed .dg-step-num {
  background: #10b981;
  color: #fff;
}

.dg-step-title {
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
}

.dg-wizard-box {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.08);
}

.dg-wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.dg-wizard-option-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.dg-wizard-option-card:hover {
  border-color: #7c3aed;
  background: var(--kiuu-brand-lavender-soft);
  transform: translateY(-3px);
}

.dg-wizard-option-card.is-selected {
  border-color: #7c3aed;
  background: var(--kiuu-brand-lavender-soft);
  box-shadow: 0 10px 25px -10px rgba(124, 58, 237, 0.3);
}

.dg-wizard-option-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.dg-wizard-option-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #0f172a;
}

.dg-wizard-option-card p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* Checkbox Grid Step 4 */
.dg-wizard-checkbox-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}

.dg-wizard-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 18px 20px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.dg-wizard-checkbox-card:hover {
  background: #f1f5f9;
}

.dg-wizard-checkbox-card input[type="checkbox"] {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  accent-color: #7c3aed;
}

.dg-wizard-checkbox-card strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 4px;
}

.dg-wizard-checkbox-card p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.dg-wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.dg-button-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .dg-wizard-progress {
    gap: 10px;
  }
  .dg-step-title {
    display: none;
  }
  .dg-wizard-box {
    padding: 24px 16px;
  }
}




/* =====================================================================
   APÉNDICE — primitivas dg-* compartidas por las páginas y el manual
   (reestructuración 2026 sobre el documento comercial)
   ===================================================================== */

/* Botones que faltaban en el sistema dg- */
.dg-button-primary {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  box-shadow: 0 18px 34px -16px rgba(124, 58, 237, 0.75);
}
.dg-button-outline {
  color: #241442;
  border: 1.5px solid #d8ccff;
  background: #fff;
  box-shadow: none;
}
.dg-button-outline:hover {
  color: #7c3aed;
  border-color: #7c3aed;
}
.dg-button-lg {
  padding: 17px 30px;
  font-size: 17px;
}
.dg-button-block {
  width: 100%;
}
.dg-button-ghost-white {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  box-shadow: none;
}
.dg-button-ghost-white:hover {
  background: rgba(255, 255, 255, 0.12);
}
.dg-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

/* Rejillas y tarjetas genéricas */
.dg-grid {
  display: grid;
  gap: 26px;
}
.dg-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dg-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dg-card {
  padding: 26px;
  border: 1px solid #ece6ff;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px -46px rgba(36, 20, 66, 0.5);
}
.dg-card h2,
.dg-card h3 {
  font-family: "Outfit", Arial, sans-serif;
  color: #241442;
  margin: 0 0 10px;
}
.dg-card p {
  color: #46557a;
  line-height: 1.65;
  margin: 0 0 10px;
}
.dg-card-glow {
  box-shadow: 0 40px 90px -50px rgba(124, 58, 237, 0.6);
  border-color: #e7ddfe;
}

.dg-card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Tipografía auxiliar */
.dg-lead {
  color: #46557a;
  font-size: 18px;
  line-height: 1.7;
  margin: 18px 0 0;
  max-width: 720px;
}
.dg-text-muted {
  color: #52617a;
}
.dg-section-header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.dg-section-header h2 {
  font-family: "Outfit", Arial, sans-serif;
  color: #241442;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 12px;
}
.dg-section-header p {
  color: #46557a;
  line-height: 1.65;
}
.dg-section-more {
  margin-top: 28px;
  text-align: center;
  font-weight: 600;
}
.dg-section-more a {
  color: #7c3aed;
}
.dg-section-dark .dg-section-more a {
  color: #8b5cf6;
}

/* Padding del hero de página cuando no usa la rejilla */
.dg-page-hero > .dg-container:not(.dg-page-hero-grid) {
  padding: 66px 0 52px;
}
.dg-page-hero > .dg-container:not(.dg-page-hero-grid) h1 {
  margin-top: 18px;
  font-size: clamp(32px, 4.4vw, 54px);
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
}

/* Badges / CTA / iconos */
.dg-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: #f5f3ff;
  color: #7c3aed;
}
.dg-badge-success {
  background: rgba(15, 182, 138, 0.14);
  color: #0a8f6c;
}
.dg-icon-box {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(139, 92, 246, 0.14));
  color: #7c3aed;
  margin-bottom: 14px;
}
.dg-cta-box {
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(135deg, #241442, #7c3aed);
  color: #fff;
}
.dg-cta-box h2 {
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 10px;
}
.dg-cta-box p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}
.dg-cta-box .dg-button-group {
  justify-content: center;
}
.dg-list-check,
.dg-check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.dg-list-check li,
.dg-check-list li {
  position: relative;
  padding-left: 26px;
  color: #46557a;
  line-height: 1.55;
}
.dg-list-check li::before,
.dg-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0fb68a;
  font-weight: 800;
}
.dg-check-list li a {
  color: #7c3aed;
}

/* Formularios genéricos */
.dg-form-group {
  margin-bottom: 16px;
}
.dg-form-group label,
.dg-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #241442;
}
.dg-textarea,
.dg-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d8ccff;
  border-radius: 12px;
  font: inherit;
  color: #241442;
  background: #fff;
}
.dg-textarea:focus,
.dg-select:focus,
.dg-input:focus {
  outline: none;
  border-color: #7c3aed;
}
.dg-alert {
  padding: 16px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
}
.dg-alert-success {
  background: rgba(15, 182, 138, 0.1);
  border: 1px solid rgba(15, 182, 138, 0.3);
}
.dg-alert-error {
  background: rgba(229, 72, 77, 0.08);
  border: 1px solid rgba(229, 72, 77, 0.3);
}
.dg-alert h3 {
  margin: 0 0 6px;
  color: #241442;
}
.dg-alert ul {
  margin: 8px 0 0 18px;
}

/* Hero: enlace sutil de descarga del documento */
.dg-hero-doc {
  margin: 14px 0 0;
}
.dg-hero-doc a {
  color: #7c3aed;
  font-size: 14px;
  font-weight: 600;
}

/* Chips del núcleo gratuito */
.dg-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
}
.dg-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.dg-chip svg {
  color: #8b5cf6;
}
.dg-price-inline {
  display: block;
  margin-top: 8px;
  color: #7c3aed;
  font-family: "Outfit", Arial, sans-serif;
}

/* Nav: enlace secundario "Documento comercial" */
.dg-nav-secondary {
  color: #46557a;
  font-size: 14px;
  font-weight: 500;
}
.dg-nav-secondary:hover {
  color: #7c3aed;
}

/* Tarjetas de recursos en la home */
.dg-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.dg-resource-card {
  display: block;
  padding: 26px;
  border: 1px solid #ece6ff;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px -46px rgba(36, 20, 66, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dg-resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 34px 70px -44px rgba(124, 58, 237, 0.5);
}
.dg-resource-card h3 {
  font-family: "Outfit", Arial, sans-serif;
  color: #241442;
  margin: 12px 0 8px;
}
.dg-resource-card p {
  color: #46557a;
  line-height: 1.6;
  margin: 0;
}

/* Páginas legales */
.dg-legal h2 {
  font-family: "Outfit", Arial, sans-serif;
  color: #241442;
  margin: 28px 0 8px;
}
.dg-legal h3 {
  font-family: "Outfit", Arial, sans-serif;
  color: #241442;
  font-size: 16px;
  margin: 18px 0 6px;
}
.dg-legal p,
.dg-legal li {
  color: #46557a;
  line-height: 1.7;
}
.dg-legal ul,
.dg-legal ol {
  padding-left: 20px;
  margin: 6px 0 12px;
}
.dg-legal li {
  margin-bottom: 6px;
}
.dg-legal a {
  color: #7c3aed;
}
.dg-legal dl {
  margin: 8px 0 16px;
}
.dg-legal dt {
  color: #241442;
  font-weight: 600;
  margin-top: 10px;
}
.dg-legal dd {
  color: #46557a;
  line-height: 1.7;
  margin: 2px 0 0;
}
.dg-legal-meta {
  font-size: 13px;
  color: #52617a;
  margin-top: 4px;
}
.dg-legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 14px;
}
.dg-legal-table th,
.dg-legal-table td {
  border: 1px solid var(--dg-border-default);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  color: #46557a;
}
.dg-legal-table th {
  background: var(--kiuu-bg-surface);
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
}
.dg-legal-review {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #f2d9a8;
  background: #fdf6e9;
  color: #7a5b1c;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 18px 0 4px;
}
.dg-legal-review strong {
  color: #6b4c10;
}
.dg-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 14px 0 4px;
  font-size: 13.5px;
}
.dg-legal-nav a {
  color: #7c3aed;
}

/* Documento comercial: modalidades y notas */
.dg-doc-modalidades {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.dg-doc-modalidades div {
  padding: 16px 18px;
  border: 1px solid #ece6ff;
  border-radius: 14px;
  background: #f9f7ff;
}
.dg-doc-modalidades strong {
  display: block;
  color: #241442;
  margin-bottom: 4px;
}
.dg-doc-modalidades span {
  color: #46557a;
  font-size: 14px;
  line-height: 1.55;
}
.dg-doc-note,
.dg-doc-legalnote {
  margin-top: 14px;
  font-size: 12.5px;
  font-style: italic;
  color: #52617a;
}

/* Breadcrumb del manual */
.dg-breadcrumb {
  font-size: 13px;
  color: #52617a;
  margin-bottom: 10px;
}
.dg-breadcrumb a {
  color: #7c3aed;
}
.dg-breadcrumb span {
  margin: 0 6px;
}

/* Manual: hub */
.dg-manual-search {
  margin-top: 22px;
  max-width: 460px;
}
.dg-manual-search input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #d8ccff;
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
.dg-manual-search input:focus {
  outline: none;
  border-color: #7c3aed;
}
.dg-manual-group {
  margin-bottom: 44px;
}
.dg-manual-group h2 {
  font-family: "Outfit", Arial, sans-serif;
  color: #241442;
  font-size: 22px;
  margin: 0 0 18px;
}
.dg-manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.dg-manual-card {
  display: block;
  padding: 22px;
  border: 1px solid #ece6ff;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 54px -46px rgba(36, 20, 66, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dg-manual-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 64px -42px rgba(124, 58, 237, 0.5);
}
.dg-manual-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(139, 92, 246, 0.14));
  color: #7c3aed;
  margin-bottom: 12px;
}
.dg-manual-card strong {
  display: block;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.3;
}
.dg-manual-eyebrow {
  display: block;
  margin: 6px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #8b5cf6;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.dg-manual-card p {
  margin: 0;
  color: #46557a;
  font-size: 14px;
  line-height: 1.55;
}
.dg-manual-empty {
  color: #52617a;
}
.dg-manual-empty a {
  color: #7c3aed;
}

/* Manual: artículo */
.dg-manual-shot {
  margin: 0 0 28px;
  border: 1px solid #ece6ff;
  border-radius: 16px;
  overflow: hidden;
  background: #f9f7ff;
}
.dg-manual-shot img {
  display: block;
  width: 100%;
}
.dg-manual-shot figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: #52617a;
  border-top: 1px solid var(--kiuu-brand-lavender-soft);
}
.dg-manual-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0;
  padding-top: 20px;
  border-top: 1px solid var(--kiuu-brand-lavender-soft);
}
.dg-manual-nav a {
  max-width: 46%;
  color: #7c3aed;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}
.dg-manual-nav .dg-manual-next {
  text-align: right;
  margin-left: auto;
}

@media (max-width: 900px) {
  .dg-grid-2,
  .dg-grid-3,
  .dg-card-grid-4,
  .dg-resource-grid {
    grid-template-columns: 1fr;
  }
  .dg-page-layout {
    grid-template-columns: 1fr;
  }
  .dg-page-toc {
    position: static;
  }
}

@media (max-width: 620px) {
  .dg-cta-box {
    padding: 26px;
  }
  .dg-manual-nav {
    flex-direction: column;
  }
  .dg-manual-nav a {
    max-width: 100%;
  }
  .dg-manual-nav .dg-manual-next {
    text-align: left;
  }
}

/* =====================================================================
   Documento de cotización rediseñado (.dg-qd) — estilo del aplicativo
   ===================================================================== */
.dg-qd {
  max-width: 860px;
  margin: 28px auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(3, 12, 33, 0.6);
  color: #1f2a44;
  font-family: "Poppins", Arial, sans-serif;
}
.dg-qd-head {
  padding: 26px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background: linear-gradient(120deg, #241442 0%, #7c3aed 60%, #8b5cf6 130%);
}
.dg-qd-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.dg-qd-brand svg {
  width: 34px;
  height: 30px;
  fill: #fff;
}
.dg-qd-head-meta {
  text-align: right;
}
.dg-qd-head-meta span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.75;
}
.dg-qd-head-meta strong {
  display: block;
  margin-top: 4px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 17px;
  letter-spacing: 0.03em;
}
.dg-qd-head-meta small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.8;
}
.dg-qd-band {
  padding: 16px 40px;
  background: var(--kiuu-brand-lavender-soft);
  border-bottom: 1px solid var(--dg-border-default);
}
.dg-qd-band strong {
  display: block;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 15px;
}
.dg-qd-band span {
  display: block;
  margin-top: 3px;
  color: #46557a;
  font-size: 12px;
}
.dg-qd-body {
  padding: 28px 40px 34px;
}
.dg-qd-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 26px;
}
.dg-qd-meta > div {
  padding: 14px 18px;
  border: 1px solid var(--dg-border-default);
  border-radius: 12px;
  background: #f9f7ff;
}
.dg-qd-meta span {
  display: block;
  color: #7c3aed;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.dg-qd-meta strong {
  display: block;
  margin-top: 5px;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 15px;
}
.dg-qd-meta small {
  display: block;
  margin-top: 2px;
  color: #52617a;
  font-size: 11.5px;
}
.dg-qd-section {
  margin-bottom: 24px;
}
.dg-qd-section h2 {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--kiuu-brand-lavender-soft);
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dg-qd-section h3 {
  margin: 0 0 6px;
  color: #7c3aed;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dg-qd-section p {
  margin: 0 0 8px;
  color: #33405c;
  font-size: 12.5px;
  line-height: 1.65;
}
.dg-qd-muted {
  color: #52617a !important;
  font-size: 11.5px !important;
}
.dg-qd-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.dg-qd-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 5px;
  color: #33405c;
  font-size: 12px;
  line-height: 1.6;
}
.dg-qd-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #8b5cf6;
}
.dg-qd-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--dg-border-default);
  font-size: 11.5px;
}
.dg-qd-table thead th {
  padding: 9px 12px;
  color: #fff;
  background: #241442;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}
.dg-qd-table th:not(:first-child),
.dg-qd-table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}
.dg-qd-table td {
  padding: 9px 12px;
  border-top: 1px solid var(--kiuu-brand-lavender-soft);
  vertical-align: top;
  color: #33405c;
}
.dg-qd-table td strong {
  color: #241442;
}
.dg-qd-table td small {
  display: block;
  color: #596983;
  font-size: 10.5px;
}
.dg-qd-table .is-free {
  color: #0a8f6c;
  font-weight: 600;
}
.dg-qd-total {
  margin: 14px 0 24px;
  padding: 16px 20px;
  border-radius: 12px;
  background: linear-gradient(120deg, #241442, #7c3aed);
  color: #fff;
}
.dg-qd-total div {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 6px;
}
.dg-qd-total .is-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.dg-qd-total .is-total strong {
  font-family: "Outfit", Arial, sans-serif;
  font-size: 18px;
}
.dg-qd-total small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10.5px;
  font-style: italic;
}

/* Recarga de mensajería: bloque claro "pago único", separado del total mensual */
.dg-qd-total.dg-qd-total--onetime {
  background: #f1f8f5;
  border: 1px solid #cdeede;
  color: #46557a;
  margin-top: 12px;
}
.dg-qd-total--onetime div { color: #46557a; }
.dg-qd-total--onetime strong { color: #241442; }
.dg-qd-total--onetime .is-total {
  border-top-color: #bfe6d2;
  color: #241442;
}
.dg-qd-total--onetime .is-total strong { color: #087448; }
.dg-qd-total--onetime small { color: #596983; font-style: normal; }

.dg-qd-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.dg-qd-legal {
  margin-top: 12px;
  color: #596983 !important;
  font-size: 10.5px !important;
  font-style: italic;
}
.dg-qd-foot {
  padding: 22px 40px 26px;
  border-top: 1px solid #e7ddfe;
  background: #f9f7ff;
}
.dg-qd-foot strong {
  display: block;
  color: #241442;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 13px;
  margin-bottom: 4px;
}
.dg-qd-foot span {
  display: block;
  color: #52617a;
  font-size: 11px;
  line-height: 1.6;
}

@media print {
  .dg-qd {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .dg-qd-section,
  .dg-qd-total {
    break-inside: avoid;
  }
}

@media (max-width: 720px) {
  .dg-qd-head,
  .dg-qd-band,
  .dg-qd-body,
  .dg-qd-foot {
    padding-left: 22px;
    padding-right: 22px;
  }
  .dg-qd-meta,
  .dg-qd-two {
    grid-template-columns: 1fr;
  }
}

/* Panel de leads */
.dg-leads-table {
  font-size: 12.5px;
}
.dg-leads-table td {
  vertical-align: top;
}
.dg-leads-table td p {
  margin: 0 0 4px;
  font-size: 12px;
}
.dg-lead-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  background: #f5f3ff;
  color: #7c3aed;
}
.dg-lead-cotizacion {
  background: rgba(15, 182, 138, 0.14);
  color: #0a8f6c;
}

/* Documento de cotización: numeración, pasos y firma */
.dg-qd-section h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.dg-qd-section h2 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0;
}
.dg-qd-steps {
  margin: 8px 0 0;
  padding-left: 18px;
  counter-reset: dgqd;
  list-style: none;
}
.dg-qd-steps li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 5px;
  color: #33405c;
  font-size: 12px;
  line-height: 1.6;
}
.dg-qd-steps li::before {
  counter-increment: dgqd;
  content: counter(dgqd);
  position: absolute;
  left: -4px;
  top: 1px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--kiuu-brand-lavender-soft);
  color: #7c3aed;
  font-size: 9.5px;
  font-weight: 700;
}
.dg-qd-sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 18px;
}
.dg-qd-sign > div {
  display: flex;
  flex-direction: column;
}
.dg-qd-sign span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c3aed;
}
.dg-qd-sign i {
  margin: 26px 0 6px;
  border-bottom: 1px solid #9fb2d4;
}
.dg-qd-sign small {
  color: #596983;
  font-size: 10.5px;
}

/* =====================================================================
   Ajustes de móvil (colocados al final para ganar la cascada sobre las
   reglas base). Objetivo: CTA a ancho completo en vez de botones
   gigantes que desbordan, rejillas que colapsan y tipografía a escala.
   ===================================================================== */
@media (max-width: 600px) {
  /* Los CTA se apilan a ancho completo; la flecha decorativa se oculta
     (no aporta en pantalla estrecha y descuadra el botón). */
  .dg .dg-actions,
  .dg .dg-button-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .dg .dg-actions .dg-button,
  .dg .dg-button-group .dg-button {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }

  .dg .dg-button span[aria-hidden] {
    display: none;
  }

  /* Rejilla de métricas: 4 columnas no caben en un teléfono. */
  .dg .dg-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Las celdas de rejilla deben poder encogerse (si no, su contenido
     ancho —una subrejilla, una tabla— estira la columna y desborda). */
  .dg .dg-grid > * {
    min-width: 0;
  }

  /* Tipografía de encabezados y textos guía a escala de móvil. */
  .dg h1 {
    margin-top: 16px;
    font-size: 27px;
    letter-spacing: -0.5px;
    line-height: 1.14;
    overflow-wrap: break-word;
  }

  .dg-page-hero h1 {
    font-size: 27px;
  }

  .dg-br-md {
    display: none;
  }

  .dg-hero-copy p,
  .dg-page-hero .dg-lead {
    max-width: none;
    margin-top: 16px;
    font-size: 16px;
  }

  .dg-hero-grid {
    padding: 36px 0 40px;
    gap: 32px;
  }

  .dg-page-hero-grid {
    padding: 40px 0 36px;
  }

  .dg-announcement {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Menos aire vertical: en móvil el hero + primera sección dejaban un
     hueco enorme entre el título y el primer contenido. */
  .dg-page-hero > .dg-container:not(.dg-page-hero-grid) {
    padding: 40px 0 26px;
  }

  .dg-section > .dg-container {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .dg .dg-container {
    width: min(100% - 32px, 1180px);
  }
}

/* =====================================================================
   /demo — Simulador de flujo de turnos en vivo (dg-sim-*)
   Tokens y valores oficiales de Kiuu
   (assets/brand/tokens.css + Kiuu Design System).
   Cada pantalla fija su font-size con clamp() y su interior va en `em`,
   así el marco escala proporcionalmente sin media queries por elemento.
   ===================================================================== */

.dg-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.dg-sim-section > .dg-container { padding-top: 28px; }

.dg-sim-stage {
  --sim-primary: #7C3AED;
  --sim-sky: #8B5CF6;
  --sim-navy: #241442;
  --sim-ink: #0E1B36;
  --sim-txt-2: #3A4B6E;
  --sim-txt-muted: #6B7A99;
  --sim-txt-subtle: #8A97B3;
  --sim-page: radial-gradient(1200px 600px at 85% -10%, #ede9fe 0%, rgba(237, 233, 254, 0) 60%),
              linear-gradient(180deg, #f9f7ff 0%, #f3efff 100%);
  --sim-grad-brand: linear-gradient(135deg, #7C3AED, #8B5CF6);
  --sim-grad-navy: linear-gradient(120deg, #241442 0%, #7C3AED 55%, #8B5CF6 120%);
  --sim-grad-head: linear-gradient(120deg, #241442, #7C3AED 68%, #8B5CF6);
  --sim-wait: #FF6A3D;      --sim-wait-bg: #FFF1E8;
  --sim-called: #7C3AED;    --sim-called-bg: #F5F3FF;
  --sim-serving: #0FB68A;   --sim-serving-bg: #E9FAF4;
  --sim-paused: #7C5CFC;    --sim-paused-bg: #F3EEFF;
  --sim-cancel: #E5484D;    --sim-cancel-bg: #FDECEC;
  --sim-tv-pref: #E8631E;
  --sim-sla-dot: #17c98f;
  --sim-border: #E7DDFE;
  --sim-shadow-card: 0 14px 34px -28px rgba(36, 20, 66, 0.4);
  --sim-shadow-primary: 0 16px 30px -12px rgba(124, 58, 237, 0.6);
  --sim-bezel: 16px;
  --sim-font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  position: relative;
  margin-top: 8px;
}

/* ---- Keyframes portadas (prefijo dgSim para no chocar) ---------------- */
@keyframes dgSimFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dgSimScaleIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes dgSimSlideIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes dgSimBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.32; } }
@keyframes dgSimTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dgSimRing { 0% { transform: scale(0.6); opacity: 0.75; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes dgSimCallIn { 0% { transform: scale(0.7); opacity: 0; } 55% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@keyframes dgSimGlow {
  0%, 100% { box-shadow: 0 0 44px -12px rgba(139, 92, 246, 0.55), 0 0 0 0 rgba(139, 92, 246, 0.35); }
  50% { box-shadow: 0 0 70px -6px rgba(139, 92, 246, 0.85), 0 0 0 14px rgba(139, 92, 246, 0); }
}
@keyframes dgSimPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(124, 58, 237, 0); }
}
@keyframes dgSimUrgent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 252, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(124, 92, 252, 0); }
}
@keyframes dgSimConfetti {
  0% { transform: translateY(-10%) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(280%) rotate(680deg); opacity: 0; }
}
@keyframes dgSimQr { 0% { transform: scale(0.6); opacity: 0; } 12% { transform: scale(1.08); opacity: 1; } 20% { transform: scale(1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes dgSimBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---- Controles del hero --------------------------------------------- */
.dg-sim-hero-controls .dg-sim-mute {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ---- Escenario / grid ----------------------------------------------- */
.dg-sim-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: start;
}
.dg-sim-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.dg-sim-side .dg-sim-phone { align-self: center; }
.dg-sim-side .dg-sim-phone-bezel { max-width: 12.5em; }

.dg-sim-frame {
  margin: 0;
  min-width: 0;
  transition: transform 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
}
.dg-sim-frame figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sim-txt-muted);
}
.dg-sim-stage[data-mode="guided"] .dg-sim-frame:not(.is-focused) {
  filter: saturate(0.82) brightness(0.99);
  opacity: 0.9;
}
.dg-sim-stage[data-mode="guided"] .dg-sim-frame.is-focused {
  transform: translateY(-4px) scale(1.015);
}
.dg-sim-stage[data-mode="guided"] .dg-sim-frame.is-focused .dg-sim-screen,
.dg-sim-stage[data-mode="guided"] .dg-sim-frame.is-focused .dg-sim-console-frame {
  outline: 3px solid var(--sim-sky);
  outline-offset: 5px;
}
.dg-sim-tablet { align-self: start; position: sticky; top: 88px; }

.dg-sim-screen {
  position: relative;
  overflow: hidden;
  background: var(--sim-page);
  color: var(--sim-ink);
  font-family: "Poppins", system-ui, sans-serif;
  contain: layout paint;
}
.dg-sim-screen * { box-sizing: border-box; }
.dg-sim-screen h1, .dg-sim-screen h2, .dg-sim-screen h3,
.dg-sim-screen h4, .dg-sim-screen h5, .dg-sim-screen strong,
.dg-sim-screen .dg-sim-display {
  font-family: "Outfit", "Poppins", system-ui, sans-serif;
}

/* ---- Bisel: tablet ------------------------------------------------- */
.dg-sim-tablet-bezel {
  padding: var(--sim-bezel);
  border-radius: 2.2em;
  background: linear-gradient(150deg, #20263a, #0c0f18);
  box-shadow: 0 40px 80px -40px rgba(124, 58, 237, 0.5),
              inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
}
.dg-sim-tablet-bezel::before {
  content: "";
  position: absolute;
  top: calc(var(--sim-bezel) / 2 - 3px);
  left: 50%;
  width: 6px; height: 6px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #2b3550;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
}
.dg-sim-tablet-screen {
  border-radius: 1.1em;
  aspect-ratio: 3 / 3.7;
  font-size: clamp(9px, 1.2vw, 13.5px);
  display: flex;
  flex-direction: column;
}
.dg-sim-tablet-screen::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 42%);
  pointer-events: none;
  z-index: 40;
}

/* ---- Bisel: TV --------------------------------------------------- */
.dg-sim-tv-bezel {
  padding: 0.55em;
  border-radius: 0.9em;
  background: linear-gradient(160deg, #171b26, #0a0c12);
  box-shadow: 0 30px 60px -34px rgba(36, 20, 66, 0.55),
              inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
}
.dg-sim-tv-bezel::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -0.5em;
  width: 32%; height: 0.5em;
  transform: translateX(-50%);
  border-radius: 0 0 0.4em 0.4em;
  background: linear-gradient(180deg, #10131c, #05060a);
}
.dg-sim-tv-screen {
  border-radius: 0.4em;
  aspect-ratio: 16 / 10.4;
  font-size: clamp(8px, 1.05vw, 13px);
  background: linear-gradient(135deg, var(--kiuu-brand-lavender-soft) 0%, var(--kiuu-brand-lavender-soft) 100%);
  color: var(--kiuu-brand-primary);
  display: flex;
  flex-direction: column;
}

/* ---- Marco: consola (navegador) --------------------------------- */
.dg-sim-console-frame {
  border-radius: 0.9em;
  overflow: hidden;
  border: 1px solid var(--sim-border);
  background: #fff;
  box-shadow: 0 30px 60px -38px rgba(36, 20, 66, 0.5);
}
.dg-sim-browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.6em;
  height: 2.5em;
  padding: 0 0.9em;
  background: #eef1f7;
  border-bottom: 1px solid var(--sim-border);
  font-size: clamp(8px, 0.9vw, 11.5px);
}
.dg-sim-browser-chrome span {
  width: 0.7em; height: 0.7em;
  border-radius: 50%;
  background: #cbd3e2;
}
.dg-sim-browser-chrome span:nth-child(1) { background: #f5655b; }
.dg-sim-browser-chrome span:nth-child(2) { background: #f6be4f; }
.dg-sim-browser-chrome span:nth-child(3) { background: #57c840; }
.dg-sim-browser-chrome p {
  margin: 0 0 0 0.4em;
  flex: 1;
  padding: 0.3em 0.8em;
  border-radius: 0.6em;
  background: #fff;
  border: 1px solid var(--sim-border);
  color: var(--sim-txt-muted);
  font-size: 0.92em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dg-sim-console-screen {
  height: 41em;
  font-size: clamp(8px, 1vw, 12.5px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---- Bisel: celular -------------------------------------------- */
.dg-sim-phone {
  justify-self: center;
}
.dg-sim-phone-bezel {
  max-width: 15em;
  margin: 0 auto;
  padding: 0.5em;
  border-radius: 2.2em;
  background: linear-gradient(150deg, #20263a, #0c0f18);
  box-shadow: 0 30px 60px -30px rgba(124, 58, 237, 0.5),
              inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
}
.dg-sim-phone-bezel::before {
  content: "";
  position: absolute;
  top: 0.55em; left: 50%;
  width: 34%; height: 1.05em;
  transform: translateX(-50%);
  border-radius: 0 0 0.7em 0.7em;
  background: #0c0f18;
  z-index: 5;
}
.dg-sim-phone-screen {
  border-radius: 1.7em;
  aspect-ratio: 9 / 19;
  font-size: clamp(8px, 2.2vw, 11px);
  display: flex;
  flex-direction: column;
}

/* ---- Barra de marca compartida (kiosco / TV) ------------------- */
.dg-sim-brandbar {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.9em 1.2em;
  color: #fff;
  background: var(--sim-grad-head);
}
.dg-sim-brandbar .dg-sim-logo { width: 6em; height: auto; flex: none; }
.dg-sim-brandbar .dg-sim-brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.dg-sim-brandbar .dg-sim-brand-txt b { font-size: 1.15em; font-weight: 800; letter-spacing: -0.02em; }
.dg-sim-brandbar .dg-sim-brand-txt span { font-size: 0.82em; opacity: 0.82; }
.dg-sim-brandbar .dg-sim-spacer { flex: 1; }
.dg-sim-brandbar .dg-sim-clock { font-size: 1.15em; font-weight: 700; font-variant-numeric: tabular-nums; }
.dg-sim-chip {
  padding: 0.32em 0.7em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.78em;
  font-weight: 700;
}

/* ---- KIOSCO --------------------------------------------------- */
.dg-sim-kiosk {
  position: relative;
  flex: 1;
  padding: 1.4em;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dg-sim-kiosk .dg-sim-step { display: flex; flex-direction: column; flex: 1; }
.dg-sim-kiosk-crumb { font-size: 0.85em; color: var(--sim-txt-muted); margin-bottom: 0.8em; }
.dg-sim-kiosk-crumb b { color: var(--sim-primary); }

.dg-sim-welcome { align-items: center; justify-content: center; text-align: center; gap: 0.4em; }
.dg-sim-welcome-logo {
  position: relative;
  width: 6.5em; height: 6.5em;
  margin-bottom: 0.6em;
  display: grid;
  place-items: center;
}
.dg-sim-welcome-logo i {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--sim-sky);
  animation: dgSimRing 1.6s ease-out infinite;
}
.dg-sim-welcome-logo i:nth-child(2) { animation-delay: 0.8s; }
.dg-sim-welcome-logo b {
  position: relative;
  width: 5em; height: 6em;
  display: grid; place-items: center;
}
.dg-sim-welcome-logo b img { width: 100%; height: 100%; object-fit: contain; }
.dg-sim-welcome h2 { margin: 0; font-size: 2em; font-weight: 800; color: var(--sim-ink); }
.dg-sim-welcome p { margin: 0.3em 0 1.2em; font-size: 1em; color: var(--sim-txt-2); max-width: 18em; }

.dg-sim-btn {
  font-family: "Outfit", "Poppins", sans-serif;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: var(--sim-grad-brand);
  border-radius: 0.9em;
  padding: 0.85em 1.5em;
  font-size: 1.05em;
  box-shadow: var(--sim-shadow-primary);
  transition: transform 0.15s ease;
}
.dg-sim-btn:hover { transform: translateY(-1px); }
.dg-sim-btn--lg { padding: 1em 2em; font-size: 1.2em; }
.dg-sim-btn--ghost { background: #fff; color: var(--sim-txt-2); border: 1px solid var(--sim-border); box-shadow: none; }
.dg-sim-btn--block { width: 100%; }

.dg-sim-svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11em, 1fr));
  gap: 0.7em;
  margin-top: 0.4em;
}
.dg-sim-svc-card {
  display: flex;
  align-items: center;
  gap: 0.8em;
  text-align: left;
  padding: 0.9em;
  border-radius: 0.9em;
  border: 1px solid var(--sim-border);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.dg-sim-svc-card:hover { border-color: var(--sim-primary); transform: translateY(-2px); box-shadow: var(--sim-shadow-card); }
.dg-sim-svc-card .avatar {
  flex: none;
  width: 2.6em; height: 2.6em;
  border-radius: 0.7em;
  display: grid; place-items: center;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.15em;
  background: var(--svc-color, var(--sim-primary));
}
.dg-sim-svc-card .txt { display: flex; flex-direction: column; gap: 0.15em; min-width: 0; }
.dg-sim-svc-card .txt b { font-size: 1em; color: var(--sim-ink); font-weight: 700; }
.dg-sim-svc-card .txt span { font-size: 0.82em; color: var(--sim-txt-muted); }
.dg-sim-svc-card .chev { margin-left: auto; color: var(--sim-txt-subtle); font-size: 1.1em; }

.dg-sim-prio-list { display: flex; flex-direction: column; gap: 0.6em; margin-top: 0.4em; }
.dg-sim-prio-card {
  display: flex; align-items: center; gap: 0.7em;
  padding: 0.9em;
  border-radius: 0.9em;
  border: 1.5px solid var(--sim-border);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.dg-sim-prio-card:hover, .dg-sim-prio-card.is-active { border-color: var(--sim-primary); }
.dg-sim-prio-card.is-pref:hover, .dg-sim-prio-card.is-pref.is-active { border-color: var(--sim-wait); }
.dg-sim-prio-card .radio {
  flex: none;
  width: 1.3em; height: 1.3em;
  border-radius: 50%;
  border: 2px solid var(--sim-border);
  display: grid; place-items: center;
}
.dg-sim-prio-card.is-active .radio { border-color: var(--sim-primary); }
.dg-sim-prio-card.is-active .radio::after { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--sim-primary); }
.dg-sim-prio-card.is-pref.is-active .radio { border-color: var(--sim-wait); }
.dg-sim-prio-card.is-pref.is-active .radio::after { background: var(--sim-wait); }
.dg-sim-prio-card .star { color: var(--sim-wait); }
.dg-sim-prio-card b { font-size: 1em; color: var(--sim-ink); }
.dg-sim-prio-card small { display: block; font-size: 0.8em; color: var(--sim-txt-muted); }

.dg-sim-summary { display: flex; flex-direction: column; gap: 0.6em; margin: 0.4em 0 1em; }
.dg-sim-summary div { display: flex; justify-content: space-between; align-items: center; font-size: 0.95em; }
.dg-sim-summary dt { color: var(--sim-txt-muted); }
.dg-sim-summary dd { margin: 0; color: var(--sim-ink); font-weight: 700; }

.dg-sim-kiosk-actions { margin-top: auto; display: flex; gap: 0.6em; padding-top: 1em; }
.dg-sim-kiosk-actions .dg-sim-btn { flex: 1; }

/* ---- Ticket ---------------------------------------------------- */
.dg-sim-ticket { align-items: center; justify-content: center; text-align: center; }
.dg-sim-ticket-ok {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  background: #E9FAF4;
  border: 1px solid #b8edd9;
  color: #0a8e69;
  font-weight: 700;
  font-size: 0.85em;
  margin-bottom: 0.9em;

}
.dg-sim-ticket-ok .tick {
  width: 1.3em; height: 1.3em;
  border-radius: 50%;
  background: #0FB68A;
  color: #fff;
  display: grid; place-items: center;
  font-size: 0.8em;
}
.dg-sim-ticket-card {
  width: 100%;
  max-width: 16em;
  border-radius: 1.1em;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sim-border);
  box-shadow: 0 22px 44px -22px rgba(36, 20, 66, 0.45);
}
.dg-sim-ticket-card header {
  background: linear-gradient(135deg, #241442, #7C3AED);
  color: #fff;
  padding: 1.1em;
}
.dg-sim-ticket-card header .eyebrow { font-size: 0.72em; letter-spacing: 0.14em; opacity: 0.72; font-weight: 600; }
.dg-sim-ticket-card header .code { font-size: 3.4em; font-weight: 800; line-height: 1; margin: 0.1em 0; }
.dg-sim-ticket-card header .svc { font-size: 0.85em; opacity: 0.9; }
.dg-sim-ticket-perf {
  height: 0.9em;
  background: repeating-linear-gradient(90deg, #d8ccff 0 0.5em, transparent 0.5em 1em);
}
.dg-sim-ticket-foot { display: flex; padding: 0.9em; gap: 0.6em; }
.dg-sim-ticket-foot div { flex: 1; text-align: center; }
.dg-sim-ticket-foot dt { font-size: 0.7em; color: var(--sim-txt-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.dg-sim-ticket-foot dd { margin: 0.2em 0 0; font-size: 0.95em; font-weight: 700; color: var(--sim-ink); }
.dg-sim-ticket-foot dd.accent { color: var(--sim-primary); }
.dg-sim-qr {
  display: flex; align-items: center; gap: 0.8em;
  margin-top: 0.9em;
  width: 100%; max-width: 16em;
  padding: 0.9em;
  border-radius: 0.9em;
  background: #0a1530;
  color: #fff;

}
.dg-sim-qr .code-img {
  flex: none;
  width: 3.4em; height: 3.4em;
  border-radius: 0.35em;
  background: #fff center / 88% 88% no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29' shape-rendering='crispEdges'%3E%3Cpath fill='%230a1530' d='M0 0h7v7H0zM2 2h3v3H2zM22 0h7v7h-7zM24 2h3v3h-3zM0 22h7v7H0zM2 24h3v3H2zM9 0h1v1H9zM11 0h2v1h-2zM15 0h1v3h-1zM18 0h2v1h-2zM9 2h1v2H9zM12 2h1v1h-1zM19 2h1v2h-1zM9 5h3v1H9zM13 4h1v2h-1zM17 4h1v1h-1zM0 9h1v1H0zM3 9h2v1H3zM6 9h1v2H6zM9 8h2v1H9zM13 8h1v2h-1zM16 8h3v1h-3zM21 9h1v1h-1zM24 9h1v2h-1zM27 8h2v1h-2zM2 11h2v1H2zM8 11h1v3H8zM11 11h3v1h-3zM17 11h1v2h-1zM20 11h2v1h-2zM25 11h1v1h-1zM28 11h1v3h-1zM0 13h2v1H0zM4 13h1v3H4zM10 13h2v1h-2zM14 13h1v2h-1zM19 13h2v1h-2zM23 13h2v1h-2zM7 15h2v1H7zM12 15h1v2h-1zM16 15h3v1h-3zM22 15h1v3h-1zM26 15h2v1h-2zM1 17h3v1H1zM9 17h1v2H9zM14 17h3v1h-3zM20 17h1v2h-1zM25 17h2v1h-2zM6 19h2v1H6zM11 19h1v2h-1zM17 19h2v1h-2zM24 19h1v3h-1zM28 19h1v2h-1zM9 21h3v1H9zM15 21h1v3h-1zM19 21h2v1h-2zM26 21h1v2h-1zM10 24h1v1h-1zM13 24h3v1h-3zM18 24h2v1h-2zM22 24h1v3h-1zM26 24h3v1h-3zM9 26h1v3H9zM12 26h1v1h-1zM16 26h1v3h-1zM19 26h3v1h-3zM25 27h3v1h-3z'/%3E%3C/svg%3E");
}
.dg-sim-qr p { margin: 0; font-size: 0.82em; opacity: 0.9; }

.dg-sim-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 30; }
.dg-sim-confetti i {
  position: absolute;
  top: -8%;
  left: calc(var(--x, 50) * 1%);
  width: 0.5em; height: 0.8em;
  background: var(--c, var(--sim-primary));
  border-radius: 1px;
  animation: dgSimConfetti 2.4s linear both;
  animation-delay: calc(var(--d, 0) * 1ms);
}

/* ---- PANTALLA TV -------------------------------------------------- */
.dg-sim-tv-live { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.dg-sim-tv-head svg { fill: #fff; }
.dg-sim-tv-body { flex: 1; display: flex; gap: 0.7em; padding: 0.7em; min-height: 0; }
.dg-sim-tv-ads {
  flex: 3;
  border-radius: 1.2em;
  background: #fff;
  border: 1px solid rgba(0, 86, 179, 0.12);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5em;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dg-sim-tv-ads .slide { padding: 1.4em; }
.dg-sim-tv-ads .tag { font-size: 0.72em; font-weight: 700; letter-spacing: 0.12em; color: var(--sim-primary); }
.dg-sim-tv-ads h4 { margin: 0.3em 0; font-size: 1.8em; font-weight: 800; color: var(--kiuu-brand-primary); }
.dg-sim-tv-ads p { margin: 0; font-size: 0.95em; color: #5a7da3; }
.dg-sim-tv-ads .dots { position: absolute; bottom: 0.8em; display: flex; gap: 0.4em; }
.dg-sim-tv-ads .dots i { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--dg-border-default); }
.dg-sim-tv-ads .dots i.on { background: var(--sim-primary); }

.dg-sim-tv-side { flex: 2; display: flex; flex-direction: column; gap: 0.7em; min-width: 0; }
.dg-sim-tv-current {
  border-radius: 1.1em;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 86, 179, 0.12);
  box-shadow: 0 18px 40px -28px rgba(0, 86, 179, 0.5);
}
.dg-sim-tv-current .strip {
  background: var(--sim-grad-brand);
  color: #fff;
  padding: 0.55em 0.9em;
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.dg-sim-tv-current .body { padding: 0.9em; text-align: center; }
.dg-sim-tv-current .pref-pill {
  display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  background: var(--sim-tv-pref);
  color: #fff;
  font-size: 0.7em;
  font-weight: 800;
  margin-bottom: 0.3em;
  box-shadow: 0 8px 18px -6px rgba(232, 99, 30, 0.5);
}
.dg-sim-tv-current .code {
  font-size: 3.4em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sim-primary);

}
.dg-sim-tv-current.is-pref .code { color: var(--sim-tv-pref); }
.dg-sim-tv-current .who { font-size: 1em; font-weight: 700; color: var(--kiuu-brand-primary); margin-top: 0.15em; }
.dg-sim-tv-current .svc { font-size: 0.82em; color: #7a93b0; }
.dg-sim-module-pill {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 0.5em;
  min-width: 2.6em;
  height: 1.9em;
  padding: 0 0.8em;
  border-radius: 999px;
  background: var(--sim-grad-brand);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1em;
  box-shadow: 0 14px 30px -10px rgba(0, 86, 179, 0.6);
}
.dg-sim-tv-current .empty { color: #7a93b0; font-size: 0.95em; padding: 0.6em 0; }

.dg-sim-tv-recent { flex: 1; border-radius: 1.1em; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(0, 86, 179, 0.1); padding: 0.7em 0.8em; overflow: hidden; }
.dg-sim-tv-recent h5 {
  display: flex; align-items: center; gap: 0.4em;
  margin: 0 0 0.5em;
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a7da3;
}
.dg-sim-tv-recent h5 .live { width: 0.5em; height: 0.5em; border-radius: 50%; background: #0FB68A; animation: dgSimBlink 1.6s infinite; }
.dg-sim-tv-recent ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35em; }
.dg-sim-tv-recent li {
  display: flex; align-items: center; gap: 0.6em;
  padding: 0.4em 0.55em;
  border-radius: 0.6em;
  border-left: 0.28em solid var(--sim-sky);
  background: rgba(230, 247, 255, 0.7);

}
.dg-sim-tv-recent li .rc { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.6em; color: var(--sim-primary); min-width: 2.6em; }
.dg-sim-tv-recent li .rw { flex: 1; min-width: 0; font-size: 0.8em; color: #33506e; }
.dg-sim-tv-recent li .rm { padding: 0.15em 0.5em; border-radius: 0.4em; background: var(--sim-sky); color: #fff; font-size: 0.72em; font-weight: 800; }

.dg-sim-tv-overlay {
  position: absolute; inset: 0;
  z-index: 20;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  background: rgba(225, 240, 252, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.dg-sim-tv-overlay.is-on { opacity: 1; }
.dg-sim-tv-overlay-in {
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.62s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.45s ease;
}
.dg-sim-tv-overlay.is-on .dg-sim-tv-overlay-in { transform: scale(1); opacity: 1; }
.dg-sim-tv-overlay .klabel {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 1.3em;
  font-weight: 700;
  letter-spacing: 0.45em;
  color: var(--sim-primary);
}
.dg-sim-tv-overlay .klabel i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--sim-sky); animation: dgSimBlink 1.4s infinite; box-shadow: 0 0 12px var(--sim-sky); }
.dg-sim-tv-overlay .kcode {
  font-size: 9em;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--sim-primary);
  text-shadow: 0 20px 40px rgba(0, 86, 179, 0.25);
}
.dg-sim-tv-overlay.is-pref .kcode { color: var(--sim-tv-pref); }
.dg-sim-tv-overlay .kwho { font-size: 1.5em; font-weight: 700; color: var(--kiuu-brand-primary); margin-top: 0.2em; }
.dg-sim-tv-overlay .kmod { margin-top: 0.5em; font-size: 0.95em; letter-spacing: 0.1em; color: #5a7da3; font-weight: 600; }
.dg-sim-tv-overlay .kbubble {
  margin-top: 0.3em;
  display: inline-grid; place-items: center;
  width: 3.4em; height: 3.4em;
  border-radius: 999px;
  background: var(--sim-grad-brand);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 2em;
  box-shadow: 0 20px 45px -8px rgba(0, 86, 179, 0.6);
}

.dg-sim-tv-ticker {
  background: var(--sim-grad-brand);
  color: #fff;
  padding: 0.6em 0;
  overflow: hidden;
  white-space: nowrap;
}
.dg-sim-ticker-track {
  display: inline-flex;
  gap: 3em;
  padding-left: 3em;
  animation: dgSimTicker 26s linear infinite;
  font-weight: 600;
  font-size: 0.95em;
}

/* ---- CONSOLA DEL OPERADOR --------------------------------------- */
.dg-sim-console-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 0.7em;
  padding: 0.7em 0.9em;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sim-border);
}
.dg-sim-console-head .ico {
  width: 2em; height: 2em; flex: none;
  border-radius: 0.6em;
  background: var(--sim-grad-brand);
  display: grid; place-items: center;
}
.dg-sim-console-head .ico svg { width: 1.1em; height: 1.1em; fill: #fff; }
.dg-sim-console-head .ht { display: flex; flex-direction: column; line-height: 1.15; }
.dg-sim-console-head .ht b { font-size: 1.05em; font-weight: 800; color: var(--sim-ink); }
.dg-sim-console-head .ht span { font-size: 0.78em; color: var(--sim-txt-subtle); }
.dg-sim-console-head .avail {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background: rgba(15, 182, 138, 0.12);
  color: #0a8e69;
  font-size: 0.78em;
  font-weight: 700;
}
.dg-sim-console-head .avail i { width: 0.55em; height: 0.55em; border-radius: 50%; background: currentColor; }
.dg-sim-console-head .me {
  width: 2em; height: 2em; flex: none;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #241442, #7C3AED);
  color: #fff;
  display: grid; place-items: center;
  font-size: 0.78em;
  font-weight: 800;
}

.dg-sim-console-body { flex: 1; min-height: 0; overflow: hidden; padding: 0.9em; display: flex; flex-direction: column; gap: 0.8em; }
.dg-sim-console-body > .dg-sim-serving,
.dg-sim-console-body > .dg-sim-tabs,
.dg-sim-console-body > .dg-sim-shortcuts { flex: none; }

.dg-sim-serving {
  border-radius: 1.1em;
  padding: 0.8em 0.9em;
  color: #fff;
  background: linear-gradient(120deg, #241442, #7C3AED 70%, #8B5CF6);
  box-shadow: 0 22px 44px -26px rgba(124, 58, 237, 0.7);
  position: relative;
  overflow: hidden;

}
.dg-sim-serving.is-empty { color: var(--sim-txt-muted); background: #fff; border: 1px dashed var(--sim-border); box-shadow: none; text-align: center; font-size: 0.9em; }
.dg-sim-serving .row { display: flex; align-items: center; gap: 0.9em; }
.dg-sim-serving .chip {
  flex: none;
  padding: 0.5em 0.9em;
  border-radius: 0.8em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
}
.dg-sim-serving .chip small { font-size: 0.68em; opacity: 0.75; display: block; }
.dg-sim-serving .chip b { font-size: 2.2em; font-weight: 800; line-height: 1; }
.dg-sim-serving .mid { flex: 1; min-width: 0; }
.dg-sim-serving .mid .st { display: flex; align-items: center; gap: 0.4em; font-size: 0.8em; opacity: 0.9; }
.dg-sim-serving .mid .st i { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--sim-sla-dot); animation: dgSimBlink 1.4s infinite; }
.dg-sim-serving.is-over .mid .st i { background: var(--sim-cancel); animation-duration: 0.9s; }
.dg-sim-serving .mid .who { font-size: 1.05em; font-weight: 700; margin: 0.15em 0; }
.dg-sim-serving .mid .svc { font-size: 0.8em; opacity: 0.82; }
.dg-sim-serving .acts { display: flex; flex-direction: column; gap: 0.4em; }
.dg-sim-serving .acts button {
  border: 0; cursor: pointer;
  background: #fff; color: var(--kiuu-brand-primary);
  padding: 0.5em 0.9em;
  border-radius: 0.7em;
  font-weight: 700;
  font-size: 0.82em;
  font-family: inherit;
}
.dg-sim-serving .acts button.ghost { background: rgba(255, 255, 255, 0.16); color: #fff; }
.dg-sim-sla-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.3); transition: width 0.7s ease-out; }
.dg-sim-serving.is-over .dg-sim-sla-bar { background: var(--sim-cancel); }

.dg-sim-tabs { display: flex; gap: 0.4em; flex-wrap: wrap; }
.dg-sim-tab {
  border: 0; cursor: pointer;
  padding: 0.4em 0.7em;
  border-radius: 0.7em;
  background: transparent;
  color: var(--sim-txt-muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82em;
  display: inline-flex; align-items: center; gap: 0.4em;
}
.dg-sim-tab.is-active { background: var(--sim-primary); color: #fff; box-shadow: 0 8px 20px -10px rgba(124, 58, 237, 0.6); }
.dg-sim-tab .n { padding: 0.05em 0.4em; border-radius: 999px; background: rgba(0, 0, 0, 0.08); font-size: 0.85em; }
.dg-sim-tab.is-active .n { background: rgba(255, 255, 255, 0.25); }

.dg-sim-shortcuts { margin: 0; font-size: 0.74em; color: var(--sim-txt-subtle); display: flex; flex-wrap: wrap; gap: 0.4em 0.9em; }
.dg-sim-shortcuts kbd {
  font-family: var(--sim-font-mono);
  font-size: 0.9em;
  background: var(--kiuu-brand-lavender-soft);
  border: 1px solid #d8ccff;
  border-radius: 0.3em;
  padding: 0.05em 0.35em;
  color: var(--sim-primary);
  font-weight: 700;
}

.dg-sim-turnlist { flex: 1; min-height: 3em; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5em; }
.dg-sim-turnlist .sec-h { display: flex; align-items: center; gap: 0.4em; font-size: 0.76em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sim-wait); margin-top: 0.3em; }
.dg-sim-turnlist .sec-h.general { color: var(--sim-txt-muted); }
.dg-sim-turnrow {
  display: flex; align-items: center; gap: 0.7em;
  padding: 0.6em 0.7em;
  border-radius: 0.9em;
  background: #fff;
  border: 1px solid var(--sim-border);
  border-left: 0.28em solid var(--sim-primary);
  cursor: pointer;

  transition: transform 0.15s ease;
}
.dg-sim-turnrow:hover { transform: translateX(3px); }
.dg-sim-turnrow.is-pref { border-left-color: var(--sim-wait); }
.dg-sim-turnrow .tile {
  flex: none;
  width: 3.1em; height: 2.7em;
  border-radius: 0.7em;
  background: #f5f3ff;
  color: var(--sim-primary);
  display: grid; place-items: center;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 0.95em;
}
.dg-sim-turnrow.is-pref .tile { background: var(--sim-wait-bg); color: var(--sim-wait); }
.dg-sim-turnrow .info { flex: 1; min-width: 0; }
.dg-sim-turnrow .info b { font-size: 0.92em; color: var(--sim-ink); display: block; }
.dg-sim-turnrow .info span { font-size: 0.78em; color: var(--sim-txt-muted); }
.dg-sim-turnrow .tmr { font-size: 0.82em; font-variant-numeric: tabular-nums; color: var(--sim-txt-2); font-weight: 600; }
.dg-sim-turnrow .chev { color: var(--sim-txt-subtle); }

.dg-sim-badge {
  padding: 0.2em 0.6em;
  border-radius: 0.5em;
  font-size: 0.72em;
  font-weight: 800;
}
.dg-sim-badge--waiting { color: var(--sim-wait); background: var(--sim-wait-bg); }
.dg-sim-badge--called { color: var(--sim-called); background: var(--sim-called-bg); }
.dg-sim-badge--serving { color: var(--sim-serving); background: var(--sim-serving-bg); }
.dg-sim-badge--paused { color: var(--sim-paused); background: var(--sim-paused-bg); }
.dg-sim-badge--cancelled { color: var(--sim-cancel); background: var(--sim-cancel-bg); }
.dg-sim-badge--completed { color: var(--sim-txt-2); background: #f3efff; }

.dg-sim-console-foot { padding: 0.8em 0.9em; border-top: 1px solid var(--sim-border); display: flex; flex-direction: column; gap: 0.5em; background: #fff; }
.dg-sim-console-foot .dg-sim-btn { width: 100%; }
.dg-sim-console-foot .pair { display: flex; gap: 0.5em; }
.dg-sim-console-foot .pair .dg-sim-btn { flex: 1; }

/* ---- CELULAR (seguimiento) ------------------------------------- */
.dg-sim-phone-track {
  flex: 1;
  padding: 1.1em 0.9em;
  background: linear-gradient(120deg, #241442, #7C3AED 55%, #8B5CF6 120%);
  color: #fff;
  display: flex; flex-direction: column; gap: 0.8em;
  overflow-y: auto;
  position: relative;
}
.dg-sim-phone-track::before {
  content: ""; position: absolute; top: -20%; right: -20%;
  width: 60%; height: 40%;
  background: radial-gradient(circle, rgba(91, 255, 196, 0.3), transparent 70%);
  filter: blur(20px);
}
.dg-sim-track-top { display: flex; align-items: center; justify-content: space-between; position: relative; }
.dg-sim-track-top .live {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.75em;
  font-weight: 700;
}
.dg-sim-track-top .live i { width: 0.5em; height: 0.5em; border-radius: 50%; background: #5BFFC4; animation: dgSimBlink 1.6s infinite; }
.dg-sim-track-card {
  position: relative;
  border-radius: 1.3em;
  background: #fff;
  color: var(--sim-ink);
  padding: 1em;
  text-align: center;

}
.dg-sim-track-status { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.8em; font-weight: 700; color: var(--sim-txt-muted); }
.dg-sim-track-status i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--sim-wait); }
.dg-sim-track-status.is-called i { background: var(--sim-primary); position: relative; }
.dg-sim-track-status.is-called i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sim-primary); animation: dgSimRing 1.4s ease-out infinite; }
.dg-sim-track-urgent {
  margin: 0.7em 0;
  padding: 0.8em;
  border-radius: 0.9em;
  background: linear-gradient(120deg, #7C5CFC, #7C3AED);
  color: #fff;
  font-weight: 800;
  animation: dgSimUrgent 1.4s infinite;
}
.dg-sim-track-urgent .arrow { display: inline-block; animation: dgSimBounce 1s infinite; }
.dg-sim-track-code {
  font-size: 3.2em;
  font-weight: 900;
  line-height: 1;
  color: var(--sim-primary);
  margin: 0.15em 0;
}
.dg-sim-track-svc { font-size: 0.85em; color: var(--sim-txt-muted); }
.dg-sim-track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; margin-top: 0.8em; }
.dg-sim-track-grid div { background: #f9f7ff; border-radius: 0.7em; padding: 0.6em; }
.dg-sim-track-grid dt { font-size: 0.68em; color: var(--sim-txt-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.dg-sim-track-grid dd { margin: 0.2em 0 0; font-size: 1.1em; font-weight: 800; color: var(--sim-ink); }
.dg-sim-track-progress { margin-top: 0.7em; height: 0.4em; border-radius: 999px; background: #e7ddfe; overflow: hidden; }
.dg-sim-track-progress i { display: block; height: 100%; background: var(--sim-grad-brand); transition: width 0.6s ease; }
.dg-sim-track-actions { display: flex; flex-direction: column; gap: 0.4em; margin-top: 0.8em; }
.dg-sim-track-actions button {
  border: 1px solid var(--sim-border);
  background: #fff;
  color: var(--sim-txt-2);
  padding: 0.55em;
  border-radius: 0.7em;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.8em;
  cursor: pointer;
}
.dg-sim-survey { margin-top: 0.7em; text-align: center; }
.dg-sim-survey .stars { display: flex; justify-content: center; gap: 0.3em; margin-top: 0.4em; }
.dg-sim-survey .stars button { border: 0; background: none; cursor: pointer; font-size: 1.6em; color: #d7deec; line-height: 1; }
.dg-sim-survey .stars button.on { color: #f5b301; }

/* ---- Barra guía ------------------------------------------------ */
.dg-sim-coach {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(120deg, #f5f3ff, var(--kiuu-brand-lavender-soft));
  border: 1px solid var(--dg-border-strong);
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.dg-sim-coach-text { margin: 0; flex: 1; min-width: 12em; font-weight: 600; color: var(--sim-navy); font-size: 15px; }
.dg-sim-coach-nav { display: flex; align-items: center; gap: 10px; }
.dg-sim-coach-dots { display: inline-flex; gap: 5px; }
.dg-sim-coach-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--dg-border-strong); }
.dg-sim-coach-dots i.on { background: var(--sim-primary); }
.dg-sim-coach-dots i.done { background: var(--kiuu-brand-lavender); }

/* ---- Pestañas de superficie (solo móvil/tablet) -------------------- */
.dg-sim-surface-tabs { display: none; gap: 8px; margin-bottom: 16px; overflow-x: auto; }
.dg-sim-surface-tabs button {
  flex: none;
  border: 1px solid var(--sim-border);
  background: #fff;
  color: var(--sim-txt-2);
  padding: 8px 14px;
  border-radius: 999px;
  font: 600 13px "Poppins", sans-serif;
  cursor: pointer;
}
.dg-sim-surface-tabs button[aria-selected="true"] { background: var(--sim-primary); color: #fff; border-color: var(--sim-primary); }

/* ---- "Cómo se conecta" ---------------------------------------- */
.dg-sim-flow { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: flow; }
.dg-sim-flow li {
  position: relative;
  padding: 20px 16px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--sim-border);
  box-shadow: var(--sim-shadow-card);
}
.dg-sim-flow li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute; top: -12px; left: 16px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--sim-grad-brand);
  color: #fff;
  display: grid; place-items: center;
  font: 800 13px "Outfit", sans-serif;
}
.dg-sim-flow li strong { display: block; font-family: var(--sim-font-mono); font-size: 13px; color: var(--sim-primary); margin-bottom: 6px; }
.dg-sim-flow li span { font-size: 13.5px; color: var(--sim-txt-2); line-height: 1.55; }

/* ---- Las cuatro superficies (tarjetas) ----------------------- */
.dg-sim-surfaces { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .dg-sim-surfaces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dg-sim-surfaces { grid-template-columns: 1fr; } }

/* ---- Métricas ------------------------------------------------- */
.dg-sim-metrics h3 { display: flex; align-items: center; gap: 10px; margin: 0; }
.dg-sim-metrics-note { margin: 4px 0 0; font-size: 13px; color: var(--sim-txt-muted); }
.dg-sim-livedot { width: 9px; height: 9px; border-radius: 50%; background: #0FB68A; animation: dgSimBlink 1.6s infinite; }

/* ---- Responsive --------------------------------------------------- */
@media (max-width: 1180px) {
  .dg-sim-stage-grid { gap: 20px; }
  .dg-sim-tablet-screen { font-size: clamp(9px, 1.35vw, 13px); }
  .dg-sim-tv-screen { font-size: clamp(8px, 1.1vw, 12px); }
  .dg-sim-console-screen { font-size: clamp(8px, 1.05vw, 11.5px); }
}
@media (max-width: 1023px) {
  .dg-sim-stage-grid { grid-template-columns: 1fr; max-width: 30rem; margin: 0 auto; gap: 0; }
  .dg-sim-tablet { position: static; }
  .dg-sim-side { display: contents; }
  .dg-sim-surface-tabs { display: flex; }
  .dg-sim-stage[data-surface] .dg-sim-frame { display: none; }
  .dg-sim-stage[data-surface="tablet"] .dg-sim-frame[data-surface="tablet"],
  .dg-sim-stage[data-surface="tv"] .dg-sim-frame[data-surface="tv"],
  .dg-sim-stage[data-surface="console"] .dg-sim-frame[data-surface="console"],
  .dg-sim-stage[data-surface="phone"] .dg-sim-frame[data-surface="phone"] { display: block; }
  .dg-sim-stage[data-mode="guided"] .dg-sim-frame { filter: none; opacity: 1; transform: none; }
  .dg-sim-side .dg-sim-phone-bezel { max-width: 18em; margin: 0 auto; }
  .dg-sim-tablet-screen { font-size: clamp(11px, 3.4vw, 16px); }
  .dg-sim-tv-screen { font-size: clamp(9px, 2.7vw, 15px); }
  .dg-sim-console-screen { font-size: clamp(9px, 2.6vw, 14px); }
  .dg-sim-phone-screen { font-size: clamp(10px, 3.8vw, 14px); }
  .dg-sim-coach { position: sticky; bottom: 8px; z-index: 6; box-shadow: 0 18px 40px -20px rgba(36, 20, 66, 0.4); }
  .dg-sim-flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dg-sim-stage { --sim-bezel: 9px; }
  .dg-sim-tablet-screen::after { display: none; }
  .dg-sim-flow { grid-template-columns: 1fr; }
  .dg-sim-hero-controls { flex-direction: column; align-items: stretch; }
}

/* ---- Movimiento reducido -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .dg-sim-stage *, .dg-sim-stage *::before, .dg-sim-stage *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
  .dg-sim-tv-overlay-in { transform: none !important; opacity: 1 !important; }
}

/* =====================================================================
   Panel interno (/panel/leads): navegación, filtros, detalle, paginación
   ===================================================================== */
.dg-panel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.dg-panel-bar small { color: #52617a; }
.dg-panel-bar small a { color: #7c3aed; font-weight: 600; }

.dg-panel-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #e7ddfe;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.dg-panel-tabs a {
  padding: 10px 16px;
  font: 600 14px "Poppins", Arial, sans-serif;
  color: #52617a;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.dg-panel-tabs a:hover { color: #241442; }
.dg-panel-tabs a[aria-current="page"] { color: #241442; border-bottom-color: #7c3aed; }

.dg-panel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: flex-end;
  background: var(--kiuu-brand-lavender-soft);
  border: 1px solid #e7ddfe;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.dg-panel-filters .dg-form-group { margin: 0; }
.dg-panel-filters .dg-form-group label { display: block; font-size: 12px; font-weight: 600; color: #46557a; margin-bottom: 4px; }
.dg-panel-filters .dg-input { min-width: 140px; }
.dg-panel-filters input[type="date"] { min-width: 150px; }

.dg-panel-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.dg-panel-chips a {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--dg-border-default);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #3a4a6b;
}
.dg-panel-chips a:hover { border-color: #7c3aed; color: #7c3aed; }
.dg-panel-chips a.is-active { background: #7c3aed; border-color: #7c3aed; color: #fff; }

.dg-panel-summary { color: #52617a; font-size: 14px; }

.dg-panel-detail-row > td { background: var(--kiuu-brand-lavender-soft); padding: 0; border-top: 0; }
.dg-panel-detail > summary {
  cursor: pointer;
  padding: 8px 14px;
  font: 600 13px "Poppins", Arial, sans-serif;
  color: #7c3aed;
  list-style: none;
}
.dg-panel-detail > summary::-webkit-details-marker { display: none; }
.dg-panel-detail > summary::before { content: "▸ "; }
.dg-panel-detail[open] > summary { border-bottom: 1px solid #e7ddfe; }
.dg-panel-detail[open] > summary::before { content: "▾ "; }
.dg-panel-kv {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 2px 16px;
  padding: 12px 14px;
  margin: 0;
  font-size: 13px;
}
.dg-panel-kv dt { color: #52617a; font-weight: 600; }
.dg-panel-kv dd { margin: 0; color: #0e1b36; word-break: break-word; white-space: pre-wrap; }

.dg-panel-pager {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
}
.dg-panel-pager a, .dg-panel-pager span {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--dg-border-default);
  text-decoration: none;
  color: #3a4a6b;
  font-size: 14px;
}
.dg-panel-pager a:hover { border-color: #7c3aed; }
.dg-panel-pager .is-active { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.dg-panel-pager .is-disabled { opacity: 0.4; pointer-events: none; }

/* Borrado multi-selección */
.dg-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.dg-button-danger {
  background: var(--danger, #b42318);
  border: 1px solid var(--danger, #b42318);
  color: #fff;
}
.dg-button-danger:hover { background: #97140c; border-color: #97140c; color: #fff; }
.dg-panel-deletebar {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.dg-panel-deletebar span { font-size: 13px; color: #52617a; }
.dg-panel-check { width: 34px; text-align: center; }
.dg-panel-check input { width: 16px; height: 16px; cursor: pointer; }
.dg-panel-detail-row + tr .dg-panel-check input { margin-top: 2px; }
.dg-panel-confirm-list {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #0e1b36;
  max-height: 320px;
  overflow-y: auto;
}
.dg-panel-confirm-list li { margin: 4px 0; }
.dg-panel-confirm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width: 700px) {
  .dg-panel-filters { flex-direction: column; align-items: stretch; }
  .dg-panel-filters .dg-form-group { width: 100%; }
  .dg-panel-filters .dg-input { width: 100%; min-width: 0; }
  .dg-panel-kv { grid-template-columns: 1fr; gap: 1px; }
  .dg-panel-kv dt { margin-top: 8px; }
  .dg-panel-deletebar { align-items: flex-start; }
}


/* Shared navigation and editorial accessibility. */
.dg-nav-group { position: relative; }
.dg-nav-group summary { cursor: pointer; padding: .75rem .25rem; font-weight: 600; }
.dg-nav-submenu { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 230px; padding: .75rem; border: 1px solid #ccd5e1; border-radius: .75rem; background: #fff; box-shadow: 0 8px 24px #172b4d20; }
.dg-nav-submenu a { display: block; padding: .65rem; color: #24364b; }
.dg-product-preview { margin: 0; min-width: 0; }
.dg-product-preview img, .blog-content img { display: block; width: 100%; height: auto; border-radius: .75rem; }
.dg-product-preview figcaption { margin-top: 1rem; font-size: .9rem; }
.dg-skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 10000; background: #fff; color: var(--kiuu-brand-primary); padding: 1rem; }
.dg-skip-link:focus { top: 1rem; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #7c3aed; outline-offset: 4px; }
.dg-section-dark :focus-visible, .dg-final-cta :focus-visible { outline-color: #fff; }
.blog-table-scroll { overflow-x: auto; }
.blog-content table { width: 100%; border-collapse: collapse; }
.blog-content th, .blog-content td { padding: .75rem; border: 1px solid #cbd5e1; text-align: left; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.dg .dg-footer-grid p, .dg .dg-footer-nit { color: #adb8cc; }
.dg .dg-section-dark .dg-section-heading p { color: #c4cee0; }
.blog-hero-grid { grid-template-columns: 1fr; max-width: 900px; }
#slug-status { color: #52617a !important; }

.dg-purple-text { color: #6845da !important; }
.dg-sectors-grid strong { color: #172b4d; }
.dg-sim-frame figcaption { color: #52617a; }
