:root {
  --bg: #F6EFE9;
  --card: #FFF9F4;
  --text: #6E5A3F;
  --muted: #8A765D;
  --gold: #7A663F;
  --gold-soft: rgba(122, 102, 63, 0.14);
  --shadow: 0 18px 45px rgba(110, 90, 63, 0.12);
  --shadow-soft: 0 10px 28px rgba(110, 90, 63, 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:
    radial-gradient(circle at top left, rgba(255, 249, 244, 0.94), transparent 34rem),
    linear-gradient(180deg, #FBF5EF 0%, var(--bg) 48%, #EFE4DA 100%);
  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;
}

.bio-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.48), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(122, 102, 63, 0.08), transparent 15rem);
  z-index: -1;
}

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

.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(246, 239, 233, 0) 0%, rgba(246, 239, 233, 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;
}

.quick-action {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: rgba(255, 249, 244, 0.92);
  border: 1px solid rgba(122, 102, 63, 0.11);
  color: var(--gold);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.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;
}

.quick-action:hover,
.quick-action:focus-visible {
  transform: translateY(-3px);
  background: #fffdf9;
  box-shadow: 0 16px 34px rgba(110, 90, 63, 0.15);
  outline: none;
}

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

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

.links-separator {
  width: 100%;
  max-width: 280px;
  height: 2px;
  margin: 6px auto 6px;
  background: linear-gradient(90deg, transparent, rgba(122, 102, 63, 0.45), transparent);
  position: relative;
}

.links-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(122, 102, 63, 0.12);
}

.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, 249, 244, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 32px rgba(110, 90, 63, 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: #FFFCF8;
  border-color: rgba(122, 102, 63, 0.14);
  box-shadow: 0 18px 42px rgba(110, 90, 63, 0.14);
  outline: none;
}

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

@media (hover: hover) {
  .link-card:hover {
    transform: translateY(-3px);
    background: #FFFCF8;
    border-color: rgba(122, 102, 63, 0.14);
    box-shadow: 0 18px 42px rgba(110, 90, 63, 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(122, 102, 63, 0.12), rgba(122, 102, 63, 0.055));
  border: 1px solid rgba(122, 102, 63, 0.09);
}

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

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



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

.footer h2 {
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 15px;
}

.divider {
  width: 100%;
  max-width: 255px;
  height: 1px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, rgba(122, 102, 63, 0.25), transparent);
  position: relative;
}

.divider::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 7px rgba(122, 102, 63, 0.08);
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 249, 244, 0.68);
  border: 1px solid rgba(122, 102, 63, 0.10);
  color: var(--gold);
  transition: transform 180ms ease, background 180ms ease;
}

.footer-icon:hover,
.footer-icon:focus-visible {
  transform: translateY(-2px);
  background: #fffdf9;
  outline: none;
}

.copyright {
  color: rgba(138, 118, 93, 0.88);
  font-size: 0.76rem;
  line-height: 1.5;
}

@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: rgba(255, 249, 244, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 40px rgba(110, 90, 63, 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(122, 102, 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(122, 102, 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(--text);
  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(--muted);
  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);
  }
}

/* Highlight Button Styles */
.link-card-highlight {
  background: linear-gradient(135deg, var(--gold), #5d4d2f);
  border: none;
  box-shadow: 0 16px 36px rgba(110, 90, 63, 0.25);
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.link-card-highlight .link-icon {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.link-card-highlight .link-content strong {
  color: #fff;
}

.link-card-highlight .link-content span {
  color: rgba(255, 255, 255, 0.85);
}

@media (hover: hover) {
  .link-card-highlight:hover {
    background: linear-gradient(135deg, #8c764b, #6e5a3f);
    box-shadow: 0 18px 42px rgba(110, 90, 63, 0.35);
  }
}
.link-card-highlight:focus-visible {
  background: linear-gradient(135deg, #8c764b, #6e5a3f);
  box-shadow: 0 18px 42px rgba(110, 90, 63, 0.35);
}

/* Quiz Modal Styles */
.quiz-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.quiz-step.active {
  display: block;
}

.quiz-question {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.4;
  text-align: left;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: all 200ms ease;
  line-height: 1.4;
}







@media (hover: hover) {
  .quiz-option:hover {
    background: #FFFCF8;
    border-color: rgba(122, 102, 63, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(110, 90, 63, 0.08);
  }
}
.quiz-option:focus-visible {
  outline: 2px solid var(--gold);
}

.quiz-progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: rgba(122, 102, 63, 0.15);
  border-radius: 4px;
  margin-top: 36px;
  margin-bottom: 24px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background-color: var(--gold);
  border-radius: 4px;
  transition: width 300ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
