#inicio.hero-story {
  --ink: #091e2b;
  min-height: 100svh; display: flex; align-items: center;
  background: var(--ink); isolation: isolate; overflow-anchor: none;
}
#inicio.hero-story .hero-content {
  position: relative; z-index: 2; padding-block: clamp(84px,11svh,114px) 74px;
}
#inicio.hero-story .hero-image {
  inset: 0 0 0 auto; width: 79%; height: 100%;
  background: url("./assets/photos/jornada-escritorio.webp") 55% center / cover no-repeat;
}
#inicio .hero-image video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 55% center; opacity: 0;
}
#inicio .hero-image.has-video video { opacity: 1; }
#inicio.hero-story .hero-shade {
  inset: 0; height: 100%;
  background: linear-gradient(90deg,#081e2b 5%,#081e2bf5 26%,#081e2bb5 45%,#081e2b45 65%,#081e2b0d 86%),
              linear-gradient(0deg,#071c29aa,transparent 34%);
}
#inicio .hero-shade::after {
  content: ''; position: absolute; inset: 0; background: #081e2b66; opacity: 0;
}
#inicio .story-kicker {
  margin: 0 0 5px; color: #c6dcd5;
  font: 470 clamp(.78rem,1.04vw,.94rem)/1.35 Montserrat,sans-serif;
}
#inicio .story-kicker strong { font-weight: 640; }
#inicio h1.hero-opening {
  margin: 0 0 clamp(12px,1.8svh,20px); max-width: none; color: #fffaf1;
  font: 400 clamp(2.2rem,3.2vw,3.5rem)/1.02 "Landing Editorial",Georgia,serif;
  letter-spacing: -.025em;
}
#inicio h1.hero-opening em, #inicio .hero-question em {
  display: inline; padding: 0; color: #b0efd7;
  font: italic 400 1em/1 "Landing Editorial",Georgia,serif; letter-spacing: inherit;
}
#inicio .hero-opening:focus { outline: none; }
#inicio .story-setup { position: relative; }
#inicio .hero-task-list {
  position: relative; width: min(54%,40rem); max-width: 100%; list-style: none; margin: 0;
  padding: clamp(12px,1.7svh,20px) clamp(16px,1.8vw,28px);
  isolation: isolate;
}
#inicio .hero-task-list::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 100%; z-index: -1;
  box-sizing: border-box; pointer-events: none;
  background: linear-gradient(112deg,rgba(18,55,64,.90),rgba(16,42,50,.77));
  border: 1px solid #d8f8ea59; border-left: 3px solid #9bdec7; border-radius: 5px 13px 5px 5px;
  box-shadow: inset 0 1px 0 #f2fff412, 0 10px 32px #04151f40;
}
#inicio .hero-task p {
  position: relative; margin: 0; padding: .18em 0 .18em 1.35em;
  color: #f6f7ed; font: 485 clamp(1.09rem,1.5vw,1.47rem)/1.32 Inter,sans-serif; letter-spacing: -.016em;
}
#inicio .hero-task:not(.extra-role) p::before {
  content: ''; position: absolute; top: .58em; left: .08em; width: .62em; height: .29em;
  border: solid #a9e6cc; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
