/* Tarjeta digital Juan Oviedo · v2 · 21-sep-2026
   Identidad: Manual_de_Marca_MVP (paleta §2, tipografía §3, botones §8.3)
   Dirección de arte: Sistema_Templo_Verde (§2 el cobre fluye, §3 receta de profundidad) */

@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(fonts/dmsans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(fonts/dmsans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans'; font-style: italic; font-weight: 300 800; font-display: swap;
  src: url(fonts/dmsans-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Primarios y acento, Manual §2 */
  --templo: #0B1410;          /* Verde templo, lienzo de superficie oscura */
  --forest: #1C2E24;          /* Forest Green, superficies y paneles */
  --graphite: #0E0E0E;        /* Graphite Black, texto sobre cobre */
  --white: #FFFFFF;
  --cobre: #C8792A;           /* Acento único */
  --sage: #9FB0A6;            /* Sage claro, obligatorio bajo 24px sobre oscuro */
  --verde-tenue: #F4F9F6;     /* Superficie clara que rodea la tarjeta */
  --linea: rgba(159,176,166,.16);
  --linea-fuerte: rgba(159,176,166,.28);
}

* { box-sizing: border-box; }
html { background: var(--verde-tenue); scroll-behavior: smooth; }
body {
  margin: 0; color: var(--white);
  font-family: 'DM Sans', ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
main { min-height: 100svh; background: var(--verde-tenue); }

/* Capa 1 de profundidad: fondo con luz propia, nunca color plano */
.card {
  width: 100%; min-height: 100svh; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 50% 9%, color-mix(in srgb, var(--cobre) 13%, transparent), transparent 12rem),
    radial-gradient(circle at 6% 74%, rgba(28,46,36,.9), transparent 26rem),
    radial-gradient(circle at 97% 60%, color-mix(in srgb, var(--cobre) 7%, transparent), transparent 20rem),
    linear-gradient(158deg, #14251C 0%, #0B1410 46%, #070F0C 100%);
}
/* Capa 3: atmósfera, la trama fina que separa los planos */
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: linear-gradient(rgba(159,176,166,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(159,176,166,.5) 1px, transparent 1px);
  background-size: 4px 4px;
  mask-image: linear-gradient(to bottom, transparent, black 22%, black 75%, transparent);
}

.hero { position: relative; z-index: 1; padding: 2.4rem 1.25rem 1.5rem; text-align: center; }
.portraitGlow {
  position: absolute; width: 16rem; height: 16rem; left: 50%; top: 2.6rem; transform: translateX(-50%);
  border-radius: 50%; background: color-mix(in srgb, var(--cobre) 18%, transparent); filter: blur(3.4rem);
}
/* El filamento literal: una sola línea de cobre que entra, recorre el cuadro y sale */
.filament { position: absolute; left: 0; top: 3rem; width: 100%; height: 11rem; z-index: 0; pointer-events: none; }
/* El cobre como polvo: entra por el borde, recorre, no se queda en charco */
.dotPattern {
  position: absolute; left: -.4rem; top: 6rem; width: 8rem; height: 10rem; opacity: .8;
  background-image: radial-gradient(circle, var(--cobre) 1px, transparent 1.3px); background-size: .62rem .62rem;
  mask-image: radial-gradient(ellipse, black, transparent 72%);
}
.dotPatternRight {
  left: auto; right: -1rem; top: 9.5rem; width: 6rem; height: 7rem; opacity: .45;
}
.portraitRing {
  width: clamp(10rem,50vw,12rem); aspect-ratio: 1; margin: 0 auto 1.35rem; position: relative; z-index: 2; overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--cobre) 88%, transparent); border-radius: 50%; background: var(--forest);
  box-shadow:
    0 0 0 .45rem rgba(11,20,16,.55),
    0 0 0 calc(.45rem + 1px) rgba(159,176,166,.14),
    0 1.4rem 4rem rgba(0,0,0,.46);
}
.profilePhoto { width: 100%; height: 100%; display: block; object-fit: cover; }

h1 {
  margin: 0; color: var(--white); font-size: clamp(2.5rem,11.5vw,4.6rem); line-height: 1.02;
  letter-spacing: -.02em; font-weight: 800; text-wrap: balance;
}
.role { margin: .8rem 0 0; font-size: clamp(1rem,4.4vw,1.35rem); line-height: 1.35; }
.role strong { color: var(--cobre); font-weight: 500; letter-spacing: -.01em; }
.accentLine { width: 3.2rem; height: .2rem; margin: 1.25rem auto; display: block; border-radius: 1rem; background: var(--cobre); }
.intro { max-width: 34rem; margin: 0 auto; color: var(--sage); font-size: clamp(.98rem,4vw,1.15rem); line-height: 1.55; text-wrap: balance; }

.actions { position: relative; z-index: 1; padding: .5rem 1rem 1.6rem; }

/* Botón primario de conversión, Manual §8.3: fondo cobre, texto graphite, uno solo por pantalla */
.primaryAction {
  min-height: 5.4rem; padding: 1rem 1.2rem; display: grid; grid-template-columns: 3rem 1fr 2rem;
  align-items: center; gap: .8rem; border-radius: 1rem; background: var(--cobre); color: var(--graphite);
  box-shadow: 0 .9rem 2.6rem color-mix(in srgb, var(--cobre) 22%, transparent);
  transition: transform .18s ease, filter .18s ease;
}
.primaryAction:hover { filter: brightness(1.06); }
.primaryAction:active { transform: scale(.987); }
.primaryAction strong { font-size: 1.15rem; font-weight: 700; text-align: center; letter-spacing: -.01em; }
.primaryIcon {
  width: 2.85rem; height: 2.85rem; display: grid; place-items: center; border-radius: 50%;
  background: rgba(14,14,14,.13); color: var(--graphite); font-size: 1.75rem; font-weight: 300;
}
.actionArrow { justify-self: end; font-size: 2.1rem; font-weight: 200; color: rgba(14,14,14,.62); }

.contactList { display: grid; gap: .7rem; margin-top: .8rem; }
.contactRow {
  min-height: 4.9rem; padding: .85rem 1rem; display: grid; grid-template-columns: 2.9rem 1fr 1.1rem; gap: .9rem;
  align-items: center; border: 1px solid var(--linea); border-radius: 1rem;
  background: linear-gradient(105deg, rgba(28,46,36,.92), rgba(28,46,36,.58));
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.contactRow:active, .walletAction:active, .linkList a:active { transform: scale(.992); }
.contactRow:hover { border-color: color-mix(in srgb, var(--cobre) 55%, transparent); transform: translateY(-1px); }
.contactIcon {
  width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border: 1px solid var(--linea);
  border-radius: .75rem; background: rgba(11,20,16,.72); color: var(--cobre);
}
.mailIcon { position: relative; }
.mailIcon::before { content: ""; position: absolute; width: 1.45rem; height: 1.05rem; left: 50%; top: 50%; transform: translate(-50%,-50%); border: .15rem solid var(--cobre); border-radius: .15rem; }
.mailIcon::after { content: ""; position: absolute; width: .85rem; height: .85rem; left: 50%; top: .82rem; transform: translateX(-50%) rotate(45deg); border-right: .15rem solid var(--cobre); border-bottom: .15rem solid var(--cobre); }
.phoneIcon::before {
  content: ""; width: 1.7rem; height: 1.7rem; display: block; background: var(--cobre);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.78.62 2.63a2 2 0 0 1-.45 2.11L8 9.74a16 16 0 0 0 6.26 6.26l1.28-1.28a2 2 0 0 1 2.11-.45c.85.29 1.73.5 2.63.62A2 2 0 0 1 22 16.92z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.78.62 2.63a2 2 0 0 1-.45 2.11L8 9.74a16 16 0 0 0 6.26 6.26l1.28-1.28a2 2 0 0 1 2.11-.45c.85.29 1.73.5 2.63.62A2 2 0 0 1 22 16.92z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.contactCopy { min-width: 0; text-align: left; }
/* Eyebrow, Manual §3.2: 10-11px, uppercase, tracking .10em, cobre */
.rowLabel { display: block; color: var(--cobre); font-size: .63rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.contactCopy strong { display: block; margin-top: .15rem; color: var(--white); font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.contactCopy small { display: block; margin-top: .12rem; color: var(--sage); font-size: .8rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.roundArrow { justify-self: end; color: var(--sage); font-size: 1.6rem; line-height: 1; }

/* Label de UI, Manual §3.2: Medium 500, uppercase, tracking .08em */
.sectionLabel { margin: 1.5rem 0 .7rem; color: var(--sage); text-align: center; font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.linkList { padding: .15rem 1rem; border: 1px solid var(--linea); border-radius: 1rem; background: linear-gradient(105deg, rgba(28,46,36,.92), rgba(28,46,36,.58)); }
.linkList a { min-height: 4rem; display: grid; grid-template-columns: 2.9rem 1fr 1.1rem; gap: .9rem; align-items: center; border-bottom: 1px solid var(--linea); transition: transform .12s ease; }
.linkList a:last-child { border-bottom: 0; }
.linkList strong { font-size: 1rem; font-weight: 500; }
.linkList a > span:last-child { justify-self: end; color: var(--sage); font-size: 1.6rem; line-height: 1; }
.linkIcon { width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border: 1px solid var(--linea); border-radius: .75rem; background: rgba(255,255,255,.06); color: var(--sage); font-size: .82rem; font-weight: 700; }
.linkedInIcon { font-size: .95rem; font-weight: 800; letter-spacing: -.02em; }
.portfolioIcon { font-size: 1rem; }
/* El enlace a Proyecto Unum es el único que lleva el acento */
.brandIcon { background: var(--cobre); border-color: transparent; color: var(--graphite); }
.brandIcon::before {
  content: ""; width: 1.35rem; height: 1.35rem; display: block; background: var(--graphite);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9S14.5 21.3 12 21c-2.5-.3-3.8-5.7-3.8-9S9.5 5.7 12 3z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9S14.5 21.3 12 21c-2.5-.3-3.8-5.7-3.8-9S9.5 5.7 12 3z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

/* Ghost oscuro, Manual §8.3 */
.shareButton {
  width: 100%; min-height: 4.25rem; margin-top: .8rem; border: 1px solid rgba(255,255,255,.4); border-radius: 1rem;
  display: flex; justify-content: center; align-items: center; gap: .7rem;
  background: rgba(255,255,255,.08); color: var(--white); font: inherit; font-size: .98rem; font-weight: 500; cursor: pointer;
  transition: background .18s ease;
}
.shareButton:hover { background: rgba(255,255,255,.13); }
.shareButton span:first-child { color: var(--sage); font-size: 1.2rem; }

/* Acción secundaria, Manual §8.3: fondo Forest Green, texto blanco. El cobre se queda en el CTA primario */
.walletAction {
  min-height: 4.9rem; margin-top: .7rem; padding: .85rem 1rem; display: grid;
  grid-template-columns: 2.9rem 1fr 1.1rem; gap: .9rem; align-items: center;
  border: 1px solid var(--linea); border-radius: 1rem; background: var(--forest); color: var(--white);
  transition: border-color .18s ease, transform .18s ease;
}
.walletAction:hover { border-color: color-mix(in srgb, var(--cobre) 55%, transparent); transform: translateY(-1px); }
.walletMark {
  width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: .75rem;
  border: 1px solid var(--linea); background: rgba(11,20,16,.72);
}
.walletMark::before {
  content: ""; width: 1.5rem; height: 1.5rem; display: block; background: var(--cobre);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5.5' width='19' height='14' rx='3'/%3E%3Cpath d='M2.5 10h19M7 15h3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5.5' width='19' height='14' rx='3'/%3E%3Cpath d='M2.5 10h19M7 15h3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.walletCopy { min-width: 0; }
.walletCopy strong { display: block; color: var(--white); font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.walletCopy small { display: block; margin-top: .2rem; color: var(--sage); font-size: .78rem; }
.walletArrow { justify-self: end; color: var(--sage); font-size: 1.6rem; line-height: 1; }

/* Footer: wordmark oficial en versión blanca sobre verde, Manual §1 */
footer { position: relative; z-index: 1; padding: .6rem 1rem 1.9rem; display: grid; justify-items: center; gap: .9rem; }
.footerMark { width: clamp(9rem,42vw,11rem); height: auto; display: block; opacity: .92; }
.footerPlace { display: flex; align-items: center; gap: .45rem; color: var(--sage); font-size: .8rem; }
.pin { color: var(--cobre); font-size: 1.1rem; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--cobre) 70%, white); outline-offset: 3px; }

@media (min-width:600px) {
  main { padding: 2rem 1rem; }
  .card { width: min(100%,32rem); min-height: auto; margin: 0 auto; border-radius: 2rem; box-shadow: 0 2rem 5rem rgba(11,20,16,.28); }
  .hero { padding: 3rem 2.2rem 1.8rem; }
  .filament { top: 4.5rem; height: 16rem; }
  .dotPatternRight { top: 14rem; }
  .actions { padding: .8rem 2.2rem 2rem; }
  .footerMark { width: 12rem; }
  footer { padding-bottom: 2.4rem; }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
