/* YT Grupo: página de reclutamiento comercial (prototipo) */

:root {
  --ink: #0d0d2b;
  --ink-2: #191948;
  --ink-3: #4361ee;
  --paper: #f5f5fb;
  --surface: #ffffff;
  --text: #0d0d2b;
  --text-2: #4a4c6b;
  --on-ink: #ffffff;
  --on-ink-2: #c8c9e6;
  --line: rgba(13, 13, 43, 0.14);
  --line-on-ink: rgba(255, 255, 255, 0.2);

  --blue: #4361ee;
  --violet: #8b3fc8;
  --pink: #e91e8c;
  --grad: linear-gradient(90deg, var(--blue), var(--violet) 50%, var(--pink));
  --grad-soft: linear-gradient(90deg, #b9c5ff, #dcbcf6 50%, #ffb9de);

  --action: #c8127a;
  --action-press: #a50e64;
  --on-action: #ffffff;
  --hl: #ff8fcc;
  --mark: #ffb9de;
  --wa: #0f7a40;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 80rem;
  --shadow: 0 1.25rem 2.5rem -1.25rem rgba(13, 13, 43, 0.35);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
}

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  /* Sin esto el navegador reajusta el scroll cuando el formulario cambia de alto y todo parece saltar */
  overflow-anchor: none;
  accent-color: var(--ink);
  caret-color: var(--ink);
}

::selection {
  background: var(--action);
  color: var(--on-action);
}

[hidden] {
  display: none !important;
}

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

h1, h2, h3, p, ul, ol, figure, blockquote, fieldset {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink-3);
  outline-offset: 3px;
}

.header :focus-visible,
.hero :focus-visible,
.trust :focus-visible,
.stories :focus-visible,
.contact :focus-visible,
.footer :focus-visible,
.viewer :focus-visible {
  outline-color: #fff;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 60;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
}

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  max-width: 20ch;
}

.lead {
  max-width: 60ch;
  margin-top: 1rem;
  color: var(--text-2);
  font-size: 1.125rem;
}

/* Resaltados */

.hl {
  color: var(--hl);
}

.mark {
  background-image: var(--grad-soft);
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.38em;
  padding-inline: 0.08em;
  margin-inline: -0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.js .mark {
  background-size: 0% 0.38em;
  transition: background-size 700ms var(--ease-out) 150ms;
}

.js .is-seen .mark {
  background-size: 100% 0.38em;
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.625rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--action);
  color: var(--on-action);
  font-family: var(--body);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

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

.btn--small {
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn--line {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--line-on {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn--wa {
  background: var(--wa);
  color: #fff;
}

.btn i {
  font-size: 1.25rem;
}

.icon-btn {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  font-size: 1.25rem;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--action-press);
  }

  .btn--ghost:hover,
  .btn--line-on:hover {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
  }

  .btn--line:hover {
    background: var(--ink);
    color: #fff;
  }

  .btn--wa:hover {
    background: #0b6233;
  }

  .stories .icon-btn:not(:disabled):hover,
  .viewer .icon-btn:hover {
    background: #fff;
    color: var(--ink);
  }
}

/* Cabecera */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--on-ink);
  padding-top: env(safe-area-inset-top, 0px);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo {
  display: inline-flex;
  flex: none;
}

.logo img {
  width: auto;
  height: 2.625rem;
}

/* Sello Great Place To Work: cuelga de la cabecera como un cartel */
.gptw {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  flex: none;
  margin-bottom: -2.75rem;
  line-height: 0;
  transform-origin: 50% 0;
  animation: colgar 900ms var(--ease-out) 300ms both;
}

.gptw img {
  width: auto;
  height: 7.25rem;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

@keyframes colgar {
  from {
    transform: translateY(-100%);
  }
  60% {
    transform: translateY(4%) rotate(1.5deg);
  }
  to {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gptw {
    animation: none;
  }
}

@media (max-width: 40rem) {
  .gptw {
    margin-bottom: -1.75rem;
  }

  .gptw img {
    height: 5.25rem;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.nav__list {
  display: flex;
  gap: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.nav__list a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--on-ink-2);
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.nav__list a[aria-current="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

@media (hover: hover) and (pointer: fine) {
  .nav__list a:hover {
    color: #fff;
  }
}

.menu-btn {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 2px solid var(--line-on-ink);
  border-radius: 50%;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  touch-action: manipulation;
}

.progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

/* Portada */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-ink);
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 62%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 92%, transparent) 0%, color-mix(in srgb, var(--ink) 72%, transparent) 30%, color-mix(in srgb, var(--ink) 18%, transparent) 58%, transparent 78%),
    linear-gradient(0deg, color-mix(in srgb, var(--ink) 85%, transparent) 0%, transparent 20%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
}

.hero__copy {
  max-width: 50rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.875rem;
  border: 2px solid var(--hl);
  border-radius: 999px;
  color: var(--hl);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
}

.hero__lead {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--on-ink-2);
  font-size: 1.1875rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.award {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1.25rem 2.5rem -1.25rem rgba(0, 0, 0, 0.6);
  max-width: 19rem;
}

.award i {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet) 50%, var(--pink));
  color: #fff;
  font-size: 1.5rem;
}

.award strong {
  display: block;
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.3;
}

.award span {
  font-size: 0.9375rem;
  color: var(--text-2);
}

.js [data-in] {
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 700ms var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0) * 90ms + 80ms);
}

