/* ==========================================================================
   GHImprove · boceto · menú nuevo, cierre, pie y páginas internas
   Se carga después de boceto-natural.css en todas las páginas del boceto.
   Sin @layer a propósito: como boceto-natural.css, gana a las capas de styles.css.
   ========================================================================== */

/* ---------- Logo con "Business Transformation" ---------- */
.nav__brand { display: inline-grid; justify-items: stretch; row-gap: 3px; padding: .25rem 0; }
.nav__brand img { height: 30px; width: auto; }
.nav__tagline {
  display: block; font: 600 7.1px/1 var(--font-body); letter-spacing: .07em; text-transform: uppercase;
  color: #3a6670; white-space: nowrap; text-align: justify; text-align-last: justify;
}
.foot__brand > img:first-child { display: block; }
.foot__tagline {
  display: block; width: 119px; margin: .4rem 0 0 !important; font: 600 8.2px/1 var(--font-body); letter-spacing: .07em; /* mismo ancho que el logo del pie */
  text-transform: uppercase; color: #3a6670 !important; text-align: justify; text-align-last: justify; white-space: nowrap;
}
.foot__tagline::after { content: ""; display: block; height: 2px; margin-top: .55rem; border-radius: 2px; background: linear-gradient(90deg, #cfdde0 0 64%, #1fb5c0 64%); }

/* ---------- Ilustración de la portada (BIX en la oficina) ----------
   El color cálido y la luz de la oficina ya vienen integrados en office-calida-*.webp. Aplicados
   en vivo (filter, mix-blend-mode) sobre la animación WebGL, Safari de iPhone la dibujaba a baja
   resolución y el perrito se veía pixelado. */
.office-art { filter: none; }
.office-art::after { content: none; }

/* ---------- Menú: cinco entradas, desplegables y grupos ---------- */
.nav__drop { width: 330px; }
.nav__drop--groups { width: 360px; }
.nav__group {
  margin: .35rem .9rem .1rem; font: 700 .64rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
}
.nav__group:first-child { margin-top: .5rem; }
.nav__drop .mega__item b { letter-spacing: .01em; }
.nav__link[aria-current="page"], .nav__drop .mega__item[aria-current="page"] { background: #e8f4f5; }
@media (min-width: 901px) and (max-width: 1180px) {
  .nav__list .nav__item:nth-child(5) { display: list-item; }
  .nav__link { padding-inline: .6rem; font-size: .88rem; }
  .nav__bar { gap: .6rem; }
  .lvl__meta { display: none; }
}
@media (min-width: 901px) and (max-width: 1000px) {
  .nav__cta { display: none; }
}
@media (max-width: 900px) {
  .nav__drop, .nav__drop--groups { width: auto; }
  .nav__group { margin-inline: .7rem; }
}

@media (max-width: 900px) { .nav__menu { background: #f9f8f4; } }

/* ---------- Pie azul noche, de lado a lado, con la franja del hombre y el perro arriba ----------
   La ilustración (2172×724, proporción 3:1) se muestra como franja de 4.5:1: se recorta un 16 %
   arriba y un 17 % abajo, y quedan completos el texto, el botón dibujado, el hombre y el perro.
   La franja mide el ancho de la pantalla dividido por 4.5, hasta 400 px de alto; si la pantalla es
   más ancha, el horizonte continúa a la derecha con la misma ilustración reflejada (unida por su
   borde, sin corte visible). En pantallas enormes la franja vuelve a crecer (ancho / 6.4) para que
   el reflejo solo muestre ciudad, nunca al perro ni el texto. */
.foot {
  --foot-ink: #dbe7ef; --foot-dim: rgb(219 231 239 / .72); --foot-line: rgb(255 255 255 / .12); --foot-accent: #5fe6f2;
  padding: clamp(1.25rem, 2.6vw, 2rem) 0 calc(1.4rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #0d2744 0%, #0b2139 100%); border-top: 0; color: var(--foot-ink);
}
/* el pie va de lado a lado: sin ancho máximo, solo el margen lateral de la página */
.foot .wrap { width: calc(100% - 2 * var(--gutter)); max-width: none; }
.foot__top { margin-bottom: clamp(1.6rem, 3vw, 2.2rem); }
.cierre { position: relative; overflow: hidden; border-radius: 22px; background: #e9f2f4; color: #24343e; box-shadow: 0 24px 50px -30px rgb(0 0 0 / .7); container-type: inline-size; }
/* PC y tablet: la ilustración completa (3:1, como viene dibujada), con la copa del árbol y las rocas donde están sentados */
.cierre__img, .cierre__extra { display: block; object-fit: cover; object-position: 50% 50%; }
/* PC y tablet: la ilustración trae su texto y su botón; el enlace real queda justo sobre el botón dibujado. */
@media (min-width: 600px) {
  /* alto máximo 460 px; desde ahí la ciudad sigue en una copia reflejada a la derecha. Alto mínimo 1/4.2 del ancho:
     esa copia nunca pasa del 40 % de la imagen (solo ciudad, sin el perro ni el hombre) */
  .cierre__scene { display: flex; height: max(min(100cqw / 3, 460px), 100cqw / 4.2); overflow: hidden; }
  .cierre__main { position: relative; flex: none; height: 100%; aspect-ratio: 3 / 1; }
  .cierre__art, .cierre__img { width: 100%; height: 100%; }
  /* -1px: el ancho de la ilustración puede quedar en fracción de píxel; así no asoma una línea clara en la unión */
  .cierre__extra { flex: none; height: 100%; width: auto; aspect-ratio: 3 / 1; transform: scaleX(-1); margin-left: -1px; }
  .cierre__copy { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .cierre__title, .cierre__lead { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cierre__btn {
    position: absolute; left: 5.29%; top: 58.98%; width: 14.27%; height: 10.36%; pointer-events: auto; /* botón dibujado en la ilustración de día */
    border-radius: 999px; color: transparent; transition: box-shadow .25s, background-color .25s;
  }
  .cierre__btn > * { opacity: 0; }
  .cierre__btn:hover { background: rgb(255 255 255 / .12); box-shadow: 0 0 0 3px rgb(36 52 62 / .35), 0 12px 30px -10px rgb(31 208 217 / .8); }
  .cierre__btn:focus-visible { outline: 3px solid #24343e; outline-offset: 4px; }
}
/* Celular: el texto va aparte, legible, y la ilustración se recorta al hombre, el perro y la ciudad.
   Colores tomados de la ilustración de día: fondo claro como la bruma junto al texto dibujado. */
@media (max-width: 599px) {
  .cierre { display: block; border-radius: 18px; }
  .cierre__extra { display: none; }
  .cierre__copy { position: relative; z-index: 1; padding: clamp(1.6rem, 6vw, 2.2rem) clamp(1.2rem, 5vw, 2rem) 1.4rem; background: linear-gradient(180deg, #fbfbf7, #eef5f7); }
  .cierre__title { margin: 0; font: 800 clamp(1.6rem, 6.4vw, 2.2rem)/1.08 var(--font-display); letter-spacing: -.02em; color: #24343e; }
  .cierre__title span { color: #0e8f9b; }
  .cierre__lead { margin: .7rem 0 1.2rem; font-size: 1rem; line-height: 1.5; color: #364551; max-width: 34ch; }
  .cierre__btn {
    display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1.4rem; border-radius: 999px;
    background: linear-gradient(90deg, #42e3e9, #1fd0d9); color: #0b2236; font: 700 1rem/1 var(--font-display); box-shadow: 0 14px 30px -12px rgb(31 208 217 / .7);
  }
  .cierre__btn:focus-visible { outline: 3px solid #24343e; outline-offset: 3px; }
  .cierre__art { margin-top: -1px; }
  .cierre__art::before { content: ""; position: absolute; inset: 0 0 auto; height: 28%; z-index: 1; background: linear-gradient(#eef5f7, rgb(238 245 247 / 0)); }
  /* 2:1 shows two thirds of the width; starting at 94 % leaves the drawn text (left 29 %) out of frame */
  .cierre__img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-position: 94% 50%; }
}
/* Páginas en inglés (.cierre--texto): la ilustración va sin el texto dibujado (hombre-perro-dia-sin-texto.webp)
   y en PC y tablet el texto y el botón son HTML, en el mismo lugar y tamaño que los dibujados en español.
   Las medidas van en cqh/cqw del recuadro de la ilustración (3:1), así acompañan su tamaño. */
@media (min-width: 600px) {
  .cierre--texto .cierre__copy { container-type: size; }
  .cierre--texto .cierre__title, .cierre--texto .cierre__lead {
    position: absolute !important; left: 5.3%; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin: 0;
  }
  .cierre--texto .cierre__title { top: 24.5%; max-width: 26%; font: 800 6.9cqh/1.1 var(--font-display); letter-spacing: -.02em; color: #24343e; text-wrap: balance; }
  .cierre--texto .cierre__title span { color: #0e8f9b; }
  .cierre--texto .cierre__lead { top: 44.6%; max-width: 21%; font: 400 4cqh/1.36 var(--font-body); color: #364551; }
  .cierre--texto .cierre__btn {
    left: 5.29%; top: 58.98%; width: auto; height: 10.36%; display: inline-flex; align-items: center; gap: 1.4cqh; padding: 0 3.2cqh 0 3.6cqh;
    color: #0b2236; background: linear-gradient(90deg, #42e3e9, #1fd0d9); font: 700 3.8cqh/1 var(--font-display);
    box-shadow: 0 1.6cqh 3.6cqh -1.4cqh rgb(31 208 217 / .7);
  }
  .cierre--texto .cierre__btn > * { opacity: 1; }
  .cierre--texto .cierre__btn .ic { width: 3.6cqh; height: 3.6cqh; }
  .cierre--texto .cierre__btn:hover { background: linear-gradient(90deg, #5de9ee, #2fd7df); }
}

/* Cambio de idioma en la barra: cada página enlaza a la misma página en el otro idioma (ES / EN) */
.nav__lang {
  display: inline-flex; align-items: center; gap: .35rem; flex: none; height: 44px; padding: 0 .8rem; border-radius: 999px;
  border: 1px solid var(--glass-line); background: #fffefa; color: var(--text); font: 700 .76rem/1 var(--font-mono); letter-spacing: .08em;
  transition: background-color .25s, border-color .25s;
}
.nav__lang .ic { width: 16px; height: 16px; color: #0e8f9c; }
.nav__lang:hover { background: #e8f6f7; border-color: #7fcfd7; }
.nav__lang:focus-visible { outline: 3px solid #24343e; outline-offset: 2px; }
@media (max-width: 420px) { .nav__lang { padding: 0 .65rem; } .nav__lang .ic { display: none; } }

/* contenido del pie sobre azul noche */
.foot__grid { gap: clamp(2rem, 4vw, 3rem); }
.foot__brand > img:first-child { filter: brightness(0) invert(1) !important; }
.foot__brand p { color: var(--foot-dim); margin: .9rem 0 1rem; }
.foot__tagline { color: #cfe2ea !important; }
.foot__tagline::after { background: linear-gradient(90deg, rgb(255 255 255 / .28) 0 64%, #22d8ec 64%) !important; }
.foot__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.foot__nav h3 { color: #fff; margin-bottom: .7rem; }
.foot__nav .foot__sub { margin-top: 1.2rem; }
.foot__nav ul a { color: var(--foot-dim); min-height: 30px; }
.foot__nav ul a:hover { color: var(--foot-accent); }
.foot__nav a[aria-current="page"] { color: #fff; font-weight: 600; }
.foot__social a { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .16); color: #fff; }
.foot__social a:hover { color: #fff; border-color: var(--foot-accent); }
.foot__social .foot__whatsapp { color: #4ade80; }
.foot__talent {
  display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; max-width: 330px; padding: .75rem 1rem; border-radius: 16px;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); color: #fff; transition: border-color .2s, transform .3s var(--ease-out);
}
.foot__talent:hover { border-color: var(--foot-accent); transform: translateY(-2px); }
.foot__talent b { display: block; font: 600 .95rem/1.2 var(--font-display); }
.foot__talent small { display: block; margin-top: .15rem; font-size: .82rem; color: var(--foot-dim); }
.foot__talent-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; color: var(--foot-accent); background: rgb(34 216 236 / .14); }
.foot__talent-go { margin-left: auto; color: var(--foot-accent); }
.foot__legal { margin-top: clamp(1.4rem, 2.4vw, 2rem); padding-top: 1.1rem; border-top-color: var(--foot-line); color: rgb(219 231 239 / .6); }
/* PC: marca a la izquierda y las cuatro columnas repartidas en el resto del ancho */
@media (min-width: 1101px) {
  .foot__grid { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(3rem, 6vw, 7rem); }
  .foot__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2.5rem; }
}
.foot__links a { color: rgb(219 231 239 / .7); }
.foot__links a:hover { color: #fff; }
.foot__motion { color: var(--foot-ink); border-color: rgb(255 255 255 / .2); }
.foot__motion:hover { color: #fff; border-color: var(--foot-accent); }
@media (max-width: 1100px) { .foot__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   Páginas internas
   ========================================================================== */
.pg-main { position: relative; z-index: 1; }
.pg .sec { overflow: clip; }

/* migas */
.pg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: 1.2rem; font: 500 .82rem/1.3 var(--font-body); color: var(--text-3); }
.pg-crumbs a { color: var(--text-2); }
.pg-crumbs a:hover { color: var(--aqua); }
.pg-crumbs span[aria-hidden] { opacity: .5; }

/* portada */
.pg-hero { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) 0 clamp(3.5rem, 7vw, 6rem); }
.pg-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.pg-hero__grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.pg-hero__title { margin: 1rem 0 1.1rem; font: 800 clamp(2.15rem, 4.6vw, 3.7rem)/1.03 var(--font-display); letter-spacing: -.025em; color: var(--text); text-wrap: balance; }
.pg-hero__lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.6; color: var(--text-2); max-width: 58ch; }
.pg-hero__lead b, .pg-hero__lead strong { color: var(--text); font-weight: 600; }
.pg-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.pg-hero__facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.pg-hero__facts li {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px; background: rgb(255 255 255 / .8);
  border: 1px solid var(--line); font: 500 .84rem/1.2 var(--font-body); color: var(--text-2);
}
.pg-hero__facts .ic { color: #0e8f9c; }
.pg-hero__art { position: relative; display: grid; place-items: center; min-height: 300px; }
.pg-hero__art::before {
  content: ""; position: absolute; inset: 6% 4%; z-index: -1; border-radius: 46% 54% 52% 48% / 54% 44% 56% 46%;
  background: radial-gradient(circle at 35% 30%, #e1f6f8, #cdeef2 60%, #bfe7ec); box-shadow: inset 0 0 0 1px rgb(31 181 192 / .12);
}
.pg-hero__art img { width: min(100%, 440px); height: auto; filter: drop-shadow(0 26px 30px rgb(14 79 92 / .18)); }
.pg-hero__art--wide img { width: 100%; max-width: 620px; border-radius: 22px; filter: drop-shadow(0 26px 40px rgb(14 79 92 / .22)); }
.pg-hero__art--wide::before { inset: 10% -2% 4%; }

/* encabezado de sección alineado a la izquierda */
.pg-sh { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.pg-sh .sh__title { margin-top: .9rem; }
.pg-sh--center { margin-inline: auto; text-align: center; }
.pg-sh--center .sh__lead { margin-inline: auto; }
.pg-sh .sh__lead { margin-inline: 0; }

/* tarjetas de beneficios */
.pg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.pg-card { display: flex; flex-direction: column; gap: .55rem; padding: 1.5rem 1.4rem 1.6rem; }
.pg-card__ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: .35rem; border-radius: 14px; color: #0e7f8c; background: #e6f5f6; border: 1px solid #c8e8ec; }
.pg-card h3 { font: 600 1.14rem/1.3 var(--font-display); color: var(--text); }
.pg-card p { font-size: .95rem; line-height: 1.6; color: var(--text-2); }
.pg-card ul { display: grid; gap: .35rem; margin-top: .2rem; }
.pg-card li { position: relative; padding-left: 1.3rem; font-size: .93rem; line-height: 1.5; color: var(--text-2); }
.pg-card li::before { content: ""; position: absolute; left: .15rem; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: #1fb5c0; }
.pg-card--accent { background: linear-gradient(160deg, #ffffff, #e9f7f8); border-color: #bfe5ea; }
.pg-card__tag { align-self: flex-start; padding: .3rem .6rem; border-radius: 999px; font: 700 .66rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #0e6a76; background: #e3f4f6; }

/* pasos */
.pg-steps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 1rem; counter-reset: paso; }
.pg-steps::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; z-index: -1;
  background: repeating-linear-gradient(90deg, #8ccbd2 0 8px, transparent 8px 16px);
}
.pg-step { counter-increment: paso; display: grid; justify-items: center; gap: .6rem; text-align: center; padding: 0 .4rem; }
.pg-step::before {
  content: counter(paso, decimal-leading-zero); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font: 700 .95rem/1 var(--font-mono); color: #0e6a76; background: #fff; border: 2px solid #8ccbd2; box-shadow: 0 0 0 7px var(--bg);
}
.pg-step h3 { font: 600 1.05rem/1.3 var(--font-display); color: var(--text); }
.pg-step p { font-size: .92rem; line-height: 1.55; color: var(--text-2); }
@media (max-width: 760px) {
  .pg-steps { grid-template-columns: 1fr; gap: 1.4rem; }
  .pg-steps::before { left: 27px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #8ccbd2 0 8px, transparent 8px 16px); }
  .pg-step { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; column-gap: 1rem; row-gap: .25rem; padding: 0; }
  .pg-step::before { grid-row: span 2; }
}

/* texto + lista */
.pg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.pg-checks { display: grid; gap: .7rem; }
.pg-checks li { display: flex; gap: .7rem; align-items: flex-start; font-size: 1rem; line-height: 1.5; color: var(--text-2); }
.pg-checks li .ic { flex: none; margin-top: .1rem; color: #0e8f9c; }
.pg-checks b { color: var(--text); font-weight: 600; }

/* recursos: video y PDF */
.pg-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: linear-gradient(140deg, #0f3a52, #0e6a76 60%, #1fb5c0); box-shadow: 0 30px 60px -36px rgb(14 79 92 / .55); }
.pg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.pg-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(4 22 34 / .55)); }
.pg-media__play {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .7rem; min-height: 56px; padding: 0 1.4rem 0 .6rem; border-radius: 999px; border: 0;
  background: rgb(255 255 255 / .95); color: #0b3a4a; font: 700 1rem/1 var(--font-display); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .5); cursor: pointer; transition: transform .3s var(--ease-out);
}
.pg-media__play:hover { transform: scale(1.04); }
.pg-media__play span.pg-media__circle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #1fb5c0; color: #fff; }
.pg-media__caption { position: absolute; left: 1.2rem; bottom: 1rem; z-index: 1; color: #fff; font: 600 .95rem/1.3 var(--font-display); }
.pg-res { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }

/* sección de formulario */
.pg-formsec { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pg-formsec__aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.pg-contact { display: grid; gap: .7rem; margin-top: 1.6rem; }
.pg-contact a { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 16px; background: rgb(255 255 255 / .8); border: 1px solid var(--line); color: var(--text); transition: border-color .2s; }
.pg-contact a:hover { border-color: #1fb5c0; }
.pg-contact small { display: block; font-size: .8rem; color: var(--text-3); }
.pg-contact b { display: block; font: 600 .98rem/1.3 var(--font-display); }
.pg-contact .ic { color: #0e7f8c; }
.pg-formsec__pup { width: min(70%, 240px); margin-top: 1.6rem; filter: drop-shadow(0 18px 22px rgb(14 79 92 / .18)); }

/* formulario */
.pg-form { position: relative; padding: clamp(1.4rem, 3vw, 2.2rem); }
.pg-form__title { font: 700 clamp(1.35rem, 2.2vw, 1.7rem)/1.2 var(--font-display); color: var(--text); margin: .6rem 0 .4rem; }
.pg-form__intro { color: var(--text-2); margin-bottom: 1.4rem; line-height: 1.55; }
.pg-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1rem; }
.pg-field { display: grid; gap: .4rem; align-content: start; }
.pg-field--full { grid-column: 1 / -1; }
.pg-field label { font: 600 .86rem/1.3 var(--font-body); color: var(--text); }
.pg-field label .pg-opt { font-weight: 400; color: var(--text-3); }
.pg-field input, .pg-field select, .pg-field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 12px; border: 1px solid #c9dadb; background: #fff;
  font: 400 1rem/1.4 var(--font-body); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.pg-field textarea { min-height: 120px; resize: vertical; }
.pg-field select { appearance: none; padding-right: 2.4rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e6a76' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 18px; }
.pg-field input:focus, .pg-field select:focus, .pg-field textarea:focus { outline: none; border-color: #1fb5c0; box-shadow: 0 0 0 4px rgb(31 181 192 / .18); }
.pg-field.is-invalid input, .pg-field.is-invalid select, .pg-field.is-invalid textarea { border-color: #c2412d; box-shadow: 0 0 0 3px rgb(194 65 45 / .12); }
.pg-field__err { display: none; font-size: .82rem; line-height: 1.35; color: #b23a27; }
.pg-field.is-invalid .pg-field__err { display: block; }
.pg-field__hint { font-size: .8rem; color: var(--text-3); }
.pg-file { position: relative; display: flex; align-items: center; gap: .8rem; min-height: 56px; padding: .7rem .9rem; border-radius: 12px; border: 1.5px dashed #9fcfd5; background: #f6fbfb; cursor: pointer; }
.pg-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pg-file .ic { color: #0e7f8c; }
.pg-file span { font-size: .92rem; color: var(--text-2); }
.pg-file:focus-within { border-color: #1fb5c0; box-shadow: 0 0 0 4px rgb(31 181 192 / .18); }
.pg-form__legal { margin-top: 1rem; font-size: .8rem; line-height: 1.5; color: var(--text-3); }
.pg-form__legal a { color: var(--aqua); text-decoration: underline; }
.pg-form__send { margin-top: 1.3rem; }
.pg-form__send[disabled] { opacity: .65; pointer-events: none; }
.pg-form__status { margin-top: .8rem; font-size: .9rem; color: #b23a27; min-height: 1.2em; }
.pg-form__status:empty { display: none; }
.pg-done { display: grid; justify-items: start; gap: .7rem; padding: .5rem 0; }
.pg-done[hidden] { display: none; }
.pg-done__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e3f6ef; color: #1b8a5a; }
.pg-done__ic .ic { width: 30px; height: 30px; }
.pg-done h3 { font: 700 1.4rem/1.25 var(--font-display); color: var(--text); }
/* Demo: message about the demo while watching it (POST /api/demo/mensaje, as on the current demo page) */
.pg-demo-msg { justify-self: stretch; display: grid; justify-items: start; gap: .6rem; }
.pg-demo-msg .pg-field { justify-self: stretch; }
.pg-demo-msg textarea { min-height: 90px; }
.pg-demo-msg .pg-form__status { margin-top: 0; color: #b23a27; }
.pg-demo-msg .pg-form__status.is-ok { color: #1b8a5a; }
.pg-demo-msg .pg-form__status.is-note { color: var(--text-3); }
.pg-done p { color: var(--text-2); line-height: 1.55; }
.pg-preview-note { display: flex; gap: .6rem; align-items: flex-start; margin-top: .4rem; padding: .7rem .9rem; border-radius: 12px; background: #fff7e8; border: 1px solid #f1d7a6; font-size: .85rem; line-height: 1.45; color: #6d4b16; }
.pg-preview-note .ic { flex: none; color: #b07a1d; margin-top: .05rem; }
@media (max-width: 640px) { .pg-fields { grid-template-columns: 1fr; } }

/* diálogo para descargar el PDF o ver el video */
.pg-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 26px; background: #fffefa; color: var(--text); box-shadow: 0 40px 90px -30px rgb(14 40 60 / .55); }
.pg-dialog::backdrop { background: rgb(7 26 38 / .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pg-dialog .pg-form { padding: clamp(1.4rem, 4vw, 2.2rem); }
.pg-dialog__close { position: absolute; top: .8rem; right: .8rem; z-index: 2; }

/* países (COMPLY) */
.pg-countries { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.pg-country { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font: 600 .9rem/1 var(--font-body); color: var(--text); }
.pg-country.is-on { background: #0e6a76; border-color: #0e6a76; color: #fff; }
.pg-country.is-soon { color: var(--text-3); border-style: dashed; background: transparent; font-weight: 500; }

/* eventos */
.pg-events { display: grid; gap: 1rem; }
.pg-event { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; padding: 1.2rem 1.4rem; }
.pg-event__date { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 18px; background: #e6f5f6; color: #0e6a76; text-align: center; }
.pg-event__date b { display: block; font: 800 1.8rem/1 var(--font-display); }
.pg-event__date small { display: block; font: 700 .7rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.pg-event h3 { font: 600 1.12rem/1.3 var(--font-display); }
.pg-event p { font-size: .9rem; color: var(--text-2); margin-top: .25rem; }
.pg-empty { display: grid; justify-items: center; gap: .7rem; padding: clamp(2rem, 5vw, 3rem) 1.5rem; text-align: center; }
.pg-empty .ic { width: 40px; height: 40px; color: #0e8f9c; }
.pg-empty h3 { font: 700 1.25rem/1.3 var(--font-display); }
.pg-empty p { max-width: 52ch; color: var(--text-2); line-height: 1.55; }
@media (max-width: 640px) {
  .pg-event { grid-template-columns: 64px minmax(0, 1fr); }
  .pg-event__date { width: 64px; height: 64px; }
  .pg-event .btn { grid-column: 1 / -1; justify-self: start; }
}

/* lista de paquetes (CIS) reutiliza .tier de la landing; enlace "equipar" a Cotiza */
.pg-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

/* cifras */
.pg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1rem; }
.pg-stat { padding: 1.3rem 1.4rem; }
.pg-stat b { display: block; font: 800 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font-display); color: #0e6a76; }
.pg-stat span { display: block; margin-top: .45rem; font-size: .9rem; line-height: 1.45; color: var(--text-2); }

/* enlaces a otras soluciones */
.pg-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.pg-next a { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; transition: border-color .2s, transform .3s var(--ease-out); }
.pg-next a:hover { border-color: #1fb5c0; transform: translateY(-2px); }
.pg-next b { display: block; font: 700 1rem/1.2 var(--font-display); color: var(--text); letter-spacing: .02em; }
.pg-next small { display: block; margin-top: .2rem; font-size: .85rem; color: var(--text-3); }
.pg-next .mega__ic { flex: none; }

/* AGENTS: BIX en su laptop rodeado de agentes trabajando (ejemplo ilustrativo) */
.pg-agents { min-height: 420px; }
.pg-agents img { width: min(86%, 420px); position: relative; z-index: 1; }
.pg-agent {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .6rem; padding: .55rem .85rem .55rem .55rem; border-radius: 16px;
  background: rgb(255 255 255 / .96); border: 1px solid #cfe5e8; box-shadow: 0 16px 34px -18px rgb(14 79 92 / .45);
  animation: pgAgentFloat 6s ease-in-out infinite alternate;
}
.pg-agent b { display: block; font: 600 .84rem/1.2 var(--font-display); color: var(--text); white-space: nowrap; }
.pg-agent small { display: block; margin-top: .1rem; font-size: .74rem; color: var(--text-3); white-space: nowrap; }
.pg-agent__ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; color: #0e7f8c; background: #e6f5f6; }
.pg-agent__ic .ic { width: 18px; height: 18px; }
.pg-agent__ic--warn { color: #b07a1d; background: #fff4df; }
.pg-agent__live { position: absolute; top: .5rem; right: .55rem; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgb(34 197 94 / .5); animation: pgLive 2s ease-out infinite; }
.pg-agent--1 { top: 6%; left: -2%; }
.pg-agent--2 { top: 44%; right: -4%; animation-delay: -2s; animation-duration: 7s; }
.pg-agent--3 { bottom: 4%; left: 4%; animation-delay: -4s; }
.pg-agents__note { position: absolute; left: 50%; bottom: -1.2rem; translate: -50% 0; z-index: 2; font: 500 .7rem/1 var(--font-mono); letter-spacing: .06em; color: var(--text-3); white-space: nowrap; }
@keyframes pgAgentFloat { from { translate: 0 -5px; } to { translate: 0 6px; } }
@keyframes pgLive { to { box-shadow: 0 0 0 8px rgb(34 197 94 / 0); } }
/* tablet y celular: BIX arriba y los agentes en fila debajo, sin taparle la cara */
@media (max-width: 960px) {
  .pg-agents { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; min-height: 0; padding-bottom: 1.4rem; }
  .pg-agents img { flex-basis: 100%; width: auto; max-width: min(62%, 280px); margin: 0 auto .4rem; }
  .pg-agent { position: relative; inset: auto; animation: none; }
  .pg-agents__note { bottom: 0; }
}
@media (max-width: 480px) {
  .pg-agent--3 { display: none; }
  .pg-agent { padding: .4rem .6rem .4rem .4rem; gap: .45rem; }
  .pg-agent b { font-size: .78rem; }
  .pg-agent small { font-size: .7rem; }
  .pg-agent__ic { width: 28px; height: 28px; }
}

/* fondos y piezas extra */
.pg-sec--tint { background: linear-gradient(180deg, #f1f8f8 0%, #f9f8f4 100%); }
.pg-sec--more { padding-block: clamp(3rem, 6vw, 5rem); }
.pg-next a[aria-current="page"] { display: none; }
.pg-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.pg-chips a, .pg-chips span {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 1rem; border-radius: 999px; background: #fff;
  border: 1px solid var(--line-2); font: 500 .9rem/1.2 var(--font-body); color: var(--text-2); transition: border-color .2s, color .2s;
}
.pg-chips a:hover { border-color: #1fb5c0; color: var(--text); }
.pg-chips .ic { color: #0e8f9c; }
.pg-paquete { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .5rem .9rem; border-radius: 999px; background: #e6f5f6; color: #0e6a76; font-size: .9rem; }
.pg-paquete[hidden] { display: none; }
.pg-done__video { width: 100%; }
.pg-done__video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #0b2a3a; }
.pg-done__video:empty { display: none; }
.pg-hero--form { padding-bottom: clamp(3rem, 6vw, 5rem); }
.pg-hero--form .pg-hero__title { font-size: clamp(2rem, 4vw, 3.1rem); }
.pg-route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pg-route a { display: grid; gap: .5rem; padding: 1.4rem; transition: border-color .2s, transform .3s var(--ease-out); }
.pg-route a:hover { border-color: #1fb5c0; transform: translateY(-3px); }
.pg-route small { font: 700 .66rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.pg-route b { font: 700 1.15rem/1.25 var(--font-display); color: var(--text); }
.pg-route p { font-size: .93rem; line-height: 1.5; color: var(--text-2); }
.pg-route .pg-route__go { display: inline-flex; align-items: center; gap: .35rem; margin-top: .3rem; font: 700 .9rem/1 var(--font-display); color: #0e7f8c; letter-spacing: .03em; }
.pg-tier { display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem 1.3rem; text-align: left; }
.pg-tier h3 { font: 700 1.3rem/1.2 var(--font-display); }
.pg-tier__hours { font: 800 2rem/1 var(--font-display); color: #0e6a76; }
.pg-tier__hours small { font: 500 .9rem/1 var(--font-body); color: var(--text-3); margin-left: .25rem; }
.pg-tier ul { display: grid; gap: .4rem; flex: 1; }
.pg-tier li { display: flex; gap: .5rem; font-size: .92rem; line-height: 1.45; color: var(--text-2); }
.pg-tier li .ic { flex: none; color: #0e8f9c; margin-top: .1rem; }
.pg-tier .btn { margin-top: .6rem; justify-content: center; }
.pg-tier--gold { border-color: #e8cf96; background: linear-gradient(170deg, #fffdf6, #fff7e6); }
.pg-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 2rem; counter-reset: ben; }
.pg-benefits li { counter-increment: ben; display: flex; gap: .9rem; align-items: center; padding: .9rem 1rem; border-radius: 14px; background: rgb(255 255 255 / .8); border: 1px solid var(--line); font: 500 .98rem/1.35 var(--font-body); color: var(--text); }
.pg-benefits li::before { content: counter(ben, decimal-leading-zero); flex: none; font: 700 .8rem/1 var(--font-mono); color: #0e8f9c; }
@media (max-width: 760px) { .pg-route, .pg-benefits { grid-template-columns: 1fr; } }

/* responsivo */
@media (max-width: 960px) {
  .pg-hero__grid, .pg-split, .pg-formsec { grid-template-columns: minmax(0, 1fr); }
  .pg-hero__art { order: -1; min-height: 0; }
  .pg-hero__art img { width: min(62%, 300px); }
  .pg-hero__art--wide img { width: 100%; }
  .pg-formsec__aside { position: static; }
  .pg-formsec__pup { display: none; }
  .pg-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .pg-tiers { grid-template-columns: 1fr; } }
@media print { .cierre { display: none; } }
@media (min-width: 761px) and (max-width: 1060px) {
  .pg-steps { grid-template-columns: repeat(min(var(--n, 4), 3), minmax(0, 1fr)); row-gap: 2rem; }
  .pg-steps::before { display: none; }
}

/* ==========================================================================
   Cambios del documento «Pag Web GHI 2027»
   ========================================================================== */

/* ---------- 1) Marca gh↑mprove: letras en Aptos y flecha en Segoe UI Symbol ----------
   Dibujada una sola vez como vector (assets/img/marca) para que se vea igual en todos los equipos:
   iPhone, Mac y Android no traen esas fuentes de Microsoft. Toma el color y el tamaño del texto. */
.marca {
  display: inline-block; width: 4.788em; height: 1.221em; vertical-align: -.282em; background: currentColor;
  -webkit-mask: url(../assets/img/marca/ghimprove-regular.svg) 0 0 / 100% 100% no-repeat;
  mask: url(../assets/img/marca/ghimprove-regular.svg) 0 0 / 100% 100% no-repeat;
}
:is(b, strong, h1, h2, h3, .sh__title, .pg-hero__title, .cap__title) .marca {
  width: 5.031em; -webkit-mask-image: url(../assets/img/marca/ghimprove-negrita.svg); mask-image: url(../assets/img/marca/ghimprove-negrita.svg);
}
@media (forced-colors: active) { .marca { background: CanvasText; } }

/* ---------- 5) Arma tu ruta: el número de cada pregunta siempre visible ---------- */
.step__num { overflow: visible; }
.step.is-done .step__num span { opacity: 1; }
.step__num .ic {
  top: -7px; right: -7px; width: 18px; height: 18px; padding: 3px; border-radius: 50%;
  background: #1fb5c0; color: #fff; stroke-width: 3.2; box-shadow: 0 0 0 2px #fbfdfb;
}

/* ---------- 6) Pregunta 1: país ---------- */
.paises { display: flex; flex-wrap: wrap; gap: .45rem; clear: both; }
.pais {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .4rem .85rem .4rem .55rem; border-radius: 999px; cursor: pointer;
  border: 1px solid #d5e4e1; background: #fcfdf9; color: var(--text-2); font-size: .88rem; line-height: 1.2;
  transition: border-color .25s, background-color .25s, color .25s, transform .3s var(--ease-out);
}
.pais img { width: 24px; height: 18px; flex: none; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / .1); }
.pais:hover { color: var(--text); border-color: #8ccfd6; transform: translateY(-1px); }
.pais:has(:checked) { color: var(--text); background: #e6f6f7; border-color: #1fb5c0; box-shadow: inset 0 0 0 1px #1fb5c0; }
.pais:has(:focus-visible) { outline: 2px solid var(--aqua); outline-offset: 2px; }
@media (max-width: 560px) { .pais { font-size: .84rem; padding-right: .7rem; } }

/* ---------- 7) Grupos de industrias: cantidad en cada pestaña ---------- */
.tab small { margin-left: .3rem; font: 700 .68rem/1 var(--font-mono); opacity: .65; }

/* ---------- 9) ¿Por qué cambiar?: tarjeta de Inteligencia Artificial a todo el ancho ---------- */
.cap--w6 { grid-column: 1 / -1; }
.viz--ia .viz-in path, .viz--ia .viz-out path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 7; animation: vzSync 1s linear infinite; }
.viz--ia .viz-in path { stroke: #8fb9b6; }
.viz--ia .viz-out path { stroke: #8a70ff; }
.viz--ia .viz-src rect { fill: #fffefa; stroke: #89b3b0; stroke-width: 1.5; }
.viz--ia .viz-orb { fill: rgb(124 92 255 / .14); stroke: #7c5cff; stroke-width: 2; }
.viz--ia .viz-star { fill: #7c5cff; transform-box: fill-box; transform-origin: center; animation: vzStar 2.4s ease-in-out infinite; }
.viz--ia .viz-ring { fill: none; stroke: #7c5cff; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: vzRing 2.4s ease-out infinite; animation-delay: var(--d, 0s); }
.viz--ia .viz-res rect { fill: #fffefa; stroke: #cbbff6; stroke-width: 1.5; animation: vzRes 3s ease-in-out infinite; animation-delay: var(--d, 0s); }
.viz--ia .viz-res text { font-size: 11.5px; }
@keyframes vzRing { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes vzStar { 50% { transform: scale(.8) rotate(45deg); } }
@keyframes vzRes { 0%, 100% { fill: #fffefa; stroke: #cbbff6; } 15%, 40% { fill: #efeaff; stroke: #7c5cff; } }

/* ---------- 3B) La página en tres partes: separadores de SAP S/4HANA y AppliQloud FIS ---------- */
.parte { padding: clamp(2.6rem, 6vw, 4.6rem) 0 0; }
.parte__inner { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2rem); }
.parte__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #9fcfd3); }
.parte__line:last-child { background: linear-gradient(270deg, transparent, #9fcfd3); }
.parte__name {
  display: inline-flex; align-items: center; gap: .75rem; margin: 0; padding: .7rem 1.35rem; border-radius: 999px; white-space: nowrap;
  font: 700 clamp(1.05rem, 2.1vw, 1.45rem)/1 var(--font-display); letter-spacing: .01em; color: #0e4f5c;
  background: #fbfdfb; border: 1px solid #bfe3e6; box-shadow: 0 12px 26px -20px rgb(14 79 92 / .55);
}
.parte__name img { width: auto; height: 24px; }
.parte--aq .parte__name { color: #8f4300; background: #fffaf5; border-color: #ffd2ad; box-shadow: 0 12px 26px -20px rgb(143 67 0 / .5); }
.parte--aq .parte__line { background: linear-gradient(90deg, transparent, #f2bf93); }
.parte--aq .parte__line:last-child { background: linear-gradient(270deg, transparent, #f2bf93); }

/* ---------- 3B) Parte 3 en la portada: AppliQloud FIS ---------- */
.fisx { background: radial-gradient(48% 55% at 88% 35%, rgb(255 166 77 / .13), transparent 72%); }
.fisx__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.6rem, 4vw, 3.6rem); align-items: center; }
.fisx__copy .sh__lead + .sh__lead { margin-top: .8rem; }
.fisx__strong { margin-top: 1rem; color: var(--text); font-weight: 700; font-size: 1.04rem; line-height: 1.55; }
.fisx__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.fisx__side { position: relative; }
.fisx__fox { position: relative; z-index: 1; display: block; width: min(170px, 38%); height: auto; margin: 0 1.2rem -1.4rem auto; filter: drop-shadow(0 14px 18px rgb(120 60 10 / .2)); }
.fisx__cards { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.fisx__card {
  display: flex; align-items: flex-start; gap: .9rem; padding: 1rem 1.15rem; border-radius: 18px;
  background: #fffdf9; border: 1px solid #f1dcc6; box-shadow: 0 16px 32px -26px rgb(120 60 10 / .5);
}
.fisx__card b { display: block; font: 700 1.04rem/1.2 var(--font-display); color: var(--text); }
.fisx__card small { display: block; margin: .2rem 0 .4rem; font: 600 .68rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #b25b12; }
.fisx__card > span:last-child > span { display: block; color: var(--text-2); font-size: .92rem; line-height: 1.5; }
.fisx__ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; color: #e86400; background: #fff1e6; border: 1px solid #ffd2ad; }
@media (max-width: 900px) {
  .fisx__grid { grid-template-columns: 1fr; }
  .fisx__fox { width: 130px; }
}

/* ---------- 15) Menú Soluciones: START con dos caminos ---------- */
.mega__item--head { cursor: default; }
.mega__item--head:hover { background: transparent; }
.mega__subs { display: grid; gap: .15rem; margin: -.45rem 0 .3rem calc(.9rem + 38px + .8rem); }
.mega__sub {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem .75rem; border-radius: 10px;
  font: 600 .88rem/1.2 var(--font-body); color: var(--text); transition: background-color .25s;
}
.mega__sub .ic { width: 14px; height: 14px; color: #1fb5c0; transition: translate .25s; }
.mega__sub:hover, .mega__sub[aria-current="page"] { background: #e8f4f5; }
.mega__sub:hover .ic { translate: 2px 0; }
.mega__sub--aq .ic { color: #e86400; }
@media (max-width: 900px) { .mega__subs { margin-left: calc(.7rem + 38px + .8rem); } }

/* ---------- 15) COMPLY: selector de país y requisitos por país ---------- */
.cmp-pick { margin-top: 1.3rem; }
.cmp-pick__label { margin-bottom: .55rem; font: 700 .7rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.cmp-paises { display: flex; flex-wrap: wrap; gap: .4rem; }
.cmp-pais {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: .32rem .75rem .32rem .45rem; border-radius: 999px;
  border: 1px solid #d5e4e1; background: #fcfdf9; color: var(--text-2); font: 500 .84rem/1.2 var(--font-body); cursor: pointer;
  transition: border-color .25s, background-color .25s, color .25s;
}
.cmp-pais img { width: 22px; height: 16.5px; flex: none; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / .1); }
.cmp-pais:hover { color: var(--text); border-color: #8ccfd6; }
.cmp-pais[aria-pressed="true"] { color: var(--text); background: #e6f6f7; border-color: #1fb5c0; box-shadow: inset 0 0 0 1px #1fb5c0; }
.cmp-pais:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.cmp-country { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
.cmp-country[hidden] { display: none; }
.cmp-country__id { display: grid; gap: .9rem; justify-items: start; }
.cmp-country__flag { width: 96px; height: 72px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / .08), 0 18px 30px -22px rgb(14 79 92 / .6); }
.cmp-country__authority { display: grid; gap: .25rem; padding: .85rem 1.1rem; border-radius: 16px; background: #fbfdfb; border: 1px solid #cfe7e9; }
.cmp-country__authority small { font: 700 .66rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.cmp-country__authority b { font: 700 1.15rem/1.25 var(--font-display); color: var(--text); }
.cmp-req { padding: clamp(1.2rem, 2.6vw, 1.8rem); }
.cmp-req h3 { margin-bottom: .7rem; font-size: 1.12rem; }
.cmp-req p { color: var(--text-2); line-height: 1.7; }
.cmp-req .pg-res { margin-top: 1.3rem; }
@media (max-width: 760px) {
  .cmp-country { grid-template-columns: 1fr; }
  .cmp-country__id { grid-template-columns: auto 1fr; align-items: center; }
}

/* ---------- 18) y 19) CIS y AMS: las dos frases de cierre de la portada ---------- */
.pg-hero__lines { display: grid; gap: .3rem; margin-top: 1rem; font-size: 1rem; line-height: 1.45; }
.pg-hero__lines b { color: var(--text); }
.pg-hero__lines span { color: #0e6a76; font-weight: 600; }

/* ---------- 15) Página AppliQloud FIS: FIS, BH Accounting y PIC ---------- */
.fisp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fisp__card { display: flex; flex-direction: column; gap: .7rem; padding: clamp(1.2rem, 2.4vw, 1.7rem); }
.fisp__card h3 { font-size: 1.18rem; line-height: 1.25; }
.fisp__card > p:not(.fisp__tag) { color: var(--text-2); line-height: 1.6; }
.fisp__card .pg-checks { margin-top: .3rem; }
.fisp__tag {
  display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start; padding: .35rem .7rem; border-radius: 999px;
  font: 700 .68rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #9a4a00; background: #fff1e6; border: 1px solid #ffd2ad;
}
.fisp__tag .ic { width: 15px; height: 15px; color: #e86400; }
.fisp__alt { margin-top: clamp(1.8rem, 4vw, 2.6rem); text-align: center; color: var(--text-2); }
.fisp__alt a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: #0e6a76; }
@media (max-width: 960px) { .fisp { grid-template-columns: 1fr; } }

/* dos párrafos seguidos bajo un título (Pre-Move, AppliQloud) */
.sh__lead + .sh__lead { margin-top: .8rem; }

/* ---------- 18) CIS: los 8 tipos de servicios (presentación Plan CIS) ---------- */
.cis-tag {
  display: inline-flex; align-items: center; flex: none; height: 22px; padding: 0 .55rem; border-radius: 999px; white-space: nowrap;
  font: 700 .62rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
}
.cis-tag--free { color: #0b5e68; background: #dff4f6; border: 1px solid #9fd9df; }
.cis-tag--hrs { color: #7a4d06; background: #fcf0d9; border: 1px solid #ecc98a; }
.cis-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; margin: 0 auto clamp(1.4rem, 3vw, 2rem); max-width: 980px; }
.cis-legend p { display: flex; align-items: center; gap: .6rem; color: var(--text-2); font-size: .9rem; line-height: 1.45; }
.cis-svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.cis-svc { display: flex; flex-direction: column; gap: .85rem; padding: clamp(1.15rem, 2.2vw, 1.6rem); }
.cis-svc__head { display: flex; align-items: center; gap: .8rem; }
.cis-svc__head h3 { font-size: 1.12rem; line-height: 1.25; }
.cis-svc__num {
  display: grid; place-items: center; flex: none; min-width: 42px; height: 42px; padding: 0 .45rem; border-radius: 12px;
  font: 700 .9rem/1 var(--font-mono); color: #0e4f5c; background: #e6f6f7; border: 1px solid #a9dce1;
}
.cis-svc__list { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.cis-svc__list li { display: grid; justify-items: start; gap: .35rem; color: var(--text-2); font-size: .93rem; line-height: 1.55; }
.cis-svc__list b { color: var(--text); }
.cis-svc__note { padding-top: .7rem; border-top: 1px dashed #cfe2df; color: var(--text-3); font-size: .84rem; line-height: 1.5; }
@media (max-width: 860px) { .cis-svcs { grid-template-columns: 1fr; } }

/* ---------- 20) GHI Roadmap to Success: el recuadro de la etapa entra completo en pantallas bajas ---------- */
/* Mismas condiciones que el modo fijo de styles.css (no dependen de que el script ya haya cargado).
   Cada recuadro mide lo que su propio texto (antes todos tomaban el alto de la etapa más larga, Implementar). */
.process .stage { align-self: start; }
/* PC y tablets horizontales con ventana baja (p. ej. laptop 1366×768 con el navegador abierto):
   columna de texto más ancha (menos renglones) y título, texto y espacios que se ajustan al alto disponible. */
@media (scripting: enabled) and (min-height: 560px) and (max-height: 860px) and (min-width: 1101px), (scripting: enabled) and (min-height: 560px) and (max-height: 860px) and (min-width: 721px) and (orientation: landscape) {
  html:not([data-motion="reduced"]) .process .process__inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 3vw, 3rem); }
  html:not([data-motion="reduced"]) .process .sh__title { font-size: clamp(1.9rem, 6.4vh, 3.3rem); margin: clamp(.45rem, 1.5vh, 1.1rem) 0; }
  html:not([data-motion="reduced"]) .process .sh__lead { font-size: clamp(.95rem, 2.5vh, 1.1rem); line-height: 1.55; }
  html:not([data-motion="reduced"]) .process .process__status { margin-top: clamp(.55rem, 1.8vh, 1.4rem); }
  html:not([data-motion="reduced"]) .process .stages { margin-top: clamp(.55rem, 1.8vh, 1.4rem); }
  html:not([data-motion="reduced"]) .process .stage { padding: clamp(.75rem, 2vh, 1.1rem) 1.15rem; }
  html:not([data-motion="reduced"]) .process .stage__title { font-size: clamp(1.1rem, 3vh, 1.35rem); margin: .35rem 0 .25rem; }
}
/* Celulares bajos (p. ej. Android 360×640 con la barra del navegador): tablero más chico y espacios justos,
   para que el título no quede bajo el menú ni la tarjeta bajo la barra inferior. */
@media (scripting: enabled) and (min-height: 560px) and (max-height: 620px) and (max-width: 720px) {
  html:not([data-motion="reduced"]) .process .process__pin { padding-bottom: 92px; }
  html:not([data-motion="reduced"]) .process .process__inner { gap: .5rem; }
  html:not([data-motion="reduced"]) .process .sh__title { font-size: 1.45rem; margin-top: .3rem; }
  html:not([data-motion="reduced"]) .process .process__status { margin-top: .45rem; padding-block: .32rem; }
  html:not([data-motion="reduced"]) .process .stages { margin-top: .45rem; }
  html:not([data-motion="reduced"]) .process .stage { padding: .6rem .8rem; }
  html:not([data-motion="reduced"]) .process .board { width: clamp(190px, calc(100svh - 350px), 300px); }
}
/* Tablets en vertical (p. ej. iPad 810×1080 con la barra de Safari): el tablero se achica según el alto disponible. */
@media (scripting: enabled) and (min-height: 560px) and (min-width: 721px) and (max-width: 1100px) and (orientation: portrait) {
  html:not([data-motion="reduced"]) .process .process__pin { padding-bottom: 96px; }
  html:not([data-motion="reduced"]) .process .board { width: clamp(320px, calc(166svh - 1080px), 100%); margin-inline: auto; }
}

/* ---------- 21) Reunión del 17 de noviembre: cuarta opción EXPAND ---------- */
/* «¿Dónde está tu empresa hoy?»: 4 modelos en 2×2 (START · EXPAND / EVOLVE · EXTEND); en celular siguen en una columna. */
@media (min-width: 901px) { .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Debajo del nombre del modelo, la solución a la que lleva. */
.model__name small { display: block; margin-top: .3rem; font: 600 .76rem/1.35 var(--font-body); letter-spacing: 0; color: var(--text-2); }
/* Soluciones GHI: 9 tarjetas → 3 por fila en PC; en tablet (2 por fila) la última queda centrada. */
@media (min-width: 1101px) { .prods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 721px) and (max-width: 1100px) {
  .prods > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .5rem); }
}
/* Página SAP S/4HANA: las 4 tarjetas de punto de partida. */
@media (min-width: 1101px) { .pg-route--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 761px) and (max-width: 1100px) { .pg-route--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Página EXPAND: los dos caminos (AppliQloud FIS en naranja, SAP S/4HANA Public Cloud en turquesa). */
@media (min-width: 961px) { .fisp--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fisp__card--sap .fisp__tag { color: #0b5f69; background: #e8f6f7; border-color: #b4e0e4; }
.fisp__card--sap .fisp__tag .ic { color: #0e7f8c; }
.fisp__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .4rem; font-weight: 700; color: #b25b12; }
.fisp__card--sap .fisp__more { color: #0e6a76; }
.fisp__more .ic { transition: translate .25s; }
.fisp__more:hover .ic { translate: 3px 0; }

/* ---------- 22) Guía lateral (mapa del recorrido): no tapa ni bloquea el contenido ----------
   Cada enlace ocupaba también el ancho de su etiqueta invisible: una franja de ~215 px a la derecha
   que se llevaba los clics de lo que había debajo («Cotiza tu proyecto», «Habla con un experto»…).
   Y en pantallas anchas la etiqueta de la sección actual quedaba fija encima del texto.
   Ahora solo el punto recibe clics (con un área de 25 px para acertarle fácil) y la etiqueta se ve
   al pasar el mouse, con el teclado, o un momento al entrar en otra sección (clase is-flash, nav.js). */
.rail, .rail__link { pointer-events: none; }
.rail__dot { position: relative; pointer-events: auto; cursor: pointer; }
.rail__dot::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.rail__link.is-current .rail__label { opacity: 0; translate: 8px 0; }
.rail__link:is(:hover, :focus-visible, .is-flash) .rail__label { opacity: 1; translate: 0 0; }

/* ---------- 23) Cierre del pie: hojas y torre en movimiento (js/boceto-cierre.js) ----------
   El lienzo WebGL se pone justo encima de la imagen, con su mismo recorte, y aparece con un fundido
   cuando ya dibujó el primer cuadro. Debajo sigue la imagen fija por si el lienzo no llega a cargar. */
.cierre__art { position: relative; }
.cierre__live { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.cierre__live.is-on { opacity: 1; }

/* ---------- 24) Documento «Pag Web2» ---------- */
/* Separadores de la portada: solo el logo entre las dos líneas, sin la cápsula con texto */
.parte__name--logo { padding: 0; background: none !important; border: 0; box-shadow: none !important; }
.parte__name--logo img { height: clamp(36px, 4.2vw, 50px); }
.parte--aq .parte__name--logo img { height: clamp(30px, 3.4vw, 40px); }
/* START · AppliQloud FIS: frase de cierre de «Mucho más que un ERP» */
.pg-remate { max-width: 62ch; margin: clamp(1.8rem, 4vw, 2.6rem) auto 0; text-align: center; color: var(--text-2); line-height: 1.6; }
.pg-remate b { display: block; margin-bottom: .35rem; font: 700 clamp(1.05rem, 1.8vw, 1.25rem)/1.35 var(--font-display); color: var(--text); }

/* ---------- 25) Aviso de privacidad (paginas/politicas-de-privacidad.html) ----------
   Texto legal largo: una sola columna de lectura cómoda, sin animaciones de entrada. */
.pg-hero--legal { padding-bottom: clamp(1rem, 2.5vw, 2rem); }
.pg-hero--legal .pg-hero__title { margin-bottom: 0; }
.pg-sec--legal { padding-top: 0; }
/* mismo ancho que el encabezado (.pg-hero__grid--solo) para que el recuadro quede alineado con el título */
.pg-legal { max-width: 860px; margin-inline: auto; padding: clamp(1.4rem, 4vw, 3rem); }
.pg-legal p { font-size: 1.03rem; line-height: 1.75; color: var(--text-2); text-wrap: pretty; }
.pg-legal p + p { margin-top: 1.1em; }
.pg-legal strong { color: var(--text); font-weight: 600; }
.pg-legal a { color: #0e7f8c; text-decoration: underline; text-underline-offset: 3px; }
.pg-legal__url { overflow-wrap: anywhere; }
