/* ═══════════════════════════════════════════════════════════════
   css/inicio.css — Inicio v3
   El retrato vive en una escena en capas (nombre, anillos, rocas)
   que se mueven a distinta profundidad con el cursor. El resto del
   inicio es editorial y tranquilo: mismo negro, mismo dorado,
   misma Fraunces que la zona de proyectos.
═══════════════════════════════════════════════════════════════ */

:root {
  --hm-void: var(--hv2-void, #050504);
  --hm-surface: var(--hv2-void-soft, #0e0d0b);
  --hm-ink: var(--hv2-ink, #f4efe6);
  --hm-ink-2: rgba(244, 239, 230, 0.68);
  --hm-ink-3: rgba(244, 239, 230, 0.46);
  --hm-line: rgba(244, 239, 230, 0.12);
  --hm-gold: var(--hv2-gold, #cdb78e);
  --hm-gold-deep: #8f7a52;
  --hm-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --hm-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hm-gut: clamp(20px, 4vw, 56px);
  --hm-col: clamp(16px, 2vw, 28px);
  --hm-max: 1440px;
  --hm-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sin el fundido de entrada del body: impedía registrar el LCP. */
body.hm-page { background: var(--hm-void); animation: none; }
.hm { color: var(--hm-ink); font-family: var(--hm-text); }
:where(.hm) a { color: inherit; }
:where(.hm) img { max-width: 100%; display: block; }
.hm-wrap {
  max-width: var(--hm-max);
  margin: 0 auto;
  padding-left: max(var(--hm-gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--hm-gut), env(safe-area-inset-right, 0px));
}
.hm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hm :focus-visible { outline: 2px solid var(--hm-gold); outline-offset: 4px; border-radius: 4px; }

.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 500 0.9375rem/1 var(--hm-text); letter-spacing: 0; text-transform: none;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.hm-btn svg { flex: none; }
.hm-btn--gold { background: var(--hm-gold); color: #17140f; }
.hm-btn--gold:hover { background: #ddc9a2; }
.hm-btn--ghost { border-color: var(--hm-line); color: var(--hm-ink); background: transparent; }
.hm-btn--ghost:hover { border-color: var(--hm-ink-3); }
.hm-btn[disabled] { opacity: .6; cursor: progress; }

/* ═════════════ HERO ═════════════ */
.hm-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 55% at 70% 46%, rgba(205, 183, 142, 0.13) 0%, transparent 62%),
    radial-gradient(40% 40% at 8% 92%, rgba(205, 183, 142, 0.05) 0%, transparent 70%),
    var(--hm-void);
}
.hm-scene {
  position: relative;
  max-width: var(--hm-max);
  margin: 0 auto;
  min-height: min(100svh, 980px);
  padding: calc(72px + clamp(24px, 3.5vw, 48px)) max(var(--hm-gut), env(safe-area-inset-right, 0px)) clamp(36px, 4vw, 56px) max(var(--hm-gut), env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  column-gap: var(--hm-col);
}
.hm-layer { will-change: transform; }

/* Nombre: queda detrás del retrato */
.hm-mast {
  grid-column: 1 / -1; grid-row: 1;
  position: relative; z-index: 1;
  margin: 0;
  font-family: var(--hm-display);
  font-weight: 300;
  font-size: clamp(4.4rem, 12.4vw, 11.6rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  white-space: nowrap;
  text-transform: none;
  color: var(--hm-ink);
  user-select: none;
}
.hm-mast > span { display: inline-block; }
.hm-mast > span + span { margin-left: 0.18em; }

.hm-rings {
  position: absolute; z-index: 0;
  width: min(70vw, 900px); aspect-ratio: 1;
  left: 72%; top: 52%;
  margin: calc(min(70vw, 900px) / -2) 0 0 calc(min(70vw, 900px) / -2);
  pointer-events: none;
}
.hm-rings circle { fill: none; stroke: rgba(205, 183, 142, 0.14); stroke-width: 0.25; }
.hm-rings .hm-dash { stroke-dasharray: 0.6 1.6; stroke: rgba(205, 183, 142, 0.3); }
.hm-rings .hm-glint { fill: var(--hm-gold); stroke: none; filter: drop-shadow(0 0 3px var(--hm-gold)); }

.hm-portrait {
  grid-column: 7 / span 6; grid-row: 1 / 3;
  justify-self: center; align-self: end;
  position: relative; z-index: 2;
  width: clamp(300px, 33vw, 500px);
  margin: clamp(40px, 5vw, 80px) 0 0;
  perspective: 1200px;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
.hm-portrait img {
  width: 100%; height: auto; aspect-ratio: 2 / 3;
  object-fit: contain; object-position: bottom center;
  filter: contrast(1.04) saturate(0.96) drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.hm-rock { position: absolute; pointer-events: none; }
.hm-rock img { width: 100%; height: auto; }
.hm-rock--far { z-index: 1; opacity: .55; filter: blur(2px) brightness(.8); }
.hm-rock--near { z-index: 3; }
.hm-rock--a { width: clamp(90px, 10vw, 160px); left: 47%; top: 40%; }
.hm-rock--b { width: clamp(70px, 7vw, 110px); right: 3%; top: 26%; }
.hm-rock--c { width: clamp(150px, 17vw, 260px); right: -1%; bottom: 13%; }
.hm-rock--d { width: clamp(110px, 12vw, 190px); left: 50%; bottom: 10%; }
.hm-rock--e { width: clamp(50px, 5vw, 80px); left: 88%; top: 50%; }

.hm-intro {
  grid-column: 1 / span 5; grid-row: 2;
  position: relative; z-index: 4;
  align-self: end;
  display: grid; gap: 22px; justify-items: start;
  padding-top: 32px;
}
.hm-status { display: inline-flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--hm-ink-2); }
.hm-status i { width: 8px; height: 8px; border-radius: 50%; background: #7fd49a; box-shadow: 0 0 0 4px rgba(127, 212, 154, 0.14); }
.hm-tag {
  margin: 0;
  font-family: var(--hm-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--hm-ink);
}
.hm-desc { margin: 0; color: var(--hm-ink-2); font-size: 1.0625rem; line-height: 1.6; max-width: 42ch; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-fine { margin: 0; font-size: 0.875rem; color: var(--hm-ink-3); }

.hm-proof {
  grid-column: 1 / -1; grid-row: 3;
  position: relative; z-index: 4;
  margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hm-col);
  padding-top: 24px;
  border-top: 1px solid var(--hm-line);
}
.hm-proof div { display: grid; gap: 4px; align-content: start; }
.hm-proof dt {
  font-family: var(--hm-display); font-weight: 300; font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  line-height: 1; color: var(--hm-gold); font-variant-numeric: tabular-nums;
}
.hm-proof dd { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--hm-ink-2); max-width: 34ch; }

@media (max-width: 1023px) {
  .hm-scene { display: flex; flex-direction: column; min-height: 0; }
  .hm-mast { font-size: clamp(4.2rem, 23vw, 11rem); white-space: normal; line-height: 0.82; }
  .hm-mast > span { display: block; }
  .hm-mast > span + span { margin-left: 0; padding-left: 26%; }
  .hm-portrait { align-self: center; width: min(74vw, 420px); margin-top: -5vw; }
  .hm-rings { left: 50%; top: 30%; width: 130vw; margin: -65vw 0 0 -65vw; }
  .hm-rock--a { left: 0; top: 24%; }
  .hm-rock--b { right: 2%; top: 14%; }
  .hm-rock--c { right: -12%; bottom: auto; top: 36%; width: 34vw; }
  .hm-rock--d, .hm-rock--e { display: none; }
  .hm-intro { padding-top: 28px; }
  .hm-proof { margin-top: 36px; }
}
@media (max-width: 520px) {
  .hm-proof { grid-template-columns: 1fr; gap: 18px; }
  .hm-actions { width: 100%; }
  .hm-actions .hm-btn { flex: 1 1 auto; }
}

/* ═════════════ SECCIONES ═════════════ */
.hm-block { padding-block: clamp(80px, 10vw, 152px); border-top: 1px solid var(--hm-line); }
.hm-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--hm-col);
  align-items: end; row-gap: 16px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.hm-h2 {
  margin: 0;
  font-family: var(--hm-display); font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 0.95; letter-spacing: -0.04em;
  text-transform: none; text-wrap: balance; color: var(--hm-ink);
}
.hm-head .hm-h2 { grid-column: 1 / span 7; }
.hm-head p { grid-column: 8 / span 5; margin: 0; color: var(--hm-ink-2); font-size: 1.0625rem; line-height: 1.6; max-width: 44ch; }
@media (max-width: 860px) { .hm-head .hm-h2, .hm-head p { grid-column: 1 / -1; } }

/* Trabajo: tres destacados + índice */
.hm-feat {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 40px) var(--hm-col);
}
.hm-card { text-decoration: none; display: grid; gap: 14px; align-content: start; }
.hm-card--big { grid-column: 1 / span 7; grid-row: span 2; }
.hm-card--sm { grid-column: 8 / span 5; }
.hm-card__img { overflow: hidden; border-radius: 6px; background: var(--hm-surface); }
.hm-card__img img, .hm-card__img .wk-wordmark { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .9s var(--hm-ease); }
.hm-card--big .hm-card__img img, .hm-card--big .hm-card__img .wk-wordmark { aspect-ratio: 4 / 3; }
.hm-card:hover .hm-card__img img { transform: scale(1.03); }
.hm-card__meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.hm-card h3 { margin: 0; font-family: var(--hm-display); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.25rem); letter-spacing: -0.02em; line-height: 1.05; text-transform: none; color: var(--hm-ink); }
.hm-card--big h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.hm-card small { font-size: 0.8125rem; color: var(--hm-ink-3); white-space: nowrap; }
.hm-card p { margin: 0; color: var(--hm-ink-2); font-size: 0.9375rem; line-height: 1.6; max-width: 52ch; }
@media (max-width: 860px) { .hm-card--big, .hm-card--sm { grid-column: 1 / -1; grid-row: auto; } }

.hm-index { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; border-top: 1px solid var(--hm-line); }
.hm-index li { border-bottom: 1px solid var(--hm-line); }
.hm-index a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto; gap: 16px;
  align-items: baseline; padding: 22px 0; text-decoration: none;
}
.hm-index b {
  font-family: var(--hm-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.6rem);
  letter-spacing: -0.02em; line-height: 1.1; color: var(--hm-ink);
  transition: color .25s ease, transform .5s var(--hm-ease);
}
.hm-index span { color: var(--hm-ink-3); font-size: 0.9375rem; }
.hm-index em { font-style: normal; color: var(--hm-ink-3); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.hm-index a:hover b, .hm-index a:focus-visible b { color: var(--hm-gold); transform: translateX(8px); }
.hm-index .hm-thumb { display: none; }
@media (max-width: 760px) {
  .hm-index a { grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px; align-items: center; }
  .hm-index .hm-thumb { display: block; grid-row: span 2; width: 72px; height: 72px; border-radius: 4px; object-fit: cover; background: var(--c, var(--hm-surface)); }
  .hm-index b { align-self: end; }
  .hm-index span:not(.hm-thumb) { align-self: start; font-size: 0.875rem; }
  .hm-index em { display: none; }
}
.hm-peek {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 300px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden;
  opacity: 0; scale: .92; transition: opacity .25s ease, scale .35s var(--hm-ease);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.hm-peek.is-on { opacity: 1; scale: 1; }
.hm-peek img, .hm-peek div { width: 100%; height: 100%; object-fit: cover; }
.hm-peek div { display: grid; place-items: center; font-family: var(--hm-display); font-size: 2rem; color: #f4efe6; }
@media (hover: none), (pointer: coarse) { .hm-peek { display: none; } }
.hm-more { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Lo que hago */
.hm-services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hm-line); }
.hm-services li {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--hm-col);
  row-gap: 10px; padding: clamp(28px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--hm-line);
}
.hm-services h3 {
  grid-column: 1 / span 5; margin: 0;
  font-family: var(--hm-display); font-weight: 300; font-size: clamp(2rem, 3.8vw, 3.4rem);
  letter-spacing: -0.03em; line-height: 1; text-transform: none; color: var(--hm-ink);
}
.hm-services p { grid-column: 6 / span 4; margin: 0; color: var(--hm-ink-2); line-height: 1.6; max-width: 42ch; }
.hm-services .hm-eg { grid-column: 10 / span 3; margin: 0; font-size: 0.875rem; color: var(--hm-ink-3); }
.hm-eg a { color: var(--hm-ink); text-decoration: underline; text-decoration-color: rgba(205, 183, 142, .5); text-underline-offset: 3px; }
.hm-eg a:hover { color: var(--hm-gold); }
@media (max-width: 960px) { .hm-services h3, .hm-services p, .hm-services .hm-eg { grid-column: 1 / -1; } }

/* Video */
.hm-video { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--hm-col); row-gap: 28px; align-items: end; }
.hm-video__text { grid-column: 1 / span 4; display: grid; gap: 18px; }
.hm-video__text .hm-h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; }
.hm-video__text p { margin: 0; color: var(--hm-ink-2); line-height: 1.6; }
.hm-player {
  grid-column: 5 / span 8; position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden;
  background: var(--hm-surface); border: 1px solid var(--hm-line);
}
.hm-player video, .hm-player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  width: 100%; border: 0; padding: 0; cursor: pointer; color: #17140f;
  background: linear-gradient(to top, rgba(5, 5, 4, .55), rgba(5, 5, 4, 0) 60%);
}
.hm-play span {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px 14px 16px; border-radius: 999px;
  background: var(--hm-ink); font: 500 0.9375rem/1 var(--hm-text);
  transition: transform .4s var(--hm-ease);
}
.hm-play i { width: 28px; height: 28px; border-radius: 50%; background: #17140f; display: grid; place-items: center; }
.hm-play i::before { content: ""; border-left: 9px solid var(--hm-ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.hm-play:hover span { transform: scale(1.04); }
.hm-player.is-playing .hm-play, .hm-player.is-playing img { display: none; }
@media (max-width: 860px) { .hm-video__text, .hm-player { grid-column: 1 / -1; } }

/* Cómo trabajamos: los pasos sí son una secuencia */
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--hm-col); counter-reset: hm-step; }
.hm-steps li { border-top: 1px solid var(--hm-gold-deep); padding-top: 20px; display: grid; gap: 10px; align-content: start; counter-increment: hm-step; }
.hm-steps li::before { content: counter(hm-step, decimal-leading-zero); font-family: var(--hm-display); font-size: 0.9375rem; color: var(--hm-gold); font-variant-numeric: tabular-nums; }
.hm-steps h3 { margin: 0; font-family: var(--hm-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.15; text-transform: none; color: var(--hm-ink); }
.hm-steps p { margin: 0; color: var(--hm-ink-2); font-size: 0.9375rem; line-height: 1.6; }
@media (max-width: 960px) { .hm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 520px) { .hm-steps { grid-template-columns: 1fr; } }

/* Sobre mí */
.hm-about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--hm-col); row-gap: 48px; }
.hm-about__intro { grid-column: 1 / span 6; display: grid; gap: 22px; align-content: start; justify-items: start; }
.hm-about__intro p { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--hm-ink); max-width: 40ch; }
.hm-about__intro p + p { font-size: 1rem; line-height: 1.65; color: var(--hm-ink-2); }
.hm-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.hm-tools li { font-size: 0.8125rem; color: var(--hm-ink-2); border: 1px solid var(--hm-line); border-radius: 999px; padding: 6px 12px; }
.hm-creds { grid-column: 8 / span 5; }
.hm-creds h3 { margin: 0 0 14px; font: 500 0.9375rem/1.4 var(--hm-text); text-transform: none; letter-spacing: 0; color: var(--hm-ink); }
.hm-creds ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hm-line); }
.hm-creds li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--hm-line); }
.hm-creds b { font-weight: 500; font-size: 0.9375rem; }
.hm-creds span { font-size: 0.8125rem; color: var(--hm-ink-3); grid-column: 1; }
.hm-creds a { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.8125rem; color: var(--hm-gold); text-underline-offset: 3px; }
.hm-quotes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hm-col); margin-top: 16px; }
.hm-quotes figure { margin: 0; padding: clamp(24px, 3vw, 40px); background: var(--hm-surface); border-radius: 6px; display: grid; gap: 22px; align-content: space-between; }
.hm-quotes blockquote { margin: 0; font-family: var(--hm-display); font-weight: 300; font-style: italic; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--hm-ink); }
.hm-quotes figcaption { display: flex; align-items: center; gap: 14px; font-size: 0.875rem; color: var(--hm-ink-2); }
.hm-quotes figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.hm-quotes figcaption b { display: block; color: var(--hm-ink); font-weight: 500; }
@media (max-width: 960px) { .hm-about__intro, .hm-creds { grid-column: 1 / -1; } .hm-quotes { grid-template-columns: 1fr; } }

