:root {
  --bg: #FCFCFD;
  --card: #FFFFFF;
  --text: #53382C;
  --muted: #866151;
  --gold: #A85C3F;
  --gold-soft: rgba(168, 92, 63, 0.14);
  --shadow: 0 18px 45px rgba(83, 56, 44, 0.12);
  --shadow-soft: 0 10px 28px rgba(83, 56, 44, 0.10);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  width: 100%;
}

.bio-page {
  width: 100%;
  min-height: 100vh;
  background: transparent;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}



.hero {
  position: relative;
  height: clamp(340px, 92vw, 430px);
  overflow: hidden;
  background: #ECCDBE;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.98) contrast(1.02);
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(180deg, rgba(250, 245, 241, 0) 0%, rgba(250, 245, 241, 0.75) 65%, var(--bg) 100%);
  pointer-events: none;
}

.quick-actions {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 0 24px 34px;
  margin-top: -24px;
}



.icon {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--brand {
  fill: currentColor;
  stroke: none;
}

.link-card:active {
  transform: scale(0.985);
}

.links {
  display: grid;
  gap: 24px;
  padding: 0 18px 28px;
}



.link-card {
  min-height: 88px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 17px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 32px rgba(83, 56, 44, 0.10);
  position: relative;
  overflow: hidden;
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease, background 190ms ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.58), transparent 52%);
  opacity: 0;
  transition: opacity 190ms ease;
  pointer-events: none;
}

.link-card:focus-visible {
  transform: translateY(-3px);
  background: #FFFFFF;
  border-color: rgba(168, 92, 63, 0.14);
  box-shadow: 0 18px 42px rgba(83, 56, 44, 0.14);
  outline: none;
}

.link-card:focus-visible::before {
  opacity: 1;
}

@media (hover: hover) {
  .link-card:hover {
    transform: translateY(-3px);
    background: #FFFFFF;
    border-color: rgba(168, 92, 63, 0.14);
    box-shadow: 0 18px 42px rgba(83, 56, 44, 0.14);
  }

  .link-card:hover::before {
    opacity: 1;
  }
}

.link-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(168, 92, 63, 0.12), rgba(168, 92, 63, 0.055));
  border: 1px solid rgba(168, 92, 63, 0.09);
}

.link-content strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 5px;
}

.link-content span {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.48;
  font-weight: 300;
  letter-spacing: -0.02em;
}



.footer {
  text-align: left;
  padding: 2px 24px 28px;
}



.copyright {
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 520px) {
  body {
    padding-block: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 35, 25, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 40px rgba(83, 56, 44, 0.2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 300ms ease;
  padding: 34px 24px 24px;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(168, 92, 63, 0.08);
  border: none;
  color: var(--gold);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease;
}

.modal-close:hover {
  background: rgba(168, 92, 63, 0.15);
}

.cv-title {
  color: var(--gold);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  text-align: left;
  margin-bottom: 24px;
}

.cv-section {
  margin-bottom: 22px;
}

.cv-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 5px;
}

.cv-section p {
  color: var(--text);
  line-height: 1.48;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* Button override */
button.link-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  outline: none;
}

/* WhatsApp Perimeter Animation */
.whatsapp-btn {
  border-color: transparent !important;
}

.animated-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  overflow: hidden;
}

.animated-border::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent 75%, var(--gold) 100%);
  animation: spinBorder 2.5s linear infinite;
}

@keyframes spinBorder {
  to {
    transform: rotate(360deg);
  }
}