.js [data-in="1"] { --d: 0; }
.js [data-in="2"] { --d: 1; }
.js [data-in="3"] { --d: 2; }
.js [data-in="4"] { --d: 3; }
.js [data-in="5"] { --d: 5; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Franja de confianza */

.trust {
  background: var(--ink-2);
  color: var(--on-ink);
  padding-block: 1.75rem;
}

.trust__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.trust__list li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.trust__list li + li {
  border-left: 1px solid var(--line-on-ink);
  padding-left: 1.5rem;
}

.trust__list i {
  flex: none;
  font-size: 1.875rem;
  color: var(--hl);
}

.trust__list strong {
  display: block;
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1.1;
}

.trust__list span span,
.trust__list div > span {
  font-size: 0.9375rem;
  color: var(--on-ink-2);
}

.trust__list strong span {
  font-size: inherit;
  color: inherit;
}

/* Postula */

.apply__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.perks {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.perks li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-weight: 700;
}

.perks i {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--hl);
  font-size: 1.25rem;
}

.wizard {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.5rem;
}

.wizard__step {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-2);
}

.wizard__head h3 {
  margin-top: 0.25rem;
  font-size: 1.625rem;
}

.wizard__bar {
  margin-top: 1rem;
  height: 8px;
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}

.wizard__bar span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: var(--grad);
  transform: scaleX(0.333);
  transform-origin: left;
  transition: transform 500ms var(--ease-out);
}

.wizard__panel {
  display: none;
  gap: 1.25rem;
}

.wizard__panel.is-active {
  display: grid;
  animation: panel 320ms var(--ease-out);
}

@keyframes panel {
  from {
    opacity: 0;
    transform: translateX(0.75rem);
  }
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field > label,
.field .label {
  font-weight: 700;
  font-size: 0.9375rem;
}

.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 2px solid #8690ad;
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 160ms var(--ease-out);
}

.field input::placeholder {
  color: #5d6787;
}

.field input[type="text"]:focus-visible,
.field input[type="tel"]:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 22%, transparent);
}

.field [aria-invalid="true"] {
  border-color: #b3261e;
}

.field__error {
  color: #b3261e;
  font-size: 0.9375rem;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip,
.option {
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
}

.chip input,
.option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.chip span {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border: 2px solid #8690ad;
  border-radius: 999px;
  font-weight: 700;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip:active span,
.option:active > span {
  transform: scale(0.97);
}

.chip input:focus-visible + span,
.option input:focus-visible + span {
  outline: 3px solid var(--ink-3);
  outline-offset: 3px;
}

.options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
}

.option > span {
  display: grid;
  justify-items: start;
  gap: 0.125rem;
  height: 100%;
  padding: 1rem;
  border: 2px solid #8690ad;
  border-radius: var(--r);
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.option i {
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}

.option small {
  font-size: 0.875rem;
  color: var(--text-2);
}

.option input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.option input:checked + span small {
  color: var(--on-ink-2);
}

.option input:checked + span i {
  color: var(--hl);
}

.drop {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  padding: 0.875rem 1rem;
  border: 2px dashed #8690ad;
  border-radius: var(--r);
  font-weight: 600 !important;
  color: var(--text-2);
  cursor: pointer;
}

.drop i {
  flex: none;
  font-size: 1.375rem;
  color: var(--ink);
}

#cv:focus-visible + *,
.drop:has(+ #cv:focus-visible) {
  outline: 3px solid var(--ink-3);
  outline-offset: 3px;
}

.check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  font-weight: 500 !important;
  font-size: 0.9375rem;
  cursor: pointer;
}

.check input {
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.125rem 0 0;
}

.wizard__foot {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.wizard__foot .btn:last-child {
  flex: 1;
}

.wizard__done {
  justify-items: start;
  gap: 0.875rem;
  outline: none;
}

.wizard__done > i {
  font-size: 3.5rem;
  color: var(--wa);
}

.wizard__done h3 {
  font-size: 1.75rem;
}

/* Proceso */

.process {
  background: var(--surface);
}

.stepper {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.stepper__tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stepper__line {
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 1.75rem;
  height: 4px;
  margin-top: -2px;
  background: var(--line);
  border-radius: 2px;
}

.stepper__line span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-in-out);
}

.stepper__tabs button {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 0 0.25rem 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  text-align: center;
}

.stepper__num {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 3px solid var(--line);
  background: var(--surface);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--text-2);
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out), color 300ms var(--ease-out), transform 300ms var(--ease-out);
}