/* Preguntas */
.hm-faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--hm-col); row-gap: 32px; }
.hm-faq .hm-h2 { grid-column: 1 / span 4; font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 0.98; letter-spacing: -0.035em; }
.hm-faq__list { grid-column: 6 / span 7; border-top: 1px solid var(--hm-line); }
.hm-faq details { border-bottom: 1px solid var(--hm-line); }
.hm-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 0; font-family: var(--hm-display); font-size: clamp(1.15rem, 1.6vw, 1.375rem); line-height: 1.3; color: var(--hm-ink);
}
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; font-family: var(--hm-text); font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--hm-gold); transition: rotate .3s var(--hm-ease); }
.hm-faq details[open] summary::after { rotate: 45deg; }
.hm-faq details p { margin: 0 0 24px; color: var(--hm-ink-2); line-height: 1.65; max-width: 60ch; }
@media (max-width: 860px) { .hm-faq .hm-h2, .hm-faq__list { grid-column: 1 / -1; } }

/* Contacto */
.hm-contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--hm-col); row-gap: 48px; }
.hm-contact__lead { grid-column: 1 / span 5; display: grid; gap: 22px; align-content: start; justify-items: start; }
.hm-contact__lead .hm-h2 { font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 0.94; letter-spacing: -0.045em; }
.hm-contact__lead > p { margin: 0; color: var(--hm-ink-2); max-width: 40ch; font-size: 1.0625rem; line-height: 1.6; }
.hm-facts { margin: 8px 0 0; display: grid; gap: 12px; width: 100%; }
.hm-facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; font-size: 0.9375rem; }
.hm-facts dt { color: var(--hm-ink-3); }
.hm-facts dd { margin: 0; overflow-wrap: anywhere; }
.hm-facts a { text-underline-offset: 3px; }
.hm-form { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; align-content: start; }
.hm-field { display: grid; gap: 8px; min-width: 0; }
.hm-field--full { grid-column: 1 / -1; }
.hm-field label { font-size: 0.875rem; color: var(--hm-ink-2); }
.hm-field .form-input {
  width: 100%; font: 400 1rem/1.4 var(--hm-text); color: var(--hm-ink);
  background: var(--hm-surface); border: 1px solid var(--hm-line); border-radius: 6px; padding: 14px;
  -webkit-appearance: none; appearance: none;
}
.hm-field select.form-input {
  background-image: linear-gradient(45deg, transparent 50%, var(--hm-gold) 50%), linear-gradient(135deg, var(--hm-gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.hm-field select.form-input option { background: var(--hm-surface); color: var(--hm-ink); }
.hm-field textarea.form-input { min-height: 140px; resize: vertical; }
.hm-field .form-input:focus { outline: none; border-color: var(--hm-gold); }
.hm-field .form-input--error { border-color: #e0806a; }
.hm-form .form-feedback { grid-column: 1 / -1; margin: 0; font-size: 0.9375rem; }
.hm-form .form-feedback:empty { display: none; }
.hm-form .form-feedback--success { color: #7fd49a; display: flex; gap: 8px; align-items: center; }
.hm-form .form-feedback--error { color: #e0806a; }
.hm-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hm-form__foot small { color: var(--hm-ink-3); font-size: 0.8125rem; }
@media (max-width: 960px) { .hm-contact__lead, .hm-form { grid-column: 1 / -1; } }
@media (max-width: 520px) { .hm-form { grid-template-columns: 1fr; } .hm-facts div { grid-template-columns: 1fr; gap: 0; } }

/* Entrada: una sola secuencia, solo en el hero */
@media (prefers-reduced-motion: no-preference) {
  .hm-js .hm-mast > span { animation: hm-rise 1.2s var(--hm-ease) both; }
  .hm-js .hm-mast > span + span { animation-delay: .08s; }
  .hm-js .hm-portrait .hm-in { animation: hm-emerge 1.6s var(--hm-ease) .15s both; }
}
/* Sin opacidad: el texto y el retrato se pintan desde el primer cuadro (LCP). */
@keyframes hm-rise { from { transform: translateY(18%); } }
@keyframes hm-emerge { from { transform: translateY(48px) scale(.97); } }

/* Reseñas de Workana (zona @auto:resenas: inicio, servicios y CV) */
.hm-wk { grid-column: 1 / -1; display: grid; gap: clamp(24px, 3vw, 36px); margin-top: clamp(32px, 4vw, 56px); }
.hm-wk__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-bottom: 20px; border-bottom: 1px solid var(--hm-line); }
.hm-wk__score { margin: 0; display: flex; align-items: center; gap: 14px; }
.hm-wk__score b { font-family: var(--hm-display); font-weight: 300; font-size: clamp(3rem, 5vw, 4.25rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--hm-ink); }
.hm-wk__score span { display: grid; gap: 2px; font-size: 0.9375rem; color: var(--hm-ink-2); }
.hm-wk .hm-wk__stars { color: var(--hm-gold); letter-spacing: 0.12em; font-size: 0.9375rem; line-height: 1; }
.hm-wk__count { margin: 0; flex: 1 1 260px; font-size: 0.9375rem; line-height: 1.5; color: var(--hm-ink-2); }
.hm-wk .hm-wk__link { font-size: 0.9375rem; color: var(--hm-gold); text-underline-offset: 3px; white-space: nowrap; }
.hm-wk__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.hm-wk__list figure { margin: 0; height: 100%; box-sizing: border-box; padding: 24px; border: 1px solid var(--hm-line); border-radius: 6px; display: grid; gap: 16px; grid-template-rows: auto 1fr auto; }
.hm-wk__list blockquote { margin: 0; font-family: var(--hm-display); font-weight: 300; font-style: italic; font-size: 1.1875rem; line-height: 1.4; color: var(--hm-ink); }
.hm-wk__list figcaption { display: grid; gap: 3px; font-size: 0.8125rem; line-height: 1.45; color: var(--hm-ink-2); }
.hm-wk__list figcaption b { font-size: 0.9375rem; font-weight: 500; color: var(--hm-ink); }
.hm-wk__src { color: var(--hm-ink-3); }
@media print { .hm-wk, .cv-sec--reviews { display: none !important; } }
