:root {
  --bg: #05070f;
  --ink: #f4f1ee;
  --ink-soft: rgba(244, 241, 238, 0.72);
  --ink-faint: rgba(244, 241, 238, 0.5);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

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

html, body { margin: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(var(--gutter), env(safe-area-inset-top)) var(--gutter) max(var(--gutter), env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
}

/* Foto de fondo */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  display: block;
  transform-origin: 65% 55%;
  animation: drift 28s ease-in-out infinite alternate;
}

/* Degradado oscuro para legibilidad del texto */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(5, 7, 15, 0.92) 0%, rgba(5, 7, 15, 0.55) 30%, rgba(5, 7, 15, 0) 62%),
    linear-gradient(to right, rgba(5, 7, 15, 0.7) 0%, rgba(5, 7, 15, 0) 55%),
    linear-gradient(to bottom, rgba(5, 7, 15, 0.45) 0%, rgba(5, 7, 15, 0) 22%);
}

/* Estado */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: rise 1.1s 0.1s both;
}
.status__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #ffb88a;
  box-shadow: 0 0 0.9rem 0.15rem rgba(255, 184, 138, 0.7);
  animation: pulse 3.2s ease-in-out infinite;
}

/* Marca */
.brand { margin-top: auto; padding-bottom: clamp(1.5rem, 4vh, 3rem); }
.brand__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-stretch: 125%;
  font-size: clamp(2.2rem, 9vw, 6.3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  animation: rise 1.4s 0.3s both;
}
.brand__line {
  margin: 1rem 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  color: var(--ink-soft);
  animation: rise 1.4s 0.55s both;
}

.brand__bio {
  margin: 1.1rem 0 0;
  max-width: 52ch;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.6;
  color: var(--ink-soft);
  animation: rise 1.4s 0.7s both;
}

/* Contacto */
.contact { animation: rise 1.4s 0.9s both; }
.contact__name {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 1rem;
}
.contact__links a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(244, 241, 238, 0.3);
  transition: border-color 0.3s, color 0.3s;
}
.contact__links a:hover,
.contact__links a:focus-visible {
  border-color: #ffb88a;
  color: #ffd9bf;
  outline: none;
}

/* Texto vertical a la derecha */
.vertical {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  margin: 0;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
  animation: fade 2s 1.2s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@keyframes drift {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

@media (max-width: 720px) {
  .hero__bg img { object-position: 50% 50%; }
  .hero__shade {
    background:
      linear-gradient(to top, rgba(5, 7, 15, 0.95) 0%, rgba(5, 7, 15, 0.7) 32%, rgba(5, 7, 15, 0) 65%),
      linear-gradient(to bottom, rgba(5, 7, 15, 0.5) 0%, rgba(5, 7, 15, 0) 20%);
  }
  .status { font-size: 0.66rem; letter-spacing: 0.14em; }
  .vertical { font-size: 0.62rem; }
  .contact__links { flex-direction: column; gap: 0.35rem; }
  .contact__sep { display: none; }
  .contact__place { display: block; margin-top: 0.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