.stepper__name {
  font-weight: 700;
  color: var(--text-2);
  transition: color 300ms var(--ease-out);
}

.stepper__tabs button.is-done .stepper__num {
  border-color: var(--ink);
  color: var(--ink);
}

.stepper__tabs button[aria-selected="true"] .stepper__num {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
  transform: scale(1.1);
}

.stepper__tabs button[aria-selected="true"] .stepper__name {
  color: var(--ink);
}

.stepper__panel {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--paper);
}

.stepper__panel[hidden] {
  display: none;
}

.stepper__panel.is-active {
  animation: panel 360ms var(--ease-out);
}

.stepper__panel > i {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(4rem, 9vw, 6rem);
  height: clamp(4rem, 9vw, 6rem);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet) 50%, var(--pink));
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.stepper__panel h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.stepper__panel p {
  margin-top: 0.5rem;
  max-width: 52ch;
  color: var(--text-2);
  font-size: 1.125rem;
}

/* Historias */

.stories {
  background: var(--ink);
  color: var(--on-ink);
}

.stories .lead {
  color: var(--on-ink-2);
}

.stories__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.arrows {
  display: flex;
  gap: 0.5rem;
}

.carousel {
  display: flex;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.story {
  flex: 0 0 min(86vw, 25rem);
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: var(--r-lg);
  background: var(--ink-2);
}

.story__top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  position: relative;
  flex: none;
  width: 4.75rem;
  height: 4.75rem;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet) 50%, var(--pink));
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ink-2);
}

.story h3 {
  font-size: 1.375rem;
}

.story__time {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--on-ink-2);
}

.path {
  position: relative;
  display: grid;
  gap: 0.875rem;
  padding-left: 1.75rem;
}

.path::before {
  content: "";
  position: absolute;
  left: 0.4375rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: var(--line-on-ink);
}

.path li {
  position: relative;
  font-weight: 700;
  line-height: 1.3;
}

.path li::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.3rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--on-ink-2);
  background: var(--ink-2);
}

.path li:last-child::before {
  border-color: var(--hl);
  background: var(--hl);
}

.path li:first-child {
  color: var(--on-ink-2);
}

.path span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-ink-2);
}

.path li:last-child span {
  color: var(--hl);
}

.story blockquote {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-on-ink);
  font-size: 1.0625rem;
  color: #fff;
}

.story--cta {
  align-content: center;
  justify-items: start;
  background: transparent;
  border: 2px dashed var(--line-on-ink);
}

.story--cta > i {
  font-size: 2.5rem;
  color: var(--hl);
}

.story--cta h3 {
  font-size: 1.75rem;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--line-on-ink);
  transition: width 300ms var(--ease-out), background-color 300ms var(--ease-out);
}

.dots span.is-on {
  width: 1.75rem;
  background: var(--grad);
}

/* Conoce más */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feats li {
  padding: 1.5rem;
  border-radius: var(--r);
  background: var(--surface);
}

.feats li:nth-child(2),
.feats li:nth-child(4) {
  transform: translateY(1.5rem);
}

.feats i {
  font-size: 2rem;
  color: var(--ink);
}

.feats h3 {
  margin-top: 0.875rem;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.feats p {
  margin-top: 0.375rem;
  color: var(--text-2);
}

.pillars {
  margin-top: clamp(4.5rem, 10vw, 7.5rem);
}

.pillars__title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important;
}

