:root {
  --gold: #c5a253;
  --gold-light: #e2c77d;
  --black: #050505;
  --card: rgba(17, 17, 17, 0.88);
  --ivory: #f8f6f0;
  --muted: #b8b4aa;
  --border: rgba(197, 162, 83, 0.24);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ivory);
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(197, 162, 83, 0.11), transparent 34rem),
    linear-gradient(180deg, #080808 0%, #020202 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* Página 1 */
.welcome-page {
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.welcome-shell {
  width: min(100%, 52rem);
}

.welcome-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  min-height: min(46rem, calc(100svh - 2rem));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: rgba(8, 8, 8, 0.9);
  box-shadow: var(--shadow);
}

.welcome-photo-wrap {
  position: relative;
  min-height: 32rem;
  overflow: hidden;
}

.welcome-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 20%;
}

.welcome-photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 48%, rgba(5, 5, 5, 0.9) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.42), transparent 42%);
}

.welcome-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 5vw, 4rem);
  margin-left: -3rem;
}

.welcome-content h1,
.profile-card h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.02;
}

.welcome-content h1 {
  max-width: 9ch;
  font-size: clamp(2.7rem, 7vw, 5.3rem);
}

.welcome-description {
  margin: 1rem 0 2.2rem;
  color: var(--muted);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.primary-button {
  width: 100%;
  min-height: 3.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1rem 1.4rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #090909;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 12px 30px rgba(197, 162, 83, 0.18);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-button svg {
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(197, 162, 83, 0.28);
  filter: brightness(1.04);
}

.secondary-link {
  align-self: center;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-underline-offset: 0.25rem;
}

/* Página 2 */
.links-page {
  position: relative;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.page-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.page-glow-one {
  width: 17rem;
  height: 17rem;
  top: -7rem;
  left: -7rem;
  background: rgba(197, 162, 83, 0.17);
}

.page-glow-two {
  width: 15rem;
  height: 15rem;
  right: -6rem;
  bottom: 6rem;
  background: rgba(197, 162, 83, 0.09);
}

.links-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  margin: 0 auto;
}

.profile-card {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  text-align: center;
}

.profile-photo-ring {
  width: clamp(7.4rem, 22vw, 9.5rem);
  aspect-ratio: 1;
  margin: 0 auto 1.3rem;
  padding: 0.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), rgba(197, 162, 83, 0.12), var(--gold));
  box-shadow: 0 0 0 0.45rem rgba(197, 162, 83, 0.06);
}

.profile-photo {
  width: 100%;
  height: 100%;
  display: block;
  border: 0.22rem solid #090909;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

.profile-card h1 {
  font-size: clamp(2rem, 7vw, 3.35rem);
}

.profile-tagline {
  margin: 0.7rem 0 0;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-intro {
  width: min(100%, 31rem);
  margin: 1rem auto 1.8rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.link-list {
  display: grid;
  gap: 0.85rem;
}

.link-button {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.65rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.15rem;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-button:hover {
  transform: translateY(-2px);
  border-color: var(--border);
  background: rgba(197, 162, 83, 0.08);
}

.link-button.featured {
  border-color: rgba(197, 162, 83, 0.55);
  background: linear-gradient(135deg, rgba(197, 162, 83, 0.19), rgba(197, 162, 83, 0.07));
}

.link-icon {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.25);
}

.link-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-copy {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
}

.link-copy strong,
.link-copy small {
  overflow-wrap: anywhere;
}

.link-copy strong {
  font-size: 0.98rem;
}

.link-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.link-arrow {
  color: var(--gold-light);
  font-size: 1.1rem;
}

.links-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 1.7rem;
  color: #8d8a82;
  font-size: 0.72rem;
}

.links-footer a {
  color: var(--gold-light);
  text-underline-offset: 0.2rem;
}

@media (max-width: 760px) {
  .welcome-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .welcome-photo-wrap {
    min-height: 52svh;
    max-height: 38rem;
  }

  .welcome-photo-shade {
    background: linear-gradient(0deg, #080808 0%, rgba(8, 8, 8, 0.2) 50%, transparent 72%);
  }

  .welcome-content {
    align-items: center;
    margin: -5.5rem 0 0;
    padding: 2rem 1.35rem 2.2rem;
    text-align: center;
  }

  .welcome-content h1 {
    max-width: none;
  }

  .primary-button {
    max-width: 25rem;
  }
}

@media (max-width: 480px) {
  .welcome-page,
  .links-page {
    padding-left: max(0.7rem, env(safe-area-inset-left));
    padding-right: max(0.7rem, env(safe-area-inset-right));
  }

  .welcome-card,
  .profile-card {
    border-radius: 1.45rem;
  }

  .profile-card {
    padding: 1.35rem 0.85rem;
  }

  .link-button {
    grid-template-columns: 2.6rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
  }

  .link-icon {
    width: 2.6rem;
    height: 2.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