#inicio .extra-role p { padding-left: 0; }
#inicio .hero-task:not(.extra-role) + .extra-role p {
  margin-top: .32em; border-top: 1px solid #bed9cf66; padding-top: .47em;
}
#inicio .extra-role strong { color: #b5efd5; font-weight: 630; }
#inicio .hero-question {
  max-width: 80%; margin: clamp(14px,2.6svh,26px) 0 0;
  color: #fffaf0; font: 400 clamp(3.4rem,7.8vw,7.6rem)/.96 "Landing Editorial",Georgia,serif;
  letter-spacing: -.036em; text-shadow: 0 2px 18px #0622305c;
}
#inicio .hero-question span {
  display: block; margin-bottom: .11em; color: inherit; font-size: .47em; line-height: 1.06; letter-spacing: -.025em;
}
#inicio .hero-question em { white-space: nowrap; }
#inicio .story-answer { position: relative; padding-block: 42px 10px; }
#inicio .hero-answer { margin: 0; font-weight: 400; color: #fffaf0; }
#inicio .hero-answer::before {
  content: ''; display: block; height: 2px; width: 40px; background: #a5e4cd; margin-bottom: 22px;
}
#inicio .hero-answer span, #inicio .hero-answer strong, #inicio .hero-answer em { display: block; }
#inicio .hero-answer span { color: inherit; font: 400 clamp(2.35rem,4.5vw,4.8rem)/1.04 "Landing Editorial",Georgia,serif; letter-spacing: -.028em; }
#inicio .hero-answer strong { margin: .12em 0 .03em; font: 580 clamp(2.6rem,5.6vw,5.85rem)/1.06 Inter,sans-serif; letter-spacing: -.055em; }
#inicio .hero-answer em { color: #a8f0cf; font: italic 400 clamp(5.6rem,12vw,12.6rem)/.95 "Landing Editorial",Georgia,serif; letter-spacing: -.045em; }
#inicio .action-row { max-width: 100%; margin: clamp(21px,3.5svh,38px) 0 0; gap: 8px 14px; }
#inicio .story-scroll-text { font: inherit; }
#inicio.hero-story .scroll-hint { bottom: max(8px,env(safe-area-inset-bottom)); max-width: calc(100% - 94px); }
.hero-video-toggle:not([hidden]) {
  position: absolute; right: max(16px,3.5vw,env(safe-area-inset-right)); top: 88px; z-index: 4;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #b7d0c9; border-radius: 50%; background: #102733e6; color: #fffaf2;
  cursor: pointer; font-size: 0;
}
.hero-video-toggle::before { content: ''; display: block; border: solid transparent; border-width: 6px 0 6px 10px; border-left-color: currentColor; margin-left: 2px; }
.hero-video-toggle.is-playing::before { border: solid currentColor; border-width: 0 3px; width: 10px; height: 12px; margin: 0; }
.hero-video-toggle:focus-visible { outline: 3px solid #ffcf75; outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .story-pinned { height: calc(100svh + clamp(490px,94svh,960px) + var(--question-hold,0px)); }
  .story-pinned #inicio { position: sticky; top: 0; height: 100svh; }
  .story-pinned #inicio .hero-content { display: grid; align-items: center; }
  .story-pinned :is(.story-setup,.story-answer) { grid-area: 1 / 1; }
  .story-pinned { --glide: cubic-bezier(.22,.75,.22,1); }
  .story-pinned .story-setup {
    translate: 0 var(--setup-shift,0px); transition: translate 300ms var(--glide),opacity 200ms ease;
  }
  .story-pinned .hero-task {
    opacity: 0; translate: 0 5px; transition: opacity 200ms ease,translate 255ms var(--glide);
  }
  .story-pinned .hero-task.is-visible { opacity: 1; translate: 0; }
  .story-pinned #inicio .hero-task-list::before {
    height: var(--panel-height,100%); transition: height 245ms var(--glide);
  }
  .story-pinned .hero-question { opacity: 0; translate: 0 7px; transition: opacity 225ms ease,translate 270ms var(--glide); }
  .story-pinned[data-scene="question"] .hero-question { opacity: 1; translate: 0; }
  .story-pinned[data-scene="answer"] .story-setup { opacity: 0; translate: 0 -6px; }
  .story-pinned #inicio .story-answer {
    padding-block: 0; opacity: 0; translate: 0 8px; transition: opacity 190ms ease,translate 275ms var(--glide);
  }
  .story-pinned[data-scene="answer"] #inicio .story-answer {
    opacity: 1; translate: 0; transition-delay: 55ms;
  }
  .story-pinned .hero-shade::after { transition: opacity 300ms ease; }
  .story-pinned[data-scene="answer"] #inicio .hero-shade::after { opacity: 1; }
  .story-pinned #inicio .scroll-hint {
    top: 0; bottom: auto; translate: 0 var(--cue-top,0px); transition: translate 275ms var(--glide);
  }
  .story-pinned .story-answer[inert] { pointer-events: none; }
  .story-pinned[data-scene="question"] #inicio .scroll-hint {
    min-width: 44px; justify-content: center;
  }
}