.pillars__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: stretch;
  margin-top: 1.5rem;
}

.pillars__list {
  display: grid;
}

.pillars__panel {
  position: relative;
  display: grid;
  align-content: end;
  gap: 1rem;
  min-height: 16rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.pillars__panel > i {
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--hl);
}

.pillars__panel p {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 24ch;
}

.pillars__count {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--on-ink-2);
}

.pillars__panel.is-swap > i,
.pillars__panel.is-swap p {
  animation: swap 380ms var(--ease-out);
}

@keyframes swap {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
    filter: blur(4px);
  }
}

/* Cultura */

.culture {
  background: var(--surface);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.filter {
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.filter:active {
  transform: scale(0.97);
}

.filter.is-active {
  background: var(--ink);
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 13rem;
  grid-auto-flow: dense;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tile--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.tile--tall {
  grid-row: span 2;
}

.tile[hidden] {
  display: none;
}

.tile button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink);
  cursor: zoom-in;
  touch-action: manipulation;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1rem 0.875rem;
  background: linear-gradient(0deg, rgba(13, 13, 43, 0.92), transparent);
  color: #fff;
  font-weight: 700;
  text-align: left;
}

@media (hover: hover) and (pointer: fine) {
  .tile button:hover img {
    transform: scale(1.05);
  }

  .filter:not(.is-active):hover {
    background: var(--paper);
  }
}

.viewer {
  width: min(96vw, 70rem);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}

.viewer::backdrop {
  background: rgba(8, 8, 28, 0.94);
}

.viewer figure {
  display: grid;
  gap: 0.875rem;
  justify-items: center;
}

.viewer img {
  max-height: 76dvh;
  width: auto;
  border-radius: var(--r);
}

.viewer figcaption {
  font-weight: 700;
  font-size: 1.125rem;
}

.viewer .icon-btn {
  position: fixed;
  z-index: 2;
  background: rgba(8, 8, 28, 0.7);
}

.viewer__close {
  top: calc(1rem + env(safe-area-inset-top, 0px));
  right: 1rem;
}

.viewer__prev {
  left: 1rem;
  top: 50%;
  margin-top: -1.5rem;
}

.viewer__next {
  right: 1rem;
  top: 50%;
  margin-top: -1.5rem;
}

/* Redes y contacto */

.social__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.nets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.nets a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--r);
  background: var(--surface);
  text-decoration: none;
  transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.nets a > i:first-child {
  font-size: 1.875rem;
}

.nets span {
  display: grid;
  flex: 1;
  min-width: 0;
}

.nets small {
  font-size: 0.9375rem;
  color: var(--text-2);
  transition: color 200ms var(--ease-out);
}

.nets .go {
  font-size: 1.25rem;
  transition: transform 200ms var(--ease-out);
}

.nets a:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .nets a:hover {
    background: var(--ink);
    color: #fff;
  }

  .nets a:hover small {
    color: var(--on-ink-2);
  }

  .nets a:hover .go {
    transform: translate(3px, -3px);
  }
}

.contact {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
}

.contact h3 {
  font-size: 1.625rem;
}

.contact ul {
  display: grid;
  gap: 1rem;
}

.contact li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-weight: 700;
}

.contact li > i {
  flex: none;
  font-size: 1.625rem;
  color: var(--hl);
}

.contact small {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-ink-2);
}

/* Pie */

.footer {
  background: var(--ink);
  color: var(--on-ink);
  border-top: 1px solid var(--line-on-ink);
  padding-block: clamp(3rem, 6vw, 4.5rem) calc(6rem + env(safe-area-inset-bottom, 0px));
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.slogan {
  margin-top: 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.3;
  max-width: 12ch;
  color: var(--hl);
}

.footer h2 {
  font-family: var(--body);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-ink-2);
}

.footer ul {
  margin-top: 0.5rem;
  display: grid;
}

.footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

.footer__nets {
  display: flex !important;
  gap: 0.5rem;
}

.footer__nets a {
  justify-content: center;
  width: 2.75rem;
  border: 2px solid var(--line-on-ink);
  border-radius: 50%;
  font-size: 1.25rem;
}

.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-ink);
  color: var(--on-ink-2);
  font-size: 0.9375rem;
}

@media (hover: hover) and (pointer: fine) {
  .footer li a:hover {
    text-decoration: underline;
  }
}

