*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f4f4f4;
  --ink: #111111;
  --ink-body: #333333;
  --white: #ffffff;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 40rem;
}

.hero__photo {
  display: block;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
  background: #dcdcdc;
  box-shadow:
    0 0 0 5px var(--white),
    0 14px 36px rgba(0, 0, 0, 0.1);
}

.hero__name {
  margin: 36px 0 0;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero__text {
  margin: 20px 0 0;
  max-width: 32em;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink-body);
  text-wrap: pretty;
}

.hero__text p {
  margin: 0;
}

.hero__text p + p {
  margin-top: 1em;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 17px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hero__button:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.hero__button:active {
  transform: translateY(0);
}

.hero__button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.hero__icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.hero__button:hover .hero__icon {
  transform: translate(2px, -2px);
}

/* ---------- Animación de entrada ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .hero > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero > :nth-child(3) {
    animation-delay: 0.16s;
  }

  .hero > :nth-child(4) {
    animation-delay: 0.24s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Utilidades ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
