:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #172137;
  background: #e8eaf0;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #3475ce; outline-offset: 3px; }
.workspace {
  width: min(1110px, 100%); margin: auto; padding: 38px 28px 54px;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: start; gap: clamp(24px, 5vw, 72px);
}
.editor { background: white; border-radius: 22px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 16px 48px #29385012; }
.brand { font-size: 1.08rem; letter-spacing: -.025em; white-space: nowrap; }
.brand strong { font-weight: 850; }
.editor > .brand { color: #514124; }
.editor h1 { font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.05; letter-spacing: -.055em; margin: 18px 0 25px; }
.designs { margin: 0 0 23px; border: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; min-width: 0; }
.designs legend, .form-fields label, .sharing label { font-size: .9rem; font-weight: 650; }
.designs legend { margin-bottom: 8px; }
.designs label { position: relative; display: flex; }
.designs input { margin: 0; position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.designs span { width: 100%; min-height: 53px; padding: 8px 9px; display: flex; align-items: center; gap: 7px; border: 1px solid #d5d9e3; border-radius: 9px; color: #303949; font-size: .875rem; line-height: 1.2; }
.designs input:checked + span { outline: 2px solid #172137; outline-offset: -2px; background: #f0f2f7; font-weight: 700; }
.designs input:focus-visible + span { outline: 3px solid #3475ce; }
.designs i { width: 10px; height: 23px; flex: 0 0 10px; border-radius: 2px; background: #936c36; }
.designs label:nth-of-type(2) i { background: #eee3cd; }
.designs label:nth-of-type(3) i { background: #192b25; }
.designs label:nth-of-type(4) i { background: #263d61; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 10px; }
.form-fields .wide { grid-column: 1 / -1; }
input:not([type="radio"]) {
  display: block; width: 100%; min-width: 0; min-height: 45px; margin-top: 5px;
  padding: 8px 10px; background: #fff; color: #172137; border: 1px solid #c6ccda; border-radius: 7px;
  font-size: 1rem;
}
.primary, .share-actions > *, .card-actions a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 9px 14px; background: #172137; color: white; border: 1px solid transparent;
  border-radius: 7px; font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.primary { margin-top: 18px; width: 100%; }
.primary:hover, .share-actions > *:hover, .card-actions a:hover { filter: brightness(1.15); }
.sharing { margin-top: 16px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.share-actions a { background: #17593d; }
.hint, .status { font-size: .875rem; }
.hint { color: #536076; margin: 9px 0 0; }
.status { margin: 7px 0 0; min-height: 1.25em; }
.preview { min-width: 0; }
.preview-label { margin: 0 0 10px; color: #4a5669; font-size: .9rem; font-weight: 650; }
.preview-label span:first-child { padding-inline: 5px; }
.invitation {
  --ink: #f7f2e7; --muted: #e1c89d; --rule: #a686536c; --paper: #141d32; --button: #f0d7a8; --button-ink: #141d32;
  display: grid; grid-template-columns: 1fr; max-width: 570px; margin: auto; overflow: hidden;
  color: var(--ink); background: var(--paper); border-radius: 20px; box-shadow: 0 20px 60px #25304427;
}
.card-header, .intro, .letter, .details, .documents-note { padding-inline: clamp(20px, 6%, 36px); }
.card-header { padding-top: 23px; color: var(--muted); }
.intro { padding-top: 18px; padding-bottom: 20px; }
.intro h1 { font: 400 clamp(2.2rem, 5vw, 3.65rem)/.98 Georgia, serif; letter-spacing: -.052em; margin: 0; text-wrap: balance; }
.intro h1 em { display: block; color: var(--muted); font-weight: 400; }
.art { position: relative; contain: paint; min-width: 0; }
.portrait { width: 100%; height: 100%; display: none; object-fit: cover; object-position: center 22%; }
.folder { position: relative; overflow: hidden; width: 100%; height: 100%; min-height: 0; background: #201b17; }
.folder img { position: absolute; width: 238%; left: -138%; height: auto; display: block; }
.editorial .art { aspect-ratio: 1.8; }
.editorial .portrait { display: block; object-position: center 5%; }
.editorial .folder { display: none; }
.details { padding-top: 17px; padding-bottom: 14px; }
.details dl { margin: 0; }
.details dl > div { border-bottom: 1px solid var(--rule); padding: 9px 0; }
.details dt { color: var(--muted); font-size: .875rem; font-weight: 700; }
.details dd { margin: 2px 0 0; overflow-wrap: anywhere; line-height: 1.35; }
.details .date-row { padding-top: 0; }
.date-row dd { font: 400 clamp(1.36rem, 3.5vw, 1.95rem)/1.15 Georgia, serif; margin-top: 4px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.card-actions a { background: var(--button); color: var(--button-ink); }
.despacho { --paper: #fbf5e8; --ink: #24231f; --muted: #72521f; --rule: #92733a60; --button: #4f391b; --button-ink: #fffaf0; }
.despacho .art { grid-row: 2; aspect-ratio: 2.05; margin: 17px clamp(20px, 6%, 36px) 0; border-radius: 4px; border: 1px solid var(--rule); }
.despacho .portrait { display: block; object-position: center 8%; }
.despacho .folder { display: none; }
.despacho .intro { padding-bottom: 6px; }
.despacho .intro h1 em { display: inline; }
.dorado { --paper: #162822; --ink: #fffae9; --muted: #e7c68e; --rule: #dac38b63; --button: #e7c68e; --button-ink: #162822; }
.dorado .card-header, .dorado .intro { text-align: center; }
.dorado .art { grid-row: 3; aspect-ratio: 2.2; display: grid; grid-template-columns: 64% 36%; margin: 0 6%; border: 1px solid var(--rule); }
.dorado .portrait { display: block; grid-column: 1; grid-row: 1; object-position: center 7%; }
.dorado .folder { grid-column: 2; grid-row: 1; }
.dorado .folder img { width: 295%; left: -182%; top: -170%; }
.dorado .date-row { text-align: center; }
.personal { --paper: #f7f9fe; --ink: #192b49; --muted: #435c82; --rule: #9cacc6a0; --button: #273f65; --button-ink: #fff; }
.personal .intro { background: #e3eaf5; display: grid; align-content: center; }
.personal .card-header { grid-column: 1 / -1; background: #223b61; color: white; padding-bottom: 18px; }
.personal { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.personal .art { grid-column: 2; grid-row: 2; }
.personal .portrait { display: block; object-position: 47% 8%; }
.personal .folder { display: none; }
.personal .intro h1 { font-size: clamp(1.72rem, 4vw, 2.75rem); }
.personal .letter, .personal .details, .personal .documents-note { grid-column: 1 / -1; }
.personal .date-row { background: #e3eaf5; border: 0 !important; border-radius: 8px; padding: 12px !important; }
.client .workspace { display: block; width: min(100%, 630px); }
.client .preview-label, .client .editor { display: none; }
.error { margin: 20px auto; max-width: 35ch; color: #742514; background: #fff0eb; padding: 18px; border-radius: 10px; }
@media (max-width: 770px) {
  .workspace { grid-template-columns: 1fr; max-width: 570px; padding: 20px 14px 32px; }
  .editor { padding: 20px; }
  .intro h1 { font-size: clamp(2.12rem, 8vw, 3.2rem); }
  .personal .intro h1 { font-size: clamp(1.55rem, 5.5vw, 2.35rem); }
}
@media (max-width: 370px) {
  .editor { padding-inline: 14px; }
  .designs span { padding-inline: 6px; }
  .personal .intro { padding-inline: 13px; }
}
.jump-preview { display: none; }
@media (max-width: 770px) {
  .jump-preview { display: inline-block; font-size: .9rem; font-weight: 650; margin: -5px 0 16px; }
}

.appointment-time { white-space: nowrap; }

.letter { padding-top: 21px; padding-bottom: 8px; }
.letter p { margin: 0 0 10px; line-height: 1.55; }
.letter p:last-child { margin-bottom: 0; }

.letter-signature { display: grid; justify-items: start; gap: 5px; margin: 15px 0 11px; }
.handwritten {
  display: block; width: min(100%, 220px); aspect-ratio: 391 / 114;
  background-color: var(--ink);
  -webkit-mask: url("firma-alberto.svg") center / contain no-repeat;
  mask: url("firma-alberto.svg") center / contain no-repeat;
}
.hashtag { color: var(--muted); font-size: .9rem; }
.documents-note { border-top: 1px solid var(--rule); padding-top: 16px; padding-bottom: 22px; }
.documents-note p { margin: 0; line-height: 1.55; }
.documents-note strong { color: var(--muted); }