/* Flotantes */

.wa {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18), 0 6px 14px rgba(15, 122, 64, 0.32);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(15, 122, 64, 0.38);
  }
}

.wa:active {
  transform: scale(0.94);
}

.dock {
  display: none;
}

/* Fotos añadidas */

.stepper__photo img,
.about__photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stepper__panel > div {
  flex: 1;
  min-width: 0;
}

.stepper__photo {
  position: relative;
  flex: 0 0 min(38%, 22rem);
  aspect-ratio: 3 / 2;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-2);
}

.about__photos {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
  align-items: end;
}

.about__photos figure {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-2);
}

.about__photos figure:first-child {
  aspect-ratio: 4 / 3;
}

.about__photos figure:last-child {
  aspect-ratio: 3 / 4;
}

/* Etiquetas de revisión: indican dónde va cada foto y su tamaño. No van a producción. */

@media (max-width: 40rem) {
  .stepper__photo {
    flex: none;
    width: 100%;
  }
}

/* Entradas escalonadas de listas */

.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(0.875rem);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js [data-stagger].is-seen > * {
  opacity: 1;
  transform: none;
}

.js .feats.is-seen li:nth-child(2),
.js .feats.is-seen li:nth-child(4) {
  transform: translateY(1.5rem);
}

/* Adaptación */

@media (max-width: 72rem) {
  .nav__list {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .nav {
    gap: 0.625rem;
  }

  .nav.is-open .nav__list {
    display: grid;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--ink);
    font-size: 1.0625rem;
    box-shadow: 0 1.5rem 2rem -1rem rgba(0, 0, 0, 0.5);
  }

  .nav.is-open .nav__list a {
    min-height: 3.25rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line-on-ink);
    padding-inline: 0;
    background: transparent;
  }
}

@media (max-width: 60rem) {
  .hero__inner,
  .about__grid,
  .social__grid,
  .pillars__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__media::after {
    background: linear-gradient(0deg, var(--ink) 12%, color-mix(in srgb, var(--ink) 70%, transparent) 55%, color-mix(in srgb, var(--ink) 25%, transparent) 100%);
  }

  .trust__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust__list li + li {
    border-left: 0;
    padding-left: 0;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillars__panel {
    min-height: 13rem;
  }
}

@media (max-width: 40rem) {
  .logo img {
    height: 2.25rem;
  }

  .header .btn--small {
    display: none;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .trust__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .options {
    grid-template-columns: minmax(0, 1fr);
  }

  .option > span {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
  }

  .option i {
    grid-row: span 2;
    margin: 0;
  }

  .stepper__tabs {
    gap: 0.25rem;
  }

  .stepper__name {
    font-size: 0.8125rem;
    line-height: 1.2;
  }

  .stepper__num {
    width: 3rem;
    height: 3rem;
  }

  .stepper__line {
    top: 1.5rem;
  }

  .stepper__panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .arrows {
    display: none;
  }

  .feats,
  .nets,
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feats li:nth-child(2),
  .feats li:nth-child(4),
  .js .feats.is-seen li:nth-child(2),
  .js .feats.is-seen li:nth-child(4) {
    transform: none;
  }

  .grid {
    grid-auto-rows: 9.5rem;
  }

  .viewer__prev,
  .viewer__next {
    top: auto;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .wa {
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.75rem;
  }

  .dock {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 34;
    padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: var(--ink);
    border-top: 1px solid var(--line-on-ink);
    transform: translateY(110%);
    transition: transform 320ms var(--ease-out);
  }

  .dock.is-on {
    transform: none;
  }

  .dock .btn {
    width: 100%;
  }

  }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* Postula: fondo blanco, foto grande y círculo que pasa por detrás del formulario */

.apply {
  background: var(--surface);
  overflow-x: clip;
}

.process {
  background: var(--paper);
}

.stepper__num {
  background: var(--paper);
}

.stepper__panel {
  background: var(--surface);
}

/* Título y texto arriba, a lo ancho; debajo, beneficios y foto; el formulario ocupa toda la altura a la derecha */
.apply__grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(1rem, 2.5vw, 2.5rem);
  row-gap: 0;
  align-items: start;
}

.apply__copy {
  display: contents;
}

.apply__copy h2 {
  grid-column: 1 / 3;
  grid-row: 1;
  max-width: none;
}

.apply__copy .lead {
  grid-column: 1 / 3;
  grid-row: 2;
  max-width: 44ch;
}

.apply__copy .perks {
  grid-column: 1;
  grid-row: 3;
  align-self: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.apply__photo {
  position: relative;
  z-index: 0;
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  margin-top: clamp(2rem, 4vw, 3rem);
  aspect-ratio: 4 / 5;
}

/* El círculo mide más que la columna de la foto y se mete debajo del formulario */
.apply__photo::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 4%;
  bottom: -6%;
  width: 128%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--blue), var(--violet) 50%, var(--pink));
}

