/* 🎨 Tipografía global y tokens base */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

:root {
 --brand: var(--strong, #111827);
 --accent: #9333ea;
 --accent-2: #06b6d4;
 --muted: #64748b;
--line: var(--panel-border, #d7dee3);
--pad: 14px;
--gap: 12px;
--radius: 14px;
--placeholder-base: #64748b;
--header-backdrop-opacity: 0;
 --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}
html, body {
 font-family: var(--font);
}

* {
 box-sizing: border-box
}

button {
 font: inherit;
 line-height: inherit;
 color: inherit;
 background: none;
 border: none;
 padding: 0;
 margin: 0;
 cursor: pointer;
 transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
button:disabled {
 cursor: not-allowed;
 opacity: .6;
}
button:focus-visible {
 outline: 2px solid var(--accent);
 outline-offset: 2px;
}

.wrap {
 max-width: 880px;
 margin: auto;
 padding: clamp(12px, 3vw, 24px);
 padding-top: 0;
}
header {
 position: sticky;
 top: 0;
 z-index: 100;
 display: flex;
 align-items: center;
 justify-content: space-between;
 flex-wrap: nowrap;
 gap: 14px;
 width: 100vw;
 margin-left: calc(50% - 50vw);
 margin-right: calc(50% - 50vw);
 padding: clamp(16px, 4vw, 28px) clamp(18px, 4vw, 40px);
 margin-bottom: clamp(18px, 4vw, 28px);
 background: transparent;
 transition: box-shadow .3s ease;
 isolation: isolate;
}
header::before {
 content: "";
 position: absolute;
 top: 0;
 left: 50%;
 transform: translateX(-50%);
 width: 100vw;
 height: 100%;
 background: rgba(243, 246, 248, 0.6);
 backdrop-filter: blur(14px);
 -webkit-backdrop-filter: blur(14px);
 border-bottom: 1px solid rgba(199, 210, 222, 0.55);
 box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
 border-radius: 0;
 opacity: 0;
 transition: opacity .35s ease;
 pointer-events: none;
 z-index: -1;
}
header.is-frosted {
 box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}
header.is-frosted::before {
 opacity: var(--header-backdrop-opacity, 0);
}
.logo {
 flex: 0 0 auto;
}
.header-actions {
 display: flex;
 align-items: center;
 justify-content: flex-end;
 gap: clamp(10px, 2vw, 16px);
 margin-left: auto;
 flex: 1 1 auto;
 flex-wrap: nowrap;
}
.header-actions > * {
 flex: 0 0 auto;
}
.header-actions .header-action,
.header-actions .sparkle-btn {
 align-self: center;
}
.header-action {
 display: inline-flex;
 align-items: center;
 justify-content: flex-start;
 gap: 4px;
 padding: 0;
 min-height: auto;
 border-radius: 0;
 font-size: 0.95rem;
 font-weight: 500;
 letter-spacing: 0;
 text-transform: none;
 color: #516d91;
 background: none;
 border: none;
 box-shadow: none;
 flex-shrink: 0;
 transition: color .2s ease;
}
.header-action:hover,
.header-action:focus-visible {
 color: #27364a;
 background: none;
 box-shadow: none;
 text-decoration: underline;
}
.header-action:active {
 transform: none;
}
.local-save-notice {
 position: relative;
 margin: 14px 0;
 padding: 16px 18px;
 border-radius: 14px;
 border: 1px solid var(--line);
 background: rgba(243, 246, 248, 0.95);
 color: #1f2937;
 box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
 opacity: 0;
 transform: translateY(-8px);
 transition: opacity .28s ease, transform .28s ease;
}
.local-save-notice[hidden] {
 display: none !important;
}
.local-save-notice.is-visible {
 opacity: 1;
 transform: translateY(0);
}
.local-save-notice__body {
 display: flex;
 flex-direction: column;
 gap: 10px;
}
.local-save-notice__text {
 margin: 0;
 font-size: .95rem;
 line-height: 1.45;
}
.local-save-notice__actions {
 display: flex;
 align-items: center;
 gap: 16px;
 flex-wrap: wrap;
}
.local-save-notice__remember {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 font-size: .85rem;
 color: #475569;
}
.local-save-notice__remember input {
 width: 16px;
 height: 16px;
 accent-color: var(--accent);
}
.local-save-notice__dismiss {
 padding: 8px 18px;
 border-radius: 999px;
 border: 1px solid var(--line);
 background: #ffffff;
 color: var(--brand);
 font-size: .85rem;
 font-weight: 600;
 letter-spacing: .2px;
 text-transform: uppercase;
 transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.local-save-notice__dismiss:hover,
.local-save-notice__dismiss:focus-visible {
 background: rgba(226, 232, 240, 0.65);
 color: #0f172a;
}
.local-save-notice__dismiss:focus-visible {
 outline: 2px solid rgba(95, 157, 231, 0.55);
 outline-offset: 3px;
}
.sparkle-btn {
 --sparkle-black: hsla(210 28% 12% / 1);
 --sparkle-transition: 0.3s ease-in-out;
 --sparkle-radius: 9999px;
 --sparkle-offset: 2px;
 cursor: pointer;
 position: relative;
 display: flex;
 align-items: center;
 gap: 0.5rem;
 padding: calc(14px / 3) 9.36px;
 padding-right: 24.36px;
 background: transparent;
 border: none;
 border-radius: var(--sparkle-radius);
 transform-origin: center;
 transform: scale(calc(1 + (var(--sparkle-active, 0) * 0.08)));
 transition: transform var(--sparkle-transition);
 color: #fff;
 min-height: 48px;
 flex-shrink: 0;
 box-shadow: none;
}
.sparkle-btn::before {
 content: "";
 position: absolute;
 inset: 0;
 background: var(--sparkle-black);
 border-radius: var(--sparkle-radius);
 box-shadow:
  inset 0 0.5px hsl(0 0% 100% / 0.85),
  inset 0 -1px 2px 0 hsl(0 0% 0% / 0.8),
  0 4px 10px -4px hsla(0 0% 0% / calc(1 - var(--sparkle-active, 0))),
  0 0 0 calc(var(--sparkle-active, 0) * 0.375rem) hsl(260 97% 50% / 0.75);
 transition: all var(--sparkle-transition);
 z-index: 0;
}
.sparkle-btn::after {
 content: "";
 position: absolute;
 inset: 0;
 background-color: hsla(260 97% 61% / 0.75);
 background-image:
  radial-gradient(at 51% 89%, hsla(266, 45%, 74%, 1) 0px, transparent 50%),
  radial-gradient(at 100% 100%, hsla(266, 36%, 60%, 1) 0px, transparent 50%),
  radial-gradient(at 22% 91%, hsla(266, 36%, 60%, 1) 0px, transparent 50%);
 background-position: top;
 opacity: var(--sparkle-active, 0);
 border-radius: var(--sparkle-radius);
 transition: opacity var(--sparkle-transition);
 z-index: 1;
}
.sparkle-btn:focus-visible,
.sparkle-btn:hover {
 --sparkle-active: 1;
}
.sparkle-btn:active {
 transform: scale(1);
}
.sparkle-btn__border {
 position: absolute;
 inset: calc(-1 * var(--sparkle-offset));
 border-radius: var(--sparkle-radius);
 overflow: hidden;
 z-index: -1;
 pointer-events: none;
}
.sparkle-btn__border::before {
 content: "";
 position: absolute;
 top: 30%;
 left: 50%;
 transform: translate(-50%, -50%);
 width: 100%;
 height: 2rem;
 background-color: #ffffff;
 mask: linear-gradient(transparent 0%, white 120%);
 animation: sparkle-spin 2s linear infinite;
 transform-origin: left;
}
.sparkle-btn__icon {
 position: relative;
 z-index: 2;
 width: 1.75rem;
}
.sparkle-btn__path {
 fill: currentColor;
 stroke: currentColor;
 transform-origin: center;
 color: #ffffff;
}
.sparkle-btn:hover .sparkle-btn__path,
.sparkle-btn:focus-visible .sparkle-btn__path {
 animation: sparkle-pulse 1.5s linear 0.5s infinite;
}
.sparkle-btn__path--primary { --sparkle-scale: 1.18; }
.sparkle-btn__path--mid { --sparkle-scale: 1.12; }
.sparkle-btn__path--small { --sparkle-scale: 1.06; }
.sparkle-btn__label {
 position: relative;
 z-index: 2;
 font-size: calc(0.95rem - 2px);
 font-weight: 600;
 letter-spacing: 0.6px;
 background-image: none;
 -webkit-background-clip: initial;
 background-clip: initial;
 color: #ffffff;
 text-transform: uppercase;
}
@keyframes sparkle-spin {
 to {
  transform: translate(-50%, -50%) rotate(360deg);
 }
}
@keyframes sparkle-pulse {
 0%, 34%, 71%, 100% {
  transform: scale(1);
 }
 17% {
  transform: scale(var(--sparkle-scale, 1));
 }
 49% {
  transform: scale(var(--sparkle-scale, 1));
 }
 83% {
  transform: scale(var(--sparkle-scale, 1));
 }
}
.logo {
 display: inline-flex;
 align-items: center;
 gap: 10px;
 text-decoration: none;
 color: var(--brand);
}
.logo img {
 max-width: clamp(160px, 18vw, 220px);
 height: auto;
}

.hero-h1{
    font-weight:200 !important;
    font-size: 1.8rem;
    margin:0;
}

.header-copy{
 display:flex;
 flex-direction:column;
 gap:6px;
 max-width:100%;
    top:-100px;
    position: relative;
}
.header-copy p{
    width: 70%;
 font-size:1rem;
}

.logo .mark {
 width: 40px;
 height: 40px;
 border-radius: 10px;
 background: conic-gradient(from 180deg, var(--accent), var(--accent-2), var(--accent));
 box-shadow: inset 0 0 18px rgba(255, 255, 255, .35);
}
.logo .name {
 font-weight: 800;
 letter-spacing: .2px
}
h1 {
 font-size: 1.15rem;
 margin: .2rem 0 .25rem
}
header p {
 margin: 0;
 color: var(--muted);
 font-size: .95rem
}
form {
 display: grid;
 gap: 24px
}
fieldset {
 border: 1px solid #d1edff40;
 border-radius: var(--radius);
 padding: var(--pad);
 border-radius: 16px;
 padding-top: 60px;
 background: #FAFCFD;
 box-shadow: 5px 5px 25px rgba(206, 213, 220, .4), -5px -5px 10px rgba(255, 255, 255, .4);
}
legend {
    padding: 0.4rem;
    font-weight: 400;
    color: var(--brand);
    top: 27px;
    position: relative;
    font-size: 1.3em;
}
.row {
 display: grid;
 gap: var(--gap)
}
.grid-2 {
 grid-template-columns: 1fr;
 gap: var(--gap)
}
label {
 font-weight: 600;
 font-size: .95rem
}
.help {
 color: var(--muted);
 font-size: .85rem;
 margin-top: 4px
}
input,
select,
textarea,
button {
 font-family: inherit;
 -webkit-appearance: none;
 appearance: none;
 transition: font-family .2s ease;
}
input[type="text"], input[type="tel"], input[type="date"], textarea, select {
 width: 100%;
 padding: 12px 14px;
 border: 1px solid var(--line);
 border-radius: 10px;
 font-size: calc(1rem - 4px);
 min-height: 48px;
 line-height: 1.35;
 color: #0b5394;
}
input::placeholder,
textarea::placeholder,
select,
select option {
 font-family: "Comic Neue", var(--font, inherit);
 color: rgba(100, 116, 139, 0.75);
 transition: color .2s ease;
}
input:focus::placeholder,
textarea:focus::placeholder {
 color: rgba(100, 116, 139, 1);
}
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus,
input.font-engaged,
textarea.font-engaged,
select.font-engaged,
.state-select.font-engaged,
.state-select:focus {
 font-family: "Comic Neue", var(--font, inherit);
}
select {
 padding: 6px 7px;
 font-size: calc(1rem - 4px);
}
.Menos2px {
 font-size: calc(1em - 2px);
}
.state-select {
 white-space: pre-line;
 line-height: 1.25;
}
.state-select[data-placeholder-shown="true"] {
 color: var(--muted);
 font-style: italic;
}
.state-select option[data-placeholder="true"] {
 color: var(--muted);
}
textarea {
 min-height: 90px;
 resize: vertical
}
.tbl .hdr,
.tbl .rowline {
 display: grid;
 grid-template-columns:
  minmax(140px, 0.9fr)
  minmax(160px, 1fr)
  minmax(160px, 0.95fr)
  minmax(160px, 0.95fr)
  minmax(187px, 1.19fr)
  minmax(90px, 0.55fr);
 gap: 10px;
 margin-bottom: 5px;
 align-items: center;
 font-size: .85em;
 text-align: center;
}
.tbl .hdr > div:first-child,
.tbl .rowline > div:first-child {
 text-align: left;
}
.tbl .hdr > div:nth-child(2),
.tbl .rowline > div:nth-child(2) {
 text-align: left;
}
.tbl .hdr > div:last-child,
.tbl .rowline > div:last-child {
 display: flex;
 justify-content: center;
 align-items: center;
}
.tbl[data-dynamic-table="nd"] .hdr,
.tbl[data-dynamic-table="nd"] .rowline {
 grid-template-columns:
  minmax(210px, 1.3fr)
  minmax(75px, 0.45fr)
  minmax(155px, 0.95fr)
  minmax(155px, 0.95fr)
  minmax(187px, 1.23fr)
  minmax(110px, 0.65fr);
}
.nd-label {
 text-align: left;
}
.nd-label .label-stack {
 align-items: flex-start;
}
.tbl .rowline {
 padding: 4px;
}
.tbl .rowline.extra {
 border-radius: 10px;
 padding: 6px 8px;
}
.tbl .rowline:nth-of-type(even) {
 background: rgba(100, 116, 139, 0.08);
 border-radius: 10px;
}
.row-controls {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 6px;
}
.row-add,
.row-remove {
 width: 36px;
 height: 36px;
 aspect-ratio: 1 / 1;
 display: inline-flex;
 justify-content: center;
 align-items: center;
 border-radius: 50%;
 border: 1px dashed var(--brand);
 background: #fff;
 color: var(--brand);
 font-size: 1.25rem;
 line-height: 1;
 cursor: pointer;
 transition: transform .2s ease, background .2s ease;
}
.row-add:hover,
.row-remove:hover,
.row-add:focus-visible,
.row-remove:focus-visible {
 background: rgba(6, 60, 159, 0.08);
 transform: scale(1.05);
}
.row-add:focus-visible,
.row-remove:focus-visible {
 outline: 2px solid var(--brand);
 outline-offset: 2px;
}
.row-remove {
 border-color: rgba(81, 109, 145, 0.65);
 color: #516d91;
}
.label-stack {
 display: inline-flex;
 flex-direction: column;
 align-items: flex-start;
 gap: 2px;
 text-align: left;
}
.label-note {
 display: block;
 font-size: 9.5px;
 line-height: 1.25;
 color: var(--muted);
}
.obs-cell {
 text-align: left;
 align-self: stretch;
}
.obs-cell textarea {
 width: 100%;
 min-height: 120px;
 padding: 10px 12px;
 border-radius: 10px;
 border: 1px solid var(--line);
 font-size: calc(1rem - 4px);
 line-height: 1.4;
 resize: vertical;
 transition: border-color .2s ease, box-shadow .2s ease;
}
.obs-cell textarea:focus {
 border-color: rgba(81, 109, 145, 0.7);
 box-shadow: 0 0 0 3px rgba(81, 109, 145, 0.25);
 outline: none;
}
.value-cell {
 text-align: left;
}
.value-cell input {
 width: 100%;
}
.id-cell {
 font-size: calc(1em - 2px);
}
.id-cell .id-control,
.id-cell .id-control__trigger {
 font-size: inherit;
}
.id-cell .id-control__brand {
 font-size: calc(.75rem - 1px);
}
.id-control {
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 gap: 6px;
 font-size: inherit;
}
.id-control__display {
 display: flex;
 align-items: center;
 gap: 6px;
}
.id-control__brand {
 font-size: .75rem;
 letter-spacing: .05em;
 text-transform: uppercase;
 color: var(--muted);
 font-weight: 600;
}
.id-control__trigger {
 background: none;
 border: none;
 padding: 0;
 font-size: inherit;
 color: #2563eb;
 text-transform: none;
 letter-spacing: 0;
 text-decoration: underline;
 cursor: pointer;
 box-shadow: none;
}
.id-control__trigger:hover,
.id-control__trigger:focus-visible {
 color: #1d4ed8;
}
.id-control__trigger.link-action {
 text-transform: none;
 letter-spacing: 0;
 padding: 0;
}
.id-control__trigger--selected {
 color: #1f2937;
 font-weight: 600;
 text-decoration: none;
}
.id-control select {
 width: 100%;
 min-width: 160px;
}
.state-cell {
 display: flex;
 flex-direction: column;
 align-items: stretch;
 gap: 10px;
 text-align: left;
}
.state-cell select {
 width: 100%;
}
.state-cell .lens-surface {
 margin-inline: auto;
}
.state-cell.is-enabled .lens-surface {
 opacity: 1;
}
.state-cell:not(.is-enabled) .lens-surface {
 opacity: .45;
}
.state-cell.is-enabled .lens-surface:hover {
 transform: translateY(-2px);
}
.lens-surface {
 position: relative;
 width: 100%;
 aspect-ratio: 1 / 1;
 border-radius: 16px;
 overflow: hidden;
 transition: opacity .25s ease, transform .2s ease;
 background: radial-gradient(circle at 30% 30%, rgba(148, 163, 184, 0.22), rgba(15, 23, 42, 0.25));
 box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}
.lens-surface--hydrated {
 background: transparent;
}
.lens-surface[data-surface]::before {
 content: attr(data-surface);
 position: absolute;
 top: 8px;
 left: 8px;
 z-index: 3;
 font-size: .65rem;
 text-transform: uppercase;
 letter-spacing: .08em;
 background: rgba(15, 23, 42, 0.7);
 color: #fff;
 padding: 2px 8px;
 border-radius: 999px;
}
.lens-grid {
 position: relative;
 width: 100%;
 height: 100%;
 display: block;
}
.lens-grid__image {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 pointer-events: none;
 user-select: none;
}
.lens-grid__image--overlay {
 mix-blend-mode: multiply;
 opacity: .78;
}
.lens-grid__cells {
 position: relative;
 z-index: 2;
 width: 100%;
 height: 100%;
 display: grid;
 grid-template-columns: repeat(5, 1fr);
 grid-template-rows: repeat(5, 1fr);
 gap: 1px;
}
.lens-grid__overlays {
 position: absolute;
 inset: 0;
 z-index: 3;
 pointer-events: none;
}
.lens-grid__cell {
 position: relative;
 width: 100%;
 height: 100%;
 border: none;
 margin: 0;
 padding: 0;
 background: transparent;
 cursor: pointer;
 transition: background .2s ease;
}
.lens-grid__cell[aria-disabled="true"] {
 cursor: not-allowed;
}
.lens-grid__cell::after {
 content: "";
 position: absolute;
 inset: 0;
 background: rgba(37, 99, 235, 0.25);
 opacity: 0;
 transition: opacity .18s ease;
}
.lens-grid__cell:hover::after,
.lens-grid__cell:focus-visible::after {
 opacity: 0.65;
}
.lens-grid__cell.is-selected::after {
 opacity: 1;
}
.lens-grid__cell:focus-visible {
 outline: 2px solid rgba(37, 99, 235, 0.4);
 outline-offset: 1px;
}
.lens-grid__overlay-icon {
 position: absolute;
 width: 32px;
 height: 32px;
 transform: translate(-50%, -50%);
 filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.3));
 opacity: 0.95;
}
.lens-grid__cell[aria-disabled="true"]:focus-visible {
 outline: none;
}
.link-action {
 text-decoration: underline;
 background: none;
 border: none;
 padding: 0;
 box-shadow: none;
 text-transform: none;
 letter-spacing: 0;
 color: #2563eb;
 cursor: pointer;
}
.link-action:hover,
.link-action:focus-visible {
 color: #1d4ed8;
}
.eyebrow{
    text-transform: uppercase;
    letter-spacing: 2px;
}
.tbl .hdr {
 font-weight: 700;
 font-size: .9rem;
 color: #1f2937
}
.chip {
 display: inline-block;
 border: 1px solid var(--line);
 padding: 2px 8px;
 border-radius: 999px;
 font-size: .8rem;
 color: var(--muted)
}
.note {
 background: #f8fafc;
 border: 1px solid var(--line);
 border-radius: 12px;
 padding: 12px;
 font-size: .95rem;
 color: #0f172a
}
.note__row {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 8px;
}
.note__row + .note__row {
 margin-top: 8px;
}
.note-label {
 font-weight: 700;
 font-size: .85rem;
 color: #0f172a;
}
.note p {
 margin: 6px 0 0;
}
.note--tip {
 background: rgba(15, 23, 42, 0.04);
 border-style: dashed;
}
.note-supplement {
 font-size: .9rem;
 color: #475569;
 margin: 6px 0 0;
}
.section-instruction {
 margin: 6px 0 12px;
 font-size: .95rem;
 color: #475569;
}
.nd-template-bar {
 display: inline-flex;
 flex-wrap: wrap;
 gap: 6px;
 align-items: center;
}
.template-btn {
 display: inline-flex;
 align-items: center;
 border: 1px solid var(--line);
 border-radius: 999px;
 padding: 2px 10px;
 background: #fff;
 font-size: .8rem;
 color: var(--muted);
 cursor: pointer;
 transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
.template-btn:hover,
.template-btn:focus-visible {
 border-color: var(--brand);
 background: rgba(11, 83, 148, 0.08);
}
.template-btn:focus-visible {
 outline: 2px solid var(--brand);
 outline-offset: 2px;
}
.template-btn.is-active {
 border-color: var(--brand);
 background: rgba(11, 83, 148, 0.12);
 color: var(--brand);
 box-shadow: 0 4px 12px rgba(11, 83, 148, 0.15);
}
.divider {
 height: 1px;
 background: var(--line);
 margin: 6px 0 4px
}
.actions {
 display: flex;
 gap: 10px;
 flex-wrap: wrap
}
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 padding: 12px 18px;
 border-radius: 12px;
 font-size: .95rem;
 font-weight: 600;
 line-height: 1.2;
 color: #1f2937;
 background: #f8fafc;
 border: 1px solid var(--line);
 box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
 transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn:hover,
.btn:focus-visible {
 background: #eef3f8;
 border-color: rgba(148, 163, 184, 0.6);
 box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
 color: #102238;
}
.btn:focus-visible {
 outline: 2px solid rgba(147, 51, 234, 0.45);
 outline-offset: 3px;
}
.btn:active {
 transform: translateY(1px);
 box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}
.btn.primary {
 color: #fff;
 background: var(--accent);
 border-color: var(--accent);
 box-shadow: 0 12px 22px rgba(147, 51, 234, 0.28);
}
.btn.primary:hover,
.btn.primary:focus-visible {
 background: #7e22ce;
 border-color: #7e22ce;
 box-shadow: 0 16px 26px rgba(126, 34, 206, 0.35);
 color: #fff;
}
.btn.primary:focus-visible {
 outline: 2px solid rgba(147, 51, 234, 0.55);
}
.btn.secondary {
 color: #fff;
 background: var(--accent-2);
 border-color: var(--accent-2);
 box-shadow: 0 12px 22px rgba(6, 182, 212, 0.28);
}
.btn.secondary:hover,
.btn.secondary:focus-visible {
 background: #0ea5e9;
 border-color: #0ea5e9;
 box-shadow: 0 16px 26px rgba(14, 165, 233, 0.35);
 color: #fff;
}
.btn.secondary:focus-visible {
 outline: 2px solid rgba(14, 165, 233, 0.5);
}
.btn.ghost {
 background: transparent;
 border-style: dashed;
 border-color: var(--line);
 color: #516d91;
 box-shadow: none;
}
.btn.ghost:hover,
.btn.ghost:focus-visible {
 background: rgba(226, 232, 240, 0.45);
 border-color: rgba(148, 163, 184, 0.65);
 color: #1f2b3a;
 box-shadow: none;
}
.btn.ghost:focus-visible {
 outline: 2px solid rgba(95, 157, 231, 0.55);
}
.email-grid {
 display: grid;
 gap: 10px;
 grid-template-columns: 1fr
}
.sig-grid {
 display: grid;
 gap: 14px
}
.sig-pad {
 border: 1px dashed var(--line);
 border-radius: 10px;
 padding: 8px;
 background: #fff
}
.sig-tools {
 display: flex;
 gap: 8px;
 margin-top: 8px;
 flex-wrap: wrap
}
canvas.signature {
 width: 100%;
 height: 160px;
 touch-action: none;
 background: #fff;
 border-radius: 8px;
 border: 1px solid var(--line)
}
.brandbar {
 width: 100vw;
 height: 13vh;
 margin: 0 0 clamp(22px, 4vh, 40px);
 margin-left: calc(50% - 50vw);
 margin-right: calc(50% - 50vw);
 background-image: url("../images/textura.webp");
 background-repeat: repeat;
 background-size: 1920px;
 background-position: center;
}
.assist-panel {
 position: fixed;
 top: 50%;
 left: clamp(12px, 6vw, 48px);
 transform: translateY(-50%);
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 gap: 16px;
 z-index: 160;
}
.progress-panel {
 position: fixed;
 top: 50%;
 right: clamp(12px, 6vw, 48px);
 transform: translateY(-50%);
 display: flex;
 flex-direction: column;
 align-items: center;
 z-index: 160;
}
.legend-toggle {
 width: 52px;
 height: 52px;
 border: 2px solid var(--brand);
 border-radius: 50%;
 background: #ffffff;
 color: var(--brand);
 font-size: 1.6rem;
 font-weight: 700;
 cursor: pointer;
 box-shadow: none;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.legend-toggle:hover,
.legend-toggle:focus-visible {
 transform: translateY(-2px);
 background: rgba(17, 24, 39, 0.08);
 box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
 outline: none;
}
.legend-sheet {
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 gap: 12px;
}
.legend-sheet__content {
 width: 230px;
 padding: 18px;
 border-radius: 20px;
 backdrop-filter: blur(14px);
 -webkit-backdrop-filter: blur(14px);
 background: rgba(255, 255, 255, 0.9);
 border: 1px solid rgba(199, 210, 222, 0.45);
 box-shadow: 0 18px 30px rgba(15, 23, 42, 0.2);
 display: flex;
 flex-direction: column;
 gap: 12px;
}
.legend-sheet__content[hidden] {
 display: none !important;
}
.legend-sheet__content h3 {
 margin: 0;
 font-size: 1rem;
 font-weight: 700;
 color: var(--brand);
}
.legend-sheet__content ul {
 margin: 0;
 padding: 0;
 list-style: none;
 display: grid;
 gap: 8px;
}
.legend-sheet__content li {
 display: flex;
 align-items: center;
 gap: 10px;
 font-size: .92rem;
 color: var(--muted);
}
.legend-icon {
 width: 36px;
 height: 36px;
 flex-shrink: 0;
}
.legend-label {
 display: flex;
 flex-direction: column;
 gap: 2px;
 font-size: .9rem;
 color: #1f2937;
}
.legend-label strong {
 font-size: .95rem;
 font-weight: 600;
 color: #0f172a;
}
.legend-label small {
 font-size: .75rem;
 font-weight: 600;
 letter-spacing: .08em;
 text-transform: uppercase;
 color: var(--muted);
}
.legend-note {
 margin: 0;
 font-size: .78rem;
 color: rgba(15, 23, 42, 0.55);
}
.progress-stack {
 width: 138px;
 padding: 16px 18px;
 border-radius: 24px;
 backdrop-filter: blur(16px);
 -webkit-backdrop-filter: blur(16px);
 background: rgba(255, 255, 255, 0.92);
 border: 1px solid rgba(199, 210, 222, 0.45);
 box-shadow: 0 20px 34px rgba(15, 23, 42, 0.18);
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 14px;
}
.progress-rail {
 position: relative;
 width: 20px;
 height: 200px;
 border-radius: 999px;
 background: rgba(226, 232, 240, 0.7);
 box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
 overflow: hidden;
}
.progress-fill {
 position: absolute;
 left: 0;
 bottom: 0;
 width: 100%;
 height: 0%;
 background: linear-gradient(180deg, rgba(11, 83, 148, 0.85), rgba(147, 51, 234, 0.78));
 transition: height .35s ease;
}
.progress-meta {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 2px;
 text-align: center;
}
.progress-percent {
 font-size: 1.4rem;
 font-weight: 700;
 color: var(--brand);
 line-height: 1;
}
.progress-remaining {
 font-size: .82rem;
 color: var(--muted);
}
.progress-new {
 font-size: .78rem;
 color: #b91c1c;
}
.template-modal {
 position: fixed;
 inset: 0;
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 24px;
 background: rgba(15, 23, 42, 0.45);
 z-index: 1200;
}
.template-modal[hidden] {
 display: none !important;
}
.template-modal__dialog {
 background: #fff;
 border-radius: 16px;
 padding: 24px;
 max-width: 440px;
 width: 100%;
 box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
}
.template-modal__dialog h3 {
 margin: 0 0 10px;
 font-size: 1.15rem;
 color: #0f172a;
}
.template-modal__copy {
 margin: 0 0 18px;
 font-size: .95rem;
 color: #475569;
}
.template-modal__actions {
 display: flex;
 flex-direction: column;
 gap: 10px;
}
.template-modal__actions .btn {
 width: 100%;
}
@media (min-width:600px) {
 .template-modal__actions {
  flex-direction: row;
  justify-content: flex-end;
 }
 .template-modal__actions .btn {
  width: auto;
  min-width: 0;
 }
}
@media (max-width:768px) {
 .wrap {
  padding: clamp(18px, 6vw, 32px);
 }
 header {
  width: auto;
  margin-left: 0;
  margin-right: 0;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
  padding: clamp(14px, 6vw, 24px);
 }
 .header-actions {
  width: 100%;
  margin-left: 0;
  justify-content: flex-start;
  gap: 12px;
 }
 .header-actions > button {
  flex: 1 1 100%;
  justify-content: center;
 }
 .state-cell {
  width: 100%;
 }
 .state-cell .lens-surface {
  width: 100%;
  max-width: 220px;
  margin: 0;
 }
 .state-cell + .state-cell {
  margin-top: 8px;
 }
 header p {
  font-size: .9rem
 }
 .brandbar {
  height: 18vh;
  margin: 14px 0 24px;
  background-size: 160px 160px;
 }
 .assist-panel {
  position: static;
  width: 100%;
  transform: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
 }
 .progress-panel {
  position: static;
  width: 100%;
  transform: none;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
 }
 .progress-stack {
  width: auto;
  flex-direction: row;
  gap: 12px;
  padding: 14px 16px;
 }
 .progress-rail {
  height: 120px;
 }
 fieldset {
  padding: 18px clamp(12px, 4vw, 20px)
 }
 legend {
  font-size: 1rem
 }
 .tbl {
  gap: 12px
 }
 .tbl .hdr {
  display: none
 }
 .tbl .rowline {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
 }
 .tbl .rowline > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: .95rem;
 }
 .tbl .rowline > div:last-child {
  flex-direction: row;
  justify-content: center;
  align-items: center;
 }
.tbl .rowline > div:nth-child(1) {
  font-weight: 600;
  font-size: .95rem;
  color: var(--strong, #223038);
}
 .tbl .rowline > div:nth-child(2) {
  font-weight: 600;
  font-size: 1rem;
  color: var(--strong, #223038);
 }
 .tbl .rowline > div:nth-child(1)::before,
 .tbl .rowline > div:nth-child(2)::before,
 .tbl .rowline > div:nth-child(3)::before,
 .tbl .rowline > div:nth-child(4)::before,
 .tbl .rowline > div:nth-child(5)::before,
 .tbl .rowline > div:nth-child(6)::before {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  content: "";
 }
 .tbl .rowline > div:nth-child(1)::before {
  content: "ID";
 }
 .tbl .rowline > div:nth-child(2)::before {
  content: "Valor / Tipo";
 }
 .tbl .rowline > div:nth-child(3)::before {
  content: "AV";
 }
 .tbl .rowline > div:nth-child(4)::before {
  content: "AR";
 }
 .tbl .rowline > div:nth-child(5)::before {
  content: "Observaciones";
 }
 .tbl .rowline > div:nth-child(6)::before {
  content: "Agregar";
 }
 .actions {
  flex-direction: column
 }
 .actions .btn {
  width: 100%;
  justify-content: center
 }
 .sig-grid {
  grid-template-columns: 1fr
 }
 .sig-pad {
  padding: 12px
 }
 canvas.signature {
  height: 200px
 }
}
@media (max-width:480px) {
 h1 {
  font-size: 1.05rem
 }
 header p {
  font-size: .85rem
 }
 .btn {
  font-size: .96rem;
  padding: 12px 14px
 }
 textarea {
  min-height: 120px
 }
}
@media print {
 .actions, .email, .sig-tools {
  display: none !important
 }
 .wrap {
  max-width: 100%;
  padding: 12mm
 }
 .brandbar {
  height: 2px;
  margin: 6px 0 10px
 }
 input, select, textarea {
  border: 1px solid #bfbfbf
 }
 canvas.signature {
  border: 1px solid #bbb
 }
}
