/* Tarjeta digital · Arq. Daniel Quevedo G. — Normaster®
   Monocromática, Manrope, escala áurea (√φ), pensada primero para el móvil. */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --black: #000;
  --ink: #0b0b0b;
  --white: #fff;
  --grey: #a8a8a6;      /* 8,6:1 sobre negro */
  --grey-2: #8c8c8a;    /* 6,2:1 sobre negro */
  --line: #3a3a39;
  --fs-0: 0.786rem; --fs-1: 1rem; --fs-2: 1.272rem; --fs-3: 1.618rem; --fs-4: 2.058rem;
  --s-1: 0.5rem; --s-2: 0.8125rem; --s-3: 1.3125rem; --s-4: 2.125rem; --s-5: 3.4375rem;
  --radius: 0.8125rem;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: var(--fs-1); line-height: 1.618; color: var(--white);
  background: radial-gradient(120% 60% at 50% 0%, #1b1b1b 0%, var(--black) 62%);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
sup { font-size: 0.55em; line-height: 0; vertical-align: 0.75em; }

.card {
  width: 100%; max-width: 30rem; margin: 0 auto;
  padding: 0 var(--s-3) calc(var(--s-5) + env(safe-area-inset-bottom));
}

/* Encabezado: la fotografía es el elemento principal */
.hero { position: relative; margin: 0 calc(-1 * var(--s-3)); }
.hero picture { display: block; }
.photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.hero::after {               /* fundido de la foto hacia el negro */
  content: ""; position: absolute; inset: auto 0 0 0; height: 62%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 55%, var(--black) 100%);
  pointer-events: none;
}
.brand {
  position: absolute; z-index: 2; top: calc(var(--s-3) + env(safe-area-inset-top)); left: var(--s-3);
  padding: var(--s-1) 0; opacity: .92;
}
.brand img { width: 5.875rem; height: auto; }
.intro {
  position: absolute; z-index: 2; left: var(--s-3); right: var(--s-3); bottom: var(--s-2);
}
h1 {
  margin: 0; font-size: clamp(var(--fs-3), 7.4vw, var(--fs-4)); line-height: 1.236;
  font-weight: 700; letter-spacing: -0.015em;
}
.role { margin: 0.25rem 0 0; font-size: var(--fs-2); font-weight: 500; line-height: 1.4; }
.spec { margin: var(--s-1) 0 0; font-size: 0.9375rem; color: var(--grey); line-height: 1.5; max-width: 26em; }

.bio {
  margin: var(--s-3) 0 var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line);
  font-size: var(--fs-1); color: #d6d6d4; line-height: 1.618;
}

/* Botones amplios (mín. 56 px de alto) */
.btn {
  display: flex; align-items: center; gap: var(--s-2);
  min-height: 3.5rem; padding: 0.75rem var(--s-3);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.02); color: var(--white);
  font-size: var(--fs-1); font-weight: 600; text-decoration: none;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn span { min-width: 0; overflow-wrap: anywhere; }
.btn .two { display: grid; line-height: 1.3; }
.btn .two small { font-size: var(--fs-0); font-weight: 500; color: var(--grey); letter-spacing: .01em; }
.btn svg { flex: none; width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.fill { fill: currentColor; stroke: none; }
.btn:hover { background: rgba(255,255,255,.07); border-color: #5a5a58; }
.btn:active { transform: scale(.985); }
.btn:focus-visible, .share:focus-visible, .brand:focus-visible, .foot a:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.btn--save {
  justify-content: center; min-height: 3.75rem; margin-bottom: var(--s-3);
  background: var(--white); color: var(--black); border-color: var(--white);
  font-size: var(--fs-2); font-weight: 700;
}
.btn--save:hover { background: #e9e9e7; border-color: #e9e9e7; }

.links { display: grid; gap: var(--s-2); }

/* «Solicitar una cita»: segundo nivel, destacado sin competir con «Guardar mi contacto» */
.btn--cita {
  min-height: 4rem; margin-bottom: var(--s-1);
  border: 1.5px solid var(--white); background: rgba(255,255,255,.06);
  font-size: 1.0625rem;
}
.btn--cita small { color: #c8c8c6; }
.btn--cita:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.share {
  display: flex; align-items: center; justify-content: center; gap: var(--s-1);
  width: 100%; margin: var(--s-3) 0 0; padding: var(--s-2);
  background: none; border: 0; color: var(--grey); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
}
.share svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.share:hover { color: var(--white); }
.share-msg { min-height: 1.5em; margin: 0; text-align: center; font-size: var(--fs-0); color: var(--grey); }

.foot {
  margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line);
  text-align: center; color: var(--grey-2); font-size: var(--fs-0);
}
.foot a { display: inline-block; padding: var(--s-1); opacity: .8; }
.foot img { width: 5.5rem; height: auto; }
.foot p { margin: var(--s-1) 0 0; }

/* Entrada discreta */
@media (prefers-reduced-motion: no-preference) {
  .intro, .bio, .btn--save, .links .btn, .foot { animation: rise .7s var(--ease) both; }
  .intro { animation-delay: .05s; }
  .bio { animation-delay: .15s; }
  .btn--save { animation-delay: .22s; }
  .links .btn:nth-child(1) { animation-delay: .28s; }
  .links .btn:nth-child(2) { animation-delay: .32s; }
  .links .btn:nth-child(3) { animation-delay: .36s; }
  .links .btn:nth-child(4) { animation-delay: .40s; }
  .links .btn:nth-child(5) { animation-delay: .44s; }
  .links .btn:nth-child(6) { animation-delay: .48s; }
  .foot { animation-delay: .5s; }
  .photo { animation: fade 1s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Escritorio: tarjeta centrada con marco sutil */
@media (min-width: 560px) {
  body { padding: var(--s-4) 0; }
  .card { border: 1px solid #1f1f1e; border-radius: 1.3125rem; overflow: hidden; background: var(--ink); padding-bottom: var(--s-4); }
  .hero::after { background: linear-gradient(to bottom, rgba(11,11,11,0) 0%, rgba(11,11,11,.72) 55%, var(--ink) 100%); }
}