.apply__photo img {
  position: absolute;
  left: 8%;
  bottom: 0;
  width: 84%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  border: clamp(4px, 0.5vw, 7px) solid var(--surface);
}

.apply .wizard {
  position: relative;
  z-index: 1;
  grid-column: 3;
  grid-row: 1 / 4;
  align-self: center;
  margin-left: clamp(-4.5rem, -4vw, -1rem);
}

/* Los tres pasos comparten la misma celda: la tarjeta mide siempre lo que el paso más alto y nada salta */
.wizard {
  grid-template-columns: minmax(0, 1fr);
}

.wizard__head {
  grid-row: 1;
}

.wizard__panel {
  grid-row: 2;
  grid-column: 1;
  display: grid;
  align-content: start;
  visibility: hidden;
  pointer-events: none;
}

.wizard__panel.is-active {
  visibility: visible;
  pointer-events: auto;
}

.wizard__foot {
  grid-row: 3;
}

@media (max-width: 64rem) {
  .apply__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: auto;
  }

  .apply__copy h2,
  .apply__copy .lead {
    grid-column: 1 / -1;
  }

  .apply__copy .perks {
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
  }

  .apply__photo {
    grid-column: 1;
    grid-row: 4;
  }

  .apply .wizard {
    grid-column: 2;
    grid-row: 4;
    margin-top: clamp(2rem, 4vw, 3rem);
  }

  .apply__photo::after {
    left: 0;
    width: 124%;
  }
}

@media (max-width: 40rem) {
  .apply__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .apply__copy .perks {
    grid-template-columns: minmax(0, 1fr);
  }

  .apply__photo {
    grid-column: 1;
    grid-row: 4;
    width: min(74%, 19rem);
    margin: 2rem auto 0;
  }

  .apply__photo::after {
    left: -18%;
    width: 136%;
    bottom: -10%;
  }

  .apply .wizard {
    grid-column: 1;
    grid-row: 5;
    margin-left: 0;
    margin-top: -2.5rem;
  }
}

/* Pilares: cada uno con su icono, como elementos separados */

.pillars__list {
  border-top: 1px solid var(--line);
}

.pillars__list button {
  display: flex;
  align-items: center;
  gap: clamp(0.875rem, 2vw, 1.5rem);
  width: 100%;
  min-height: 4.5rem;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.625rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
  cursor: pointer;
  touch-action: manipulation;
  transition: color 240ms var(--ease-out);
}

