/* =========================================================
   0. TIPOGRAFÍAS (servidas desde tu dominio, sin Google)
   ========================================================= */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2");
}

/* =========================================================
   1. VARIABLES (tokens de diseño)
   Cambiar un color aquí lo cambia en toda la página.
   ========================================================= */
:root {
  --bg:         #0b0a09;   /* negro cálido, no negro puro */
  --bg-soft:    #141210;   /* gris muy oscuro para superficies */
  --text:       #f3ede4;   /* blanco hueso, más suave que #fff */
  --text-muted: #a39b8f;
  --gold:       #d4b98c;   /* champagne */
  --gold-soft:  rgba(212, 185, 140, 0.35);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans:  "Inter", system-ui, -apple-system, sans-serif;

  --max-w: 440px;          /* ancho máximo del contenido (tamaño "móvil") */
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   2. RESET MÍNIMO
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

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

/* =========================================================
   3. LAYOUT GENERAL
   Mobile-first: todo está pensado para móvil.
   En pantallas grandes solo centramos una "columna" de móvil.
   ========================================================= */
.page {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* =========================================================
   4. HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 82svh;              /* casi toda la pantalla, deja asomar la bio */
  display: flex;
  align-items: flex-end;          /* el texto va abajo, sobre la foto */
  overflow: hidden;
}

/* La foto ocupa todo el hero, detrás del texto */
.hero__media {
  position: absolute;
  inset: 0;
  /* Fondo de respaldo si la foto aún no carga (o no existe) */
  background: radial-gradient(120% 80% at 50% 20%, #2a231c 0%, var(--bg) 70%);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* recorta la foto sin deformarla */
  object-position: 46% 25%;       /* punto que siempre queda visible: la cara */
  animation: zoomOut 2.4s var(--ease) both;
}

/* Degradado oscuro encima de la foto para que el texto se lea bien */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 10, 9, 0.15) 0%,
    rgba(11, 10, 9, 0.25) 45%,
    rgba(11, 10, 9, 0.85) 80%,
    var(--bg) 100%
  );
}

.hero__content {
  position: relative;             /* queda por encima de .hero__media */
  width: 100%;
  padding: 0 24px 40px;
  text-align: center;
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.5rem, 18vw, 5rem);   /* crece con la pantalla, con límites */
  line-height: 1;
  letter-spacing: 0.04em;
  margin: 8px 0 10px;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* =========================================================
   5. BIO
   ========================================================= */
.bio {
  padding: 16px 32px 36px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.divider {
  display: block;
  width: 40px;
  height: 1px;
  margin: 0 auto 20px;
  background: var(--gold);
  opacity: 0.6;
}

/* Beneficios: lista centrada con un pequeño rombo dorado en vez de viñeta */
.perks {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.perks li::before {
  content: "◆";
  font-size: 0.5rem;
  color: var(--gold);
  margin-right: 10px;
  vertical-align: middle;
}

/* =========================================================
   6. BOTONES (solo aspecto visual por ahora)
   ========================================================= */
.actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 24px 48px;
}

.btn {
  display: block;
  width: 100%;
  padding: 17px 24px;
  border-radius: 999px;            /* forma de píldora */
  font: 500 0.8rem/1 var(--font-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background-color 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.98); }

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn--primary {
  border: none;
  color: #1a1510;
  background: linear-gradient(135deg, #e8d5b0 0%, var(--gold) 50%, #b8975f 100%);
  box-shadow: 0 8px 30px -10px var(--gold-soft);
}

.btn--ghost {
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  background: transparent;
}

@media (hover: hover) {
  .btn--primary:hover { box-shadow: 0 10px 40px -8px rgba(212, 185, 140, 0.55); }
  .btn--ghost:hover   { background: rgba(212, 185, 140, 0.08); }
}

.hero .btn { max-width: 300px; margin: 0 auto; }

/* Estado "cargando" del botón */
.btn.is-loading {
  pointer-events: none;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.6; }
}

.trust {
  margin-top: 4px;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.trust span { color: var(--gold); margin: 0 6px; }

/* =========================================================
   7. CONTACTO
   Más discreto que los botones principales: no debe competir con ellos.
   ========================================================= */
.contact {
  margin: 0 24px 40px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(212, 185, 140, 0.15);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.contact__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  margin: 6px 0 18px;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 2px;
  border: none;
  border-bottom: 1px solid var(--gold-soft);
  background: none;
  color: var(--gold);
  font: 500 0.75rem/1.4 var(--font-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.contact__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.contact__link.is-loading    { pointer-events: none; animation: pulse 1s ease-in-out infinite; }

@media (hover: hover) {
  .contact__link:hover { border-color: var(--gold); }
}

/* =========================================================
   8. FOOTER
   ========================================================= */
.footer {
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer span { color: var(--gold); margin: 0 6px; }

/* =========================================================
   9. ANIMACIONES SUTILES
   Cada .reveal aparece subiendo un poco, uno detrás de otro.
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes zoomOut {
  from { transform: scale(1.08); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.reveal { animation: fadeUp 1s var(--ease) both; }

.hero__content .reveal:nth-child(1) { animation-delay: 0.3s; }
.hero__content .reveal:nth-child(2) { animation-delay: 0.45s; }
.hero__content .reveal:nth-child(3) { animation-delay: 0.6s; }
.hero__content .reveal:nth-child(4) { animation-delay: 0.75s; }
.bio.reveal                         { animation-delay: 0.9s; }
.actions.reveal                     { animation-delay: 1.05s; }
.contact.reveal                     { animation-delay: 1.2s; }

/* Accesibilidad: si el usuario pidió "reducir movimiento" en su móvil, no animamos */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
