@font-face {
  font-family: Manrope;
  src: url("manrope-500.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("manrope-700.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222225;
  background: #e9eaed;
  font-synthesis: none;
  letter-spacing: 0;
  --red: #ed1824;
  --ink: #19191b;
  --muted: #6a6a72;
  --line: #e8e8eb;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, a { -webkit-user-select: none; user-select: none; }
svg { display: block; width: 22px; height: 22px; flex-shrink: 0; }
a:focus-visible { outline: 3px solid #007bba; outline-offset: 4px; border-radius: 4px; }
strong { font-weight: 700; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 36px 20px;
  background-image: repeating-linear-gradient(135deg, transparent 0 79px, #dfe0e4 79px 80px);
}

.contact-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 22px 64px #15151a1c, 0 3px 12px #15151a0b;
  animation: appear 500ms ease both;
}

.identity {
  position: relative;
  padding: 22px 30px 30px;
  background: var(--ink);
  border-top: 4px solid var(--red);
  text-align: center;
}

.identity-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #bcbcc2;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 27px;
}

.wordmark { display: block; width: 286px; max-width: 100%; height: auto; margin: 0 auto; }
.specialties { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin: 22px 0 0; font-size: 0.8125rem; color: #d3d3d8; line-height: 1.7; }
.specialties span { color: #74747d; }
.identity-rule { width: 30px; height: 3px; background: var(--red); position: absolute; bottom: 0; left: calc(50% - 15px); }
.contact-body { padding: 24px 28px 22px; }

.save-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 13px 16px;
  border-radius: 6px;
  background: #df1521;
  color: white;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 4px 10px #df152119;
  transition: background 160ms, transform 160ms, box-shadow 160ms;
}
.save-contact svg { width: 21px; height: 21px; }
.whatsapp-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); margin-top: 19px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.whatsapp-action { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 6px; border-radius: 5px; transition: background 160ms; }
.whatsapp-action + .whatsapp-action { border-left: 1px solid var(--line); border-radius: 0 5px 5px 0; }
.whatsapp-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: #128c4b; flex-shrink: 0; }
.whatsapp-icon svg { width: 30px; height: 30px; }
.action-copy { display: flex; flex-direction: column; min-width: 0; gap: 3px; line-height: 1.55; }
.action-copy > span { color: var(--muted); font-size: 0.8125rem; overflow-wrap: anywhere; }
.action-copy strong { font-size: 0.9375rem; overflow-wrap: anywhere; }
.whatsapp-action .action-copy strong { font-size: 1rem; }
.contact-row { display: flex; align-items: center; gap: 17px; min-height: 76px; border-bottom: 1px solid var(--line); padding: 12px 8px; transition: background 160ms; }
.line-icon { display: grid; place-items: center; width: 34px; height: 36px; flex-shrink: 0; color: #616168; }
.contact-row .action-copy strong { font-size: 1rem; }
.phone-number { font-variant-numeric: tabular-nums; }

.web-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); border-bottom: 1px solid var(--line); padding: 6px 0; }
.web-actions a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 4px; font-weight: 700; font-size: 0.875rem; transition: color 160ms; }
.web-actions a + a { position: relative; }
.web-actions a + a::before { content: ""; position: absolute; left: 0; width: 1px; height: 22px; background: var(--line); }
.web-actions svg { width: 19px; height: 19px; color: #616168; }
.social-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 21px; }
.social-link { display: flex; flex: 1 0 5rem; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 65px; font-size: 0.8125rem; line-height: 1.5; color: #5f5f66; }
.social-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: #fff; transition: transform 160ms, box-shadow 160ms; }
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
.instagram { background: radial-gradient(circle at 26% 100%, #ffd600 0, #ff7a00 20%, #ff0169 49%, #d300c5 73%, #7638fa 100%); }
.facebook { background: #1877f2; }
.facebook svg { width: 12px; height: 23px; }
.linkedin { background: #0a66c2; }
.linkedin svg { width: 18px; height: 18px; }

.location { display: flex; align-items: center; gap: 12px; background: #f3f3f5; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 28px; transition: background 160ms; }
.location-pin { color: #d21824; align-self: flex-start; padding-top: 2px; }
.location-pin svg { width: 22px; height: 22px; }
.location-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.6; }
.location-copy strong { font-size: 0.875rem; margin-bottom: 2px; }
.location-copy > span { color: #696970; font-size: 0.75rem; overflow-wrap: anywhere; }
.directions { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #bb101c; margin-left: auto; padding-left: 8px; font-size: 0.75rem; line-height: 1.5; flex-shrink: 0; }
.directions svg { width: 20px; height: 20px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 28px; font-size: 0.75rem; color: #707078; line-height: 1.5; }
.footer-mark { width: 20px; height: 3px; background: var(--red); flex-shrink: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (hover: hover) {
  .save-contact:hover { background: #c3101b; transform: translateY(-1px); box-shadow: 0 7px 18px #df15212b; }
  .whatsapp-action:hover { background: #f3faf5; }
  .contact-row:hover { background: #f8f8f9; }
  .web-actions a:hover { color: #cc1520; }
  .social-link:hover .social-icon { transform: translateY(-3px); box-shadow: 0 5px 9px #18181b18; }
  .social-link:hover { color: #242429; }
  .location:hover { background: #ebebef; }
}
a:active { opacity: 0.8; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 480px) {
  .page { padding: 0; display: block; background: #fff; }
  .contact-card { max-width: none; border-radius: 0; box-shadow: none; }
  .identity { padding-top: max(18px, env(safe-area-inset-top)); padding-left: 26px; padding-right: 26px; }
  .identity-topline { margin-bottom: 25px; }
  .contact-body { padding: 22px 24px 20px; }
  .location { padding: 19px 24px; }
  .card-footer { padding: 17px 24px max(17px, env(safe-area-inset-bottom)); }
}

@media (max-width: 359px) {
  .identity { padding-left: 20px; padding-right: 20px; }
  .identity-topline { font-size: 0.75rem; }
  .specialties { gap: 8px; font-size: 0.75rem; }
  .contact-body { padding-left: 18px; padding-right: 18px; }
  .save-contact { gap: 9px; padding-left: 10px; padding-right: 10px; font-size: 0.875rem; }
  .whatsapp-action { gap: 7px; }
  .location { padding-left: 18px; padding-right: 18px; gap: 9px; }
  .directions > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .directions { padding-left: 0; }
  .card-footer { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .page { padding: 0; background: white; }
  .contact-card { box-shadow: none; border: 1px solid #ddd; }
  .identity, .save-contact, .social-icon { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
