/* Home journey (Nov 19): "Cómo funciona", condensed services (tabs + "Qué incluye") and the closing call to action.
   Same tokens as the services and the property pages. Everything is visible without JavaScript or with reduced motion. */
.mse-journey,
.mse-close {
  --jr-ink: var(--e-global-color-astglobalcolor7, #0a404d);
  --jr-accent: #b05434; /* brand #cd6442, darkened for text contrast (WCAG AA 4.5:1) */
  --jr-text: #3d4a4f;
  --jr-muted: #5d6c71;
  --jr-sand: #f7f2ef;
  --jr-line: rgb(10 64 77 / 0.12);
  --jr-deep: linear-gradient(155deg, rgb(34 83 65) 0%, rgb(10 48 66) 100%);
  box-sizing: border-box;
  color: var(--jr-text);
}
.mse-journey *, .mse-close * { box-sizing: border-box; }

/* Shared buttons */
.mse-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 28px; border-radius: 12px; font-family: "Raleway", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-decoration: none; transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.mse-btn--primary { color: #fff; background: linear-gradient(158deg, #e68866 0%, #ae441d 100%); }
.mse-btn--primary:hover, .mse-btn--primary:focus-visible { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgb(174 68 29 / 0.3); }
.mse-btn--ghost { color: #fff; border: 1px solid rgb(255 255 255 / 0.5); }
.mse-btn--ghost:hover, .mse-btn--ghost:focus-visible { color: #fff; background: rgb(255 255 255 / 0.1); }
.mse-btn--link { min-height: 0; padding: 8px 4px; color: #fff; letter-spacing: 0.02em; text-decoration: underline; text-underline-offset: 4px; }
.mse-btn--link:hover { color: #e68866; }

/* Reveal on scroll (only once JavaScript is running) */
.mse-js .mse-reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.mse-js .mse-reveal.is-in { opacity: 1; transform: none; }

/* "Cómo funciona" */
.mse-journey { width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(64px, 8vw, 112px) 20px clamp(24px, 4vw, 48px); }
.mse-journey__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.mse-journey .mse-journey__eyebrow { margin: 0 0 12px; color: var(--jr-accent); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.mse-journey .mse-journey__title { margin: 0 0 14px; color: var(--jr-ink); font-family: "Zalando Sans Expanded", "Montserrat", sans-serif; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.15; }
.mse-journey .mse-journey__lead { margin: 0 0 28px; color: var(--jr-muted); font-size: 18px; line-height: 1.55; }
.mse-journey__switch { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; background: var(--jr-sand); border-radius: 999px; }
.mse-journey__switch [role="tab"] { min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; color: var(--jr-ink); background: transparent; font-family: "Raleway", sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.mse-journey__switch [role="tab"][aria-selected="true"] { color: #fff; background: var(--jr-ink); }
.mse-journey__switch [role="tab"]:focus-visible { outline: 3px solid var(--jr-accent); outline-offset: 2px; }
html:not(.mse-js) .mse-journey__switch { display: none; }
.mse-js .mse-journey__track[hidden], .mse-js .mse-services__group[hidden] { display: none !important; }
html:not(.mse-js) .mse-journey__track[hidden] { display: grid; }

.mse-journey__track { --mse-progress: 0.2; display: grid; gap: 0; }
.mse-journey__panel { display: none; }
.mse-journey__steps { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.mse-step { position: relative; margin: 0; padding: 0 0 32px 64px; }
.mse-step::before { content: ""; position: absolute; top: 48px; bottom: 0; left: 23px; width: 2px; background: var(--jr-line); }
.mse-step:last-child::before { display: none; }
.mse-step__icon { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 48px; height: 48px; color: var(--jr-accent); background: var(--jr-sand); border-radius: 50%; }
.mse-step__icon svg { width: 24px; height: 24px; }
.mse-journey .mse-step__count { margin: 2px 0 4px; color: var(--jr-accent); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.mse-journey .mse-step__title { margin: 0 0 8px; color: var(--jr-ink); font-family: "Zalando Sans Expanded", "Montserrat", sans-serif; font-size: 21px; font-weight: 700; line-height: 1.25; }
.mse-journey .mse-step__text { margin: 0; color: var(--jr-text); font-size: 17px; line-height: 1.6; }
.mse-journey__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; padding: 8px 0 0; }
.mse-journey .mse-journey__note { margin: 0; color: var(--jr-muted); font-size: 15px; line-height: 1.5; }

/* Wide screens: the panel stays in view and follows the step being read. */
@media (min-width: 960px) {
  .mse-journey__track { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(40px, 6vw, 88px); align-items: start; }
  .mse-journey__panel { display: block; position: sticky; top: 120px; }
  .mse-journey__panel-inner { position: relative; height: min(460px, 62vh); overflow: hidden; border-radius: 28px; background: var(--jr-deep); box-shadow: 0 24px 54px rgb(10 64 77 / 0.22); }
  .mse-journey__slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 44px; color: #fff; opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 0.5s ease, transform 0.5s ease; }
  .mse-journey__slide.is-active { opacity: 1; transform: none; }
  .mse-journey__num { position: absolute; top: 28px; right: 36px; color: rgb(255 255 255 / 0.1); font-family: "Zalando Sans Expanded", "Montserrat", sans-serif; font-size: 150px; font-weight: 700; line-height: 1; }
  .mse-journey__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; color: #e68866; background: rgb(255 255 255 / 0.08); border-radius: 18px; }
  .mse-journey__icon svg { width: 32px; height: 32px; }
  .mse-journey__slide-title { max-width: 16ch; font-family: "Zalando Sans Expanded", "Montserrat", sans-serif; font-size: 30px; font-weight: 700; line-height: 1.15; }
  .mse-journey__bar { position: absolute; right: 44px; bottom: 30px; left: 44px; height: 3px; overflow: hidden; background: rgb(255 255 255 / 0.15); border-radius: 3px; }
  .mse-journey__bar span { display: block; width: calc(var(--mse-progress) * 100%); height: 100%; background: #e68866; transition: width 0.5s ease; }
  .mse-journey__slide { padding-bottom: 64px; }
  .mse-step { display: flex; flex-direction: column; justify-content: center; min-height: 30vh; padding: 20px 0 20px 72px; }
  /* Steps that are not current: grey text (readable, 5:1) and a faded icon, instead of fading the whole step. */
  .mse-step:not(.is-active) :is(.mse-step__title, .mse-step__text, .mse-step__count) { color: var(--jr-muted); transition: color 0.4s ease; }
  .mse-step:not(.is-active) .mse-step__icon { opacity: 0.45; transition: opacity 0.4s ease; }
  .mse-step__icon { top: calc(50% - 24px); }
  .mse-step::before { top: calc(50% + 28px); bottom: calc(-50% + 28px); }
  .mse-journey__cta { grid-column: 2; justify-content: flex-start; padding-left: 72px; }
}

/* Condensed services: tabs per group, points behind "Qué incluye". */
.mse-services__tabs { display: none; }
.mse-js .mse-services__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto 36px; padding: 6px; background: #f7f2ef; border-radius: 999px; }
.mse-services__tabs [role="tab"] { min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px; color: #0a404d; background: transparent; font-family: "Raleway", sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; }
.mse-services__tabs [role="tab"][aria-selected="true"] { color: #fff; background: #0a404d; }
.mse-services__tabs [role="tab"]:focus-visible { outline: 3px solid #cd6442; outline-offset: 2px; }
.mse-js .mse-services .mse-services__group-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mse-service__details { margin: 0 0 20px; border-top: 1px solid rgb(10 64 77 / 0.1); }
.mse-service__details > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 0; color: #0a404d; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.mse-service__details > summary::-webkit-details-marker { display: none; }
.mse-service__details > summary::after { content: "+"; color: #b05434; font-size: 22px; font-weight: 400; line-height: 1; transition: transform 0.2s ease; }
.mse-service__details[open] > summary::after { transform: rotate(45deg); }
.mse-service__details .mse-service__items { margin: 4px 0 4px; }

/* Offices (home and "¿Quiénes somos?"), before the shared closing call to action. */
.mse-offices { box-sizing: border-box; width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) 20px 0; text-align: center; color: #3d4a4f; }
.mse-offices * { box-sizing: border-box; }
.mse-offices .mse-offices__eyebrow { margin: 0 0 12px; color: #b05434; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.mse-offices .mse-offices__title { margin: 0 0 28px; color: #0a404d; font-family: "Zalando Sans Expanded", "Montserrat", sans-serif; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.15; }
.mse-offices__list { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.mse-office { padding: 24px; text-align: left; background: #fff; border: 1px solid rgb(10 64 77 / 0.1); border-radius: 22px; box-shadow: 0 14px 34px rgb(10 64 77 / 0.06); }
.mse-offices .mse-office__city { margin: 0 0 8px; color: #0a404d; font-family: "Zalando Sans Expanded", "Montserrat", sans-serif; font-size: 20px; font-weight: 700; }
.mse-offices .mse-office__address { margin: 0 0 14px; color: #3d4a4f; font-size: 16px; line-height: 1.55; }
.mse-offices .mse-office__map { color: #0a404d; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.mse-offices .mse-office__map:hover { color: #b05434; }
.mse-offices .mse-offices__hours { margin: 18px 0 0; color: #5d6c71; font-size: 15px; }
@media (min-width: 768px) { .mse-offices__list { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* Closing call to action */
.mse-close { width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) 20px; }
.mse-close__inner { padding: clamp(36px, 6vw, 64px) clamp(24px, 6vw, 72px); text-align: center; color: #fff; background: var(--jr-deep); border-radius: 28px; box-shadow: 0 24px 54px rgb(10 64 77 / 0.2); }
.mse-close .mse-close__eyebrow { margin: 0 0 12px; color: #e68866; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.mse-close .mse-close__title { margin: 0 0 14px; color: #fff; font-family: "Zalando Sans Expanded", "Montserrat", sans-serif; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.15; }
.mse-close .mse-close__text { max-width: 620px; margin: 0 auto 30px; color: rgb(255 255 255 / 0.86); font-size: 18px; line-height: 1.6; }
.mse-close__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }

/* Service pages: "Tu trámite en 4 pasos", frequent questions and the contact bar. */
.mse-process, .mse-faq, .mse-bar { --jr-ink: #0a404d; --jr-accent: #b05434; --jr-text: #3d4a4f; --jr-muted: #5d6c71; --jr-sand: #f7f2ef; box-sizing: border-box; color: var(--jr-text); }
.mse-process *, .mse-faq *, .mse-bar * { box-sizing: border-box; }
.mse-process { width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) 20px clamp(40px, 5vw, 64px); }
.mse-process__head { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 48px); text-align: center; }
.mse-process .mse-process__eyebrow { margin: 0 0 12px; color: var(--jr-accent); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.mse-process .mse-process__title { margin: 0 0 14px; color: var(--jr-ink); font-family: "Zalando Sans Expanded", "Montserrat", sans-serif; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.15; }
.mse-process .mse-process__lead { margin: 0; color: var(--jr-muted); font-size: 18px; line-height: 1.55; }
.mse-process__list { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.mse-process__step { position: relative; margin: 0; padding: 0 0 28px 64px; }
.mse-process__step::before { content: ""; position: absolute; top: 52px; bottom: 4px; left: 23px; width: 2px; background: rgb(10 64 77 / 0.12); }
.mse-process__step:last-child::before { display: none; }
.mse-process__icon { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 48px; height: 48px; color: #fff; background: linear-gradient(155deg, rgb(34 83 65) 0%, rgb(10 48 66) 100%); border-radius: 50%; }
.mse-process__icon svg { width: 24px; height: 24px; }
.mse-process .mse-process__count { margin: 2px 0 4px; color: var(--jr-accent); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.mse-process .mse-process__name { margin: 0 0 8px; color: var(--jr-ink); font-family: "Zalando Sans Expanded", "Montserrat", sans-serif; font-size: 20px; font-weight: 700; line-height: 1.25; }
.mse-process .mse-process__text { margin: 0; color: var(--jr-text); font-size: 16px; line-height: 1.6; }
.mse-process__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 12px; }
.mse-process .mse-process__link { color: var(--jr-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.mse-process .mse-process__link:hover { color: var(--jr-accent); }
@media (min-width: 960px) {
  .mse-process__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .mse-process__list::before { content: ""; position: absolute; top: 56px; right: 12%; left: 12%; height: 2px; background: rgb(10 64 77 / 0.12); }
  .mse-process__step { padding: 32px 24px 28px; text-align: center; background: #fff; border: 1px solid rgb(10 64 77 / 0.08); border-radius: 24px; box-shadow: 0 14px 34px rgb(10 64 77 / 0.08); }
  .mse-process__step::before { display: none; }
  .mse-process__icon { position: relative; margin: 0 auto 16px; width: 52px; height: 52px; }
  .mse-js .mse-process__step.mse-reveal { transition-delay: calc(var(--mse-i, 0) * 120ms); }
  .mse-process__cta { margin-top: 36px; }
}

.mse-faq { width: 100%; max-width: 860px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) 20px; }
.mse-faq .mse-faq__title { margin: 0 0 24px; color: var(--jr-ink); font-family: "Zalando Sans Expanded", "Montserrat", sans-serif; font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.2; text-align: center; }
.mse-faq__list { border-top: 1px solid rgb(10 64 77 / 0.12); }
.mse-faq__item { border-bottom: 1px solid rgb(10 64 77 / 0.12); }
.mse-faq__item > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 0; color: var(--jr-ink); font-size: 17px; font-weight: 700; line-height: 1.4; cursor: pointer; list-style: none; }
.mse-faq__item > summary::-webkit-details-marker { display: none; }
.mse-faq__item > summary::after { content: "+"; flex: none; color: var(--jr-accent); font-size: 24px; font-weight: 400; line-height: 1; transition: transform 0.2s ease; }
.mse-faq__item[open] > summary::after { transform: rotate(45deg); }
.mse-faq__item > summary:focus-visible { outline: 3px solid var(--jr-accent); outline-offset: 4px; }
.mse-faq__item > p { margin: 0 0 20px; color: var(--jr-text); font-size: 16px; line-height: 1.65; }
.mse-faq .mse-faq__more { margin: 24px 0 0; text-align: center; }
.mse-faq .mse-faq__more a { color: var(--jr-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Contact bar: hidden until the visitor is past the hero, and again over the contact block and footer. */
.mse-bar { position: fixed; z-index: 990; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 0.96); box-shadow: 0 -8px 24px rgb(10 64 77 / 0.12); transform: translate3d(0, 110%, 0); visibility: hidden; transition: transform 0.3s ease, visibility 0s linear 0.3s; }
.mse-bar.is-on { transform: none; visibility: visible; transition: transform 0.3s ease; }
.mse-bar .mse-bar__text { display: none; margin: 0; }
.mse-bar__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 16px; border-radius: 12px; font-family: "Raleway", sans-serif; font-size: 15px; font-weight: 700; text-decoration: none; }
.mse-bar__btn--wa, .mse-bar__btn--wa:hover { color: #fff; background: linear-gradient(158deg, #e68866 0%, #ae441d 100%); }
.mse-bar__btn--call, .mse-bar__btn--call:hover { color: #0a404d; border: 1px solid rgb(10 64 77 / 0.25); }
html:not(.mse-js) .mse-bar { display: none; }
@media (min-width: 768px) {
  .mse-bar { right: 24px; bottom: 24px; left: auto; grid-template-columns: auto auto auto; align-items: center; gap: 10px; padding: 10px 10px 10px 20px; border-radius: 18px; box-shadow: 0 16px 40px rgb(10 64 77 / 0.18); }
  .mse-bar .mse-bar__text { display: block; color: #0a404d; font-size: 14px; font-weight: 700; }
  .mse-bar__btn { min-height: 44px; }
}

/* Residencia page: an empty "Requisitos:" heading sat above the list of what temporary residency allows. */
.elementor-5832 .elementor-element-bd138cd { display: none; }

@media (max-width: 767px) {
  .mse-journey__switch, .mse-js .mse-services__tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
  .mse-journey__switch [role="tab"], .mse-services__tabs [role="tab"] { padding: 12px 10px; border-radius: 14px; font-size: 14px; line-height: 1.25; }
  .mse-journey .mse-step__title { font-size: 19px; }
  .mse-journey .mse-step__text, .mse-journey .mse-journey__lead, .mse-close .mse-close__text { font-size: 16px; }
  .mse-close__actions .mse-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mse-js .mse-reveal, .mse-journey__slide, .mse-step, .mse-journey__bar span, .mse-btn, .mse-bar { transition: none !important; }
  .mse-js .mse-reveal, .mse-journey__slide, .mse-step, .mse-btn { transform: none !important; }
  .mse-js .mse-reveal { opacity: 1; }
}
