/* Identidad de M Studio y estados visibles de los controles. */
:root {
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-card: 16px;
  --radius-xl: 20px;
}

.brand-lockup { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-logo { display: block; width: 180px; height: auto; }
.brand-divider { width: 1px; height: 28px; background: #78938b; flex: none; }
.brand-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: #fff; white-space: nowrap; line-height: 1.2; }

.btn, .text-button, .tab, .tc, .x, .tabs .t { border-radius: 14px; }
.in, .url-input, input[type=color], .manual-html { border-radius: 12px; }
.url-input .in { border-radius: 0; }
.th, .band { border-radius: 12px; }
.ph, .sq { border-radius: 8px; }
.lgm { border-radius: 5px; }
.card, .box, .notice, .swr, .draw { border-radius: 16px; }
.draw { overflow: hidden; }
.draw[open] canvas { border-radius: 12px; }
.sb { border-radius: 14px; background: transparent; }
.sb img { width: 32px; height: 32px; display: block; border-radius: 8px; }
.check-row input[type=checkbox] { appearance: none; width: 20px; height: 20px; border: 1px solid #78938b; border-radius: 6px; background: #151329; display: inline-grid; place-items: center; flex: none; cursor: pointer; }
.check-row input[type=checkbox]:checked { background: #00f260; border-color: #00f260; }
.check-row input[type=checkbox]:checked::after { content: '✓'; color: #151329; font-size: 14px; font-weight: 800; line-height: 1; }
.f > .check-row { min-height: 44px; cursor: pointer; }

/* Enlaces de ayuda comercial junto a los campos, con brillo suave. */
.field-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }
.field-heading > label { flex: 1 1 120px; min-width: 0; }
.service-callout { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; max-width: 100%; padding: 8px 12px; overflow: hidden; border: 1px solid #697572; border-radius: 12px; background: linear-gradient(135deg, #394441, #2a3331); color: #e4e9e7; font-family: var(--font-ui); font-size: 11px; font-weight: 600; line-height: 1.5; text-decoration: none; box-shadow: inset 0 1px 0 #ffffff12, 0 3px 8px #00000012; transition: border-color .2s, background-color .2s, transform .2s; }
.service-callout > span { flex: none; color: #c3ceca; font-size: 15px; }
.service-callout::after { content: ''; position: absolute; pointer-events: none; z-index: -1; top: -50%; left: 0; width: 45%; height: 200%; background: linear-gradient(90deg, transparent, #ffffff22, #ffffff45, #ffffff22, transparent); transform: translateX(-180%) rotate(20deg); animation: service-sheen 6s ease-in-out infinite; }
.service-callout:hover { color: #fff; border-color: #a7b7b0; transform: translateY(-1px); }
.service-callout:focus-visible { outline: 2px solid #00f260; outline-offset: 3px; }
@keyframes service-sheen {
  0%, 12% { transform: translateX(-180%) rotate(20deg); opacity: 0; }
  18% { opacity: 1; }
  42% { transform: translateX(400%) rotate(20deg); opacity: 0; }
  100% { transform: translateX(400%) rotate(20deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .service-callout::after { animation: none; display: none; }
  .service-callout:hover { transform: none; }
}

.swr { gap: 16px; transition: border-color .15s, background-color .15s; }
.swr label[for=drive] { color: #fff; font-weight: 700; cursor: pointer; }
.swr.is-on { background: #243d2d; border-color: #00f260; }
.switch-control { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; width: 76px; }
.sw { width: 64px; height: 44px; }
.sw input { z-index: 1; }
.sw .switch-track { inset: 5px 0; pointer-events: none; border: 1px solid #78938b; background: #151329; transition: background-color .15s, border-color .15s; }
.sw .switch-track::after { top: 3px; left: 3px; width: 26px; height: 26px; background: #fff; transition: transform .15s, background-color .15s; }
.sw input:checked ~ .switch-track { background: #00f260; border-color: #00f260; }
.sw input:checked ~ .switch-track::after { left: 3px; transform: translateX(30px); background: #151329; }
.sw input:focus-visible ~ .switch-track { box-shadow: 0 0 0 2px #1a2e2b, 0 0 0 4px #0575e6; }
.switch-state { color: #b7c7c1; font-size: 10px; font-weight: 700; }
.swr.is-on .switch-state { color: #00f260; }

@media (max-width: 1000px) and (min-width: 761px) {
  .brand-logo { width: 140px; }
  .brand-title { font-size: 16px; }
  .brand-lockup { gap: 12px; }
  .language { display: none; }
}
@media (max-width: 760px) {
  .signature-output [data-signature-columns] { min-width: 0 !important; width: 100% !important; }
  .signature-output [data-signature-block] { display: block; width: 100% !important; border-left: 0 !important; }
  .signature-output [data-signature-block="image"] { padding: 12px 0 !important; }
  .signature-output [data-signature-block="image"] img, .signature-output [data-signature-block="image"] table { margin-left: auto; margin-right: auto; }
  .signature-output [data-signature-block="details"] { padding: 12px 0 !important; }
  .brand-lockup { gap: 12px; }
  .brand-logo { width: 128px; }
  .brand-divider { height: 28px; }
  .brand-title { font-size: 14px; white-space: normal; max-width: 110px; }
  .tabs .t { border-radius: 14px; }
}
@media (max-width: 360px) {
  .brand-lockup { gap: 9px; }
  .brand-logo { width: 105px; }
  .brand-title { max-width: 100px; font-size: 13px; }
}
