:root {
  color-scheme: light;
  --plum: #34263b;
  --wine: #76364e;
  --gold: #e8cbab;
  --teal: #126663;
  --teal-light: #b1dcd5;
  --paper: #fffcf8;
  --muted: #675c68;
  --line: #e4dcdd;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1rem, 5vw, 4rem);
  display: grid;
  align-content: center;
  justify-items: center;
  background: radial-gradient(ellipse at 5% 0%, #fffaf4, transparent 65%), #efebe8;
  color: var(--plum);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #187a82;
  outline-offset: 3px;
  border-radius: 4px;
}
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  flex: none; width: 1.35rem; height: 1.35rem;
  fill: none; stroke: currentColor; stroke-width: 1.65;
  stroke-linecap: round; stroke-linejoin: round;
}
.card {
  width: min(100%, 62rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border: 1px solid #dfd7d9;
  border-radius: 1rem;
  background: var(--paper);
  overflow: clip;
  box-shadow: 0 1.3rem 4.5rem -2rem #36253c55;
}
.identity {
  position: relative;
  padding: clamp(1.6rem, 4vw, 3.25rem);
  display: flex; flex-direction: column;
  color: var(--paper); background: var(--plum);
}
.identity::before {
  content: ""; position: absolute; inset: 0 0 auto; height: .32rem;
  background: linear-gradient(to right, #843c52 0 45%, #d8be97 45% 78%, #279d96 78%);
}
.identity-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.monogram {
  font: italic 1.65rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.22rem; color: var(--gold);
  padding-right: .15rem;
}
.card-label { font-size: .875rem; color: var(--teal-light); letter-spacing: .08em; font-weight: 600; }
.profile {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 37%);
  align-items: center; gap: 1.1rem; margin: clamp(2rem, 4.5vw, 4.1rem) 0 1.65rem;
}
h1, h2, p { margin: 0; }
h1 {
  font: 600 clamp(1.5rem, 2.35vw, 2rem)/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.035em;
  white-space: nowrap;
  color: var(--paper);
}
.offer strong { color: var(--teal-light); font-weight: 600; }
.portrait {
  position: relative;
  padding: 0 .32rem .32rem 0;
}
.portrait::before {
  position: absolute; content: ""; inset: .36rem 0 0 .36rem;
  border: 1px solid #b19180; border-radius: 8rem 8rem .45rem .45rem;
}
.portrait img {
  position: relative; display: block; width: 100%; height: auto;
  aspect-ratio: 0.82; object-fit: cover; object-position: 50% 32%;
  border-radius: 8rem 8rem .3rem .3rem;
}
.role { font-size: clamp(1.15rem, 1.85vw, 1.38rem); line-height: 1.45; font-weight: 600; max-width: 18.5rem; }
.offer {
  color: #e0d5df; font-size: 1rem; line-height: 1.65;
  padding-top: 1.2rem; border-top: 1px solid #66556b; margin-top: 1.4rem;
}
.contact { padding: clamp(1.6rem, 3.65vw, 3rem); }
.contact h2 { font: normal 2.25rem/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.2rem 0 .9rem; }
.action {
  display: inline-flex; justify-content: center; align-items: center; gap: .48rem;
  border: 1px solid transparent; min-height: 2.9rem;
  padding: .68rem .95rem; border-radius: .5rem;
  font-weight: 650; font-size: .9375rem; line-height: 1.35;
}
.primary { background: var(--wine); color: white; }
.primary:hover { background: #60283f; }
.whatsapp { background: #e2f1ed; color: #155c57; border-color: #c6e0d9; }
.whatsapp:hover { background: #d3e9e3; }
.directory { font-style: normal; }
.entry {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: .72rem .15rem; border-top: 1px solid var(--line);
}
.entry .icon { color: var(--teal); margin-top: .24rem; }
.entry small, .value, .street { display: block; }
.entry small { font-size: .875rem; line-height: 1.4; color: var(--muted); margin-bottom: .08rem; }
.value { font-size: 1.035rem; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.entry:hover .value { text-decoration: underline; text-underline-offset: .18em; }
.street { font-size: .9375rem; line-height: 1.45; color: var(--muted); margin-top: .15rem; }
.office { padding-bottom: 0; }
.sharing { grid-column: 1 / -1; background: #f7f3ef; border-top: 1px solid var(--line); }
.sharing summary {
  display: flex; align-items: center; gap: .75rem;
  cursor: pointer; padding: .95rem clamp(1.3rem, 3.65vw, 3rem);
  font-weight: 650; list-style: none; min-height: 3.45rem;
}
.sharing summary::-webkit-details-marker { display: none; }
.sharing summary:hover { background: #f0eae6; }
.sharing summary:focus-visible { outline-offset: -4px; }
.sharing summary .icon:first-child { color: var(--wine); }
.hint { margin-left: auto; font-size: .875rem; color: var(--muted); font-weight: 400; }
.more { width: 1.05rem; height: 1.05rem; }
.sharing[open] .more { transform: rotate(45deg); }
.share-panel {
  display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center;
  gap: clamp(1rem, 4vw, 2.2rem); padding: 1rem clamp(1.3rem, 3.65vw, 3rem) 1.6rem;
  border-top: 1px solid var(--line);
}
.qr { background: white; max-width: 100%; height: auto; image-rendering: pixelated; }
.share-address { font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; }
.share-links { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .5rem; }
.share-links :is(button,a) {
  display: inline-flex; align-items: center; background: transparent; border: 0;
  color: var(--teal); font-weight: 600; padding: .4rem 0; min-height: 2.75rem;
  font-size: .9375rem; text-align: left; cursor: pointer;
  text-decoration: underline; text-underline-offset: .2rem;
}
.share-links [hidden] { display: none; }
#share-status:not(:empty) { color: var(--teal); margin-top: .5rem; font-size: .9375rem; }
@media (max-width: 44rem) {
  body { padding: 1rem; }
  .card { grid-template-columns: minmax(0,1fr); max-width: 30rem; }
  .identity { padding: 1.45rem 1.45rem 1.4rem; }
  .profile { margin: 1.35rem 0 1rem; grid-template-columns: minmax(0,1fr) minmax(0,31%); }
  h1 { font-size: clamp(1.45rem, 6.3vw, 2rem); }
  .portrait { max-width: 7.75rem; width: 100%; justify-self: end; }
  .role { max-width: none; font-size: 1.12rem; }
  .offer { padding-top: .8rem; margin-top: .85rem; line-height: 1.5; }
  .contact { padding: 1.35rem 1.45rem 1.45rem; }
  .contact h2 { font-size: 1.75rem; }
  .actions { display: grid; grid-template-columns: 1.26fr 1fr; margin-top: .85rem; }
  .action { gap: .35rem; padding: .65rem .45rem; }
  .hint { display: none; }
  .more { margin-left: auto; }
  .share-panel { grid-template-columns: 1fr; justify-items: center; }
  .share-content { text-align: center; min-width: 0; }
  .share-links { justify-content: center; }
}
@media (max-width: 23rem) {
  body { padding: .55rem; }
  .identity, .contact { padding-left: 1.05rem; padding-right: 1.05rem; }
  .actions { grid-template-columns: 1fr; }
}