.pillars__list button i {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(2.75rem, 5vw, 3.5rem);
  height: clamp(2.75rem, 5vw, 3.5rem);
  border-radius: 50%;
  border: 2px solid currentColor;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  transition: background-color 240ms var(--ease-out), border-color 240ms var(--ease-out), color 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.pillars__list button[aria-selected="true"] {
  color: var(--ink);
}

.pillars__list button[aria-selected="true"] i {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
  transform: scale(1.06);
}


/* Foto de postulación ya recortada (sin fondo): la persona sobresale del círculo */

.apply__photo.is-cut img {
  left: 0;
  width: 100%;
  height: 108%;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 9%);
  mask-image: linear-gradient(to top, transparent 0, #000 9%);
}

.apply__photo.is-cut::after {
  bottom: -9%;
}

/* El título del formulario reserva dos líneas para que la tarjeta no cambie de alto entre pasos */

.wizard__head h3 {
  min-height: 2.1em;
}

.wizard__head h3:focus {
  outline: none;
}

/* Galería: todas las fotos del mismo tamaño */

.grid {
  grid-auto-rows: auto;
}

.tile button {
  aspect-ratio: 4 / 3;
}

/* Conoce más: dos fotos horizontales iguales (las fotos reales son apaisadas) */

.about__photos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.about__photos figure:last-child {
  aspect-ratio: 4 / 3;
}

/* Portada: la altura crece con el ancho para que la foto mantenga el mismo encuadre con cualquier zoom o pantalla */

.hero {
  display: grid;
  align-items: end;
  min-height: clamp(34rem, 46vw, 46rem);
}

@media (max-width: 60rem) {
  .hero {
    min-height: 0;
  }

  .hero__media img {
    object-position: 58% 50%;
  }
}

/* Pantallas muy anchas o zoom alejado: la foto no pasa de 100rem de ancho y se funde con el fondo a los lados */

.hero__media {
  left: 50%;
  right: auto;
  width: min(100%, 100rem);
  transform: translateX(-50%);
}

@media (min-width: 100rem) {
  .hero__media {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
}

/* ---- Proceso y pilares: avanzan solos; barrita de tiempo bajo la pestaña activa ---- */

[data-auto] [role="tab"] {
  position: relative;
}

[data-auto] [role="tab"].is-run::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.375rem;
  width: 2.5rem;
  height: 3px;
  margin-left: -1.25rem;
  border-radius: 999px;
  background: var(--action);
  transform-origin: left;
  animation: avance var(--auto, 5000ms) linear forwards;
}

.pillars__list[data-auto] [role="tab"].is-run::after {
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  width: auto;
  margin-left: 0;
  height: 2px;
}

@keyframes avance {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ---- Convivencia con WordPress ---- */

.ytg-page .entry-content > *,
.ytg-page .elementor-widget-container > * {
  margin-block: 0;
}

.ytg-page .site-content .ast-container,
.ytg-page #primary,
.ytg-page .entry-content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

.ytg-page .entry-header,
.ytg-page .site-header,
.ytg-page .site-footer,
.ytg-page .ast-breadcrumbs-wrapper {
  display: none;
}

/* El tema Astra pinta títulos, enlaces y botones con sus propios colores; aquí se devuelven a los de la página */

.ytg-page h1,
.ytg-page h2,
.ytg-page h3 {
  color: inherit;
}

.ytg-page button {
  box-shadow: none;
  text-transform: none;
}

.ytg-page button.btn:hover,
.ytg-page button.btn:focus {
  background-color: var(--action-press);
  border-color: transparent;
  color: var(--on-action);
}

.ytg-page button.btn--line:hover,
.ytg-page button.btn--line:focus {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.ytg-page .menu-btn:hover,
.ytg-page .menu-btn:focus {
  background-color: transparent;
  border-color: var(--line-on-ink);
  color: #fff;
}

.ytg-page .stepper__tabs button,
.ytg-page .stepper__tabs button:hover,
.ytg-page .stepper__tabs button:focus {
  background-color: transparent;
  color: var(--text);
}

.ytg-page .pillars__list button {
  border-radius: 0;
}

.ytg-page .pillars__list button:hover,
.ytg-page .pillars__list button:focus {
  background-color: transparent;
  border-color: var(--line);
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}

.ytg-page .pillars__list button[aria-selected="true"],
.ytg-page .pillars__list button[aria-selected="true"]:hover,
.ytg-page .pillars__list button[aria-selected="true"]:focus {
  color: var(--ink);
}

.ytg-page .icon-btn:hover,
.ytg-page .icon-btn:focus {
  background-color: transparent;
  border-color: currentColor;
  color: inherit;
}

.ytg-page .stories .icon-btn:not(:disabled):hover {
  background-color: #fff;
  color: var(--ink);
}

.ytg-page .viewer .icon-btn,
.ytg-page .viewer .icon-btn:focus {
  background-color: rgba(8, 8, 28, 0.7);
  color: #fff;
}

.ytg-page .viewer .icon-btn:hover {
  background-color: #fff;
  color: var(--ink);
}

.ytg-page .filter,
.ytg-page .filter:hover,
.ytg-page .filter:focus {
  background-color: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.ytg-page .filter.is-active,
.ytg-page .filter.is-active:hover,
.ytg-page .filter.is-active:focus {
  background-color: var(--ink);
  color: #fff;
}

.ytg-page .tile button,
.ytg-page .tile button:hover,
.ytg-page .tile button:focus {
  background-color: var(--ink);
  border-radius: var(--r);
}

.ytg-page a:focus {
  color: inherit;
}

.admin-bar .header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}

/* ---- Personalizador ---- */
.ytg-page .customize-partial-edit-shortcut button { box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.ytg-page .hero__media .customize-partial-edit-shortcut { left: auto; right: 4rem; top: 6rem; }