@media (max-width:820px) {
  html { scroll-behavior: auto; }
  .entry-runway + .site-header#site-header { position: sticky; top: 0; background: #0a202ef5; }
  .mobile-nav nav { max-height: calc(100svh - 68px); overflow-y: auto; }
  .mobile-nav nav a { min-height: 44px; }
  #inicio.hero-story .hero-content { width: calc(100% - 40px); padding-block: clamp(88px,18svh,155px) 70px; }
  #inicio.hero-story .hero-image {
    inset: 0 0 auto; width: 100%; height: clamp(280px,44svh,440px); background-position: 52% 61%;
    background-image: url("./assets/photos/jornada-movil.webp");
    mask-image: linear-gradient(#000 76%,transparent); -webkit-mask-image: linear-gradient(#000 76%,transparent);
  }
  #inicio .hero-image video { object-position: 52% 61%; }
  #inicio .hero-video-toggle:not([hidden]) { top: max(70px,calc(env(safe-area-inset-top) + 64px)); bottom: auto; }
  #inicio.hero-story .hero-shade {
    background: linear-gradient(0deg,#091e2b 0%,#091e2bf5 22%,#091e2b50 63%,transparent 85%),
                linear-gradient(90deg,#091e2bc9,#091e2b3d 76%,#091e2b19);
  }
  #inicio .hero-task-list { width: min(100%,36rem); padding: 12px 16px; }
  #inicio .hero-task p { font-size: clamp(1.05rem,3.75vw,1.22rem); }
  #inicio .hero-question { max-width: 100%; font-size: clamp(3.15rem,10.8vw,5.4rem); }
  #inicio .hero-question span { font-size: .51em; }
  #inicio .hero-answer strong { font-size: clamp(2.25rem,10.7vw,4.4rem); }
  #inicio .hero-answer em { font-size: clamp(5.4rem,24vw,9.2rem); }
  #inicio.hero-story .button-teal, #inicio.hero-story .light-link { font-size: .84rem; min-height: 46px; }
  .motion-stage:not(.story-pinned) #inicio .story-answer { margin-top: 12svh; }
}
@media (max-height:620px) {
  #inicio.hero-story .hero-content { padding-top: 80px; }
}

#proceso .process-examples-link { margin-top: 12px; font-size: .94rem; color: #236859; }
#problema .problem-copy p:not(.eyebrow), #solucion .solution-intro > p:not(.eyebrow),
#proceso .section-heading > p:last-child, #proceso .process-step p, #nosotros .about-detail p,
#planes .section-heading > p:last-child, #planes .plan-lead, #planes .plus-card p, #preguntas .faq-intro > p:last-child,
#preguntas .faq-list details p, #contacto .contact-actions > p {
  font-size: clamp(1.09rem, 1.32vw, 1.22rem); line-height: 1.55; max-width: 60ch;
}
#planes .plan-common { font-size: clamp(1.06rem, 1.2vw, 1.15rem); line-height: 1.55; max-width: 66ch; }
#planes .plan-card li, #planes .case-links a > span.case-story:last-child {
  font-size: clamp(1.04rem, 1.15vw, 1.125rem); line-height: 1.48;
}
#solucion .solution-result {
  display: flex; flex-direction: column; justify-content: center; gap: 17px;
  padding: clamp(18px,3vw,32px); color: #163943; background: #f8f7ef;
}
#solucion .solution-result img { width: min(190px,80%); height: auto; }
#solucion .solution-result p { margin: 0; font: 400 clamp(1.2rem,2vw,1.8rem)/1.15 "Landing Editorial",Georgia,serif; }
#solucion .solution-result p strong { font-weight: 400; color: #226958; }
#solucion .solution-result > span { font: 500 .6rem/1.5 Montserrat,sans-serif; color: #4b6b61; }
