/* V15 · Contact popup front component + MEET ZEA full-bleed side marks */

/* The popup action is intentionally visual only in this delivery. */
.contact-modal .contact-submit-front {
  justify-self: end;
  min-width: clamp(150px, 22vw, 220px);
  min-height: 46px;
  margin-top: 6px;
  padding: 10px 28px;
  border: 2px solid var(--green-dark);
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: none;
  cursor: default;
}

.contact-modal .contact-submit-front:hover,
.contact-modal .contact-submit-front:focus-visible {
  background: var(--green-dark);
  color: var(--white);
  transform: none;
  outline: 3px solid rgba(24, 84, 48, .16);
  outline-offset: 3px;
}

/* Remove the apparent white frame caused by transparent padding in the mark assets. */
.page-meetzea .meet-wireframe {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
}

.page-meetzea .meet-wireframe .meet-mark.left {
  left: 0;
  right: auto;
  transform: translateX(-17.5%);
}

.page-meetzea .meet-wireframe .meet-mark.right {
  right: 0;
  left: auto;
  transform: translateX(17.5%);
}

@media (max-width: 640px) {
  .contact-modal .contact-submit-front {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .page-meetzea .meet-wireframe .meet-mark.left {
    left: 0;
    transform: translateX(-17.5%);
  }

  .page-meetzea .meet-wireframe .meet-mark.right {
    right: 0;
    transform: translateX(17.5%);
  }
}

/* ============================================================
   V16 · NUKU marquees (values → right-to-left, gallery → left-to-right)
   Both tracks duplicate their content so the -50% translation loops
   seamlessly. Motion is disabled under prefers-reduced-motion.
   ============================================================ */

/* --- Principios NUKU · desplazamiento derecha → izquierda --- */
.nuku-values-marquee {
  min-height: 120px;
  padding: 32px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.nuku-values-track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(46px, 6vw, 108px);
  padding-left: clamp(46px, 6vw, 108px);
  width: max-content;
  will-change: transform;
  animation: nukuValuesMarquee 30s linear infinite;
}

.nuku-values-track span {
  flex: 0 0 auto;
  color: #ba4024;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.5vw, 42px);
  font-style: italic;
  white-space: nowrap;
}

@keyframes nukuValuesMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Galería sensorial NUKU · desplazamiento izquierda → derecha --- */
.nuku-gallery-marquee {
  width: 100%;
  height: clamp(210px, 24vw, 360px);
  overflow: hidden;
  background: #1a1a1a;
}

.nuku-gallery-track {
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
  width: max-content;
  will-change: transform;
  /* Starts at -50% and returns to 0, producing left → right motion. */
  animation: nukuGalleryMarquee 55s linear infinite;
}

.nuku-gallery-track img {
  flex: 0 0 auto;
  width: clamp(200px, 14.2857vw, 300px);
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

@keyframes nukuGalleryMarquee {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Pause on hover so users can inspect an image. */
.nuku-values-marquee:hover .nuku-values-track,
.nuku-gallery-marquee:hover .nuku-gallery-track {
  animation-play-state: paused;
}

@media (max-width: 900px) {
  .nuku-gallery-marquee { height: clamp(190px, 30vw, 260px); }
  .nuku-gallery-track img { width: clamp(170px, 34vw, 230px); }
  .nuku-values-track { animation-duration: 24s; }
  .nuku-gallery-track { animation-duration: 42s; }
}

@media (max-width: 640px) {
  .nuku-values-marquee { min-height: 92px; padding: 24px 0; }
  .nuku-values-track { gap: 42px; padding-left: 42px; }
  .nuku-values-track span { font-size: 27px; }
  .nuku-gallery-marquee { height: 210px; }
  .nuku-gallery-track img { width: 158px; }
  .nuku-values-track { animation-duration: 20s; }
  .nuku-gallery-track { animation-duration: 34s; }
}

@media (prefers-reduced-motion: reduce) {
  .nuku-values-track,
  .nuku-gallery-track {
    animation: none;
    transform: none;
  }
  .nuku-gallery-marquee,
  .nuku-values-marquee {
    overflow-x: auto;
  }
}

/* ============================================================
   V19 · Footer icons, ZEALAB arrows, and ARL/SEGUROS detail pages
   ============================================================ */

/* --- 1/2 · Footer social icons sit flush on the green, no plate/frame --- */
.footer-social-links a {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.footer-social-links img {
  /* The drop shadow read as an edge around the icons; remove it. */
  filter: none;
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  box-shadow: none;
  transform: translateY(-3px);
}

/* --- 3 · ZEALAB arrows 20% larger at every breakpoint --- */
.lab-title-stage .lab-arrow {
  width: clamp(126px, 14.4vw, 228px);
}

@media (max-width: 640px) {
  .lab-title-stage .lab-arrow {
    width: 132px;
  }
}

/* --- 4a · ZEALAB hub: SEGUROS / ARL selector now navigates --- */
.lab-tabs-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 90px);
}

.lab-tabs-links a {
  position: relative;
  padding: 16px 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(25px, 3.4vw, 46px);
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, opacity .2s ease;
}

.lab-tabs-links a::after {
  content: "";
  position: absolute;
  inset: -6px -22px;
  border: 8px solid var(--pink-strong);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.lab-tabs-links a:hover,
.lab-tabs-links a:focus-visible {
  transform: translateY(-2px);
}

.lab-tabs-links a:hover::after,
.lab-tabs-links a:focus-visible::after {
  opacity: 1;
}

/* --- 4b · Hub choice cards --- */
.lab-choice-shell {
  width: min(100% - 40px, 1060px);
  margin-inline: auto;
  padding-block: clamp(34px, 5vw, 64px);
}

.lab-choice-intro {
  margin: 0 0 clamp(22px, 3vw, 38px);
  color: var(--green-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(15px, 1.6vw, 19px);
  text-align: center;
}

.lab-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
}

.lab-choice-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(26px, 3.4vw, 44px);
  background: var(--white);
  border: 1px solid rgba(24, 84, 48, .10);
  box-shadow: 0 20px 60px rgba(24, 84, 48, .10);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.lab-choice-card:hover,
.lab-choice-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 28px 78px rgba(24, 84, 48, .16);
}

.lab-choice-name {
  color: var(--green-dark);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: .95;
}

.lab-choice-copy {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.55;
}

.lab-choice-cta {
  margin-top: 6px;
  color: var(--green-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 700;
}

@media (max-width: 700px) {
  .lab-choice-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 4c · ARL / SEGUROS detail pages --- */
.lab-detail-section {
  padding-top: 0;
}

.lab-detail-panel {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.lab-detail-back {
  width: min(100%, 1060px);
  margin: clamp(16px, 2.4vw, 30px) auto clamp(40px, 6vw, 84px);
  padding-inline: clamp(20px, 4vw, 40px);
}

.lab-back-link {
  display: inline-block;
  color: var(--green-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 2px;
}

.lab-back-link:hover,
.lab-back-link:focus-visible {
  text-decoration: underline;
}


/* V20 · Navegación cruzada entre SEGUROS y ARL */
.lab-service-switch {
  display: flex;
  justify-content: flex-end;
  width: min(100%, 1060px);
  margin: clamp(-28px, -2.4vw, -16px) auto clamp(34px, 4vw, 52px);
  padding-inline: clamp(4px, 1vw, 12px);
}

.lab-service-switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.switch-to-arl {
  background: var(--pink);
  color: var(--green-dark);
}

.switch-to-seguros {
  background: var(--green-dark);
  color: var(--white);
}

.lab-service-switch-link:hover,
.lab-service-switch-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(24, 84, 48, .16);
}

.lab-service-switch-link span {
  font-size: 1.25em;
  line-height: .8;
}

@media (max-width: 700px) {
  .lab-service-switch {
    justify-content: center;
    margin-top: -18px;
    margin-bottom: 30px;
    padding-inline: 0;
  }

  .lab-service-switch-link {
    width: min(100%, 280px);
  }
}

/* ============================================================
   V21 · Persistent contact access on every page
   ============================================================ */
.global-contact-cta {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 220;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 52px;
  padding: 12px 24px;
  border: 3px solid var(--pink-strong);
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(13, 53, 29, .28);
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.global-contact-cta:hover,
.global-contact-cta:focus-visible {
  transform: translateY(-3px);
  background: var(--pink-strong);
  color: var(--green-dark);
  box-shadow: 0 18px 42px rgba(13, 53, 29, .34);
  outline: 3px solid rgba(242, 197, 206, .32);
  outline-offset: 3px;
}

.modal-open .global-contact-cta {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .global-contact-cta {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-width: 144px;
    min-height: 46px;
    padding: 10px 18px;
    border-width: 2px;
    font-size: 12px;
  }
}


/* ============================================================
   V22 · ZEALAB integrado en una sola URL
   ============================================================ */
.lab-integrated .lab-selector-band {
  position: relative;
  z-index: 2;
}

.lab-integrated .lab-tabs button {
  cursor: pointer;
}

.lab-integrated .lab-tabs button:focus-visible {
  outline: 3px solid var(--pink-strong);
  outline-offset: 8px;
}

.lab-integrated .lab-content-shell {
  scroll-margin-top: 92px;
}

.lab-integrated .lab-panel[hidden] {
  display: none !important;
}

.lab-integrated .lab-panel.is-active {
  animation: labIntegratedReveal .34s ease both;
}

@keyframes labIntegratedReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .lab-integrated .lab-panel.is-active {
    animation: none;
  }
}


/* ============================================================
   V25 · Botones tradicionales de ZEALAB + FlowNews inferior sin marcos
   ============================================================ */
.lab-integrated .lab-selector-band .lab-tabs {
  width: min(760px, 100%);
  gap: clamp(20px, 5vw, 48px);
}

.lab-integrated .lab-selector-band .lab-tabs button {
  min-height: 76px;
  padding: 18px 28px;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 10px;
  background: #ffffff;
  color: var(--green-dark);
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.2vw, 30px);
  font-style: normal;
  font-weight: 800;
  letter-spacing: .055em;
  box-shadow: 0 8px 20px rgba(4, 31, 17, .16);
  opacity: 1;
  transform: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lab-integrated .lab-selector-band .lab-tabs button::before,
.lab-integrated .lab-selector-band .lab-tabs button::after {
  content: none !important;
  display: none !important;
}

.lab-integrated .lab-selector-band .lab-tabs button.is-active,
.lab-integrated .lab-selector-band .lab-tabs button[aria-selected="true"] {
  border-color: var(--pink-strong);
  background: var(--pink-strong);
  color: var(--green-dark);
  box-shadow: 0 10px 24px rgba(4, 31, 17, .22), inset 0 0 0 1px rgba(255, 255, 255, .28);
  transform: translateY(-2px);
}

.lab-integrated .lab-selector-band .lab-tabs button:not(.is-active):hover,
.lab-integrated .lab-selector-band .lab-tabs button:not(.is-active):focus-visible {
  border-color: var(--pink);
  background: #f8f5f1;
  color: var(--green-dark);
  box-shadow: 0 11px 26px rgba(4, 31, 17, .22);
  transform: translateY(-2px);
}

.lab-integrated .lab-selector-band .lab-tabs button:focus-visible {
  outline: 3px solid var(--pink-strong);
  outline-offset: 4px;
}

/* Desde "Diagnóstico Nacional" hacia abajo: sin bordes de recuadros. */
.flownews-exact .flownews-lower-borderless ~ .grid-section .grid-3col {
  gap: 24px;
  border: 0;
  background: transparent;
}

.flownews-exact .flownews-lower-borderless ~ .grid-section .article-cell,
.flownews-exact .flownews-lower-borderless ~ .nuku-section .nuku-inner {
  border: 0;
  box-shadow: none;
}

.flownews-exact .flownews-lower-borderless ~ .grid-section .art-byline,
.flownews-exact .flownews-lower-borderless ~ .nuku-section .nuku-header {
  border-top: 0;
  border-bottom: 0;
}

.flownews-exact .flownews-lower-borderless ~ .grid-section [style*="border-left"],
.flownews-exact .flownews-lower-borderless ~ .nuku-section .nuku-phase {
  border-left: 0 !important;
}

@media (max-width: 640px) {
  .lab-integrated .lab-selector-band .lab-tabs {
    grid-template-columns: 1fr;
    width: min(360px, 100%);
    gap: 14px;
  }

  .lab-integrated .lab-selector-band .lab-tabs button {
    min-height: 58px;
    padding: 14px 20px;
    font-size: 20px;
  }

  .flownews-exact .flownews-lower-borderless ~ .grid-section .grid-3col {
    gap: 16px;
  }
}

/* ============================================================
   V26 · Footer social assets and fully borderless FLOWNEWS
   ============================================================ */

/* New social artwork: balanced hit area, consistent optical size and spacing. */
.footer-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 28px);
}

.footer-social-links a {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.footer-social-links img {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
  filter: none;
}

.footer-social-links a[aria-label="Spotify"] img {
  width: 40px;
  height: auto;
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: none;
}

/* FLOWNEWS: remove every colored frame, rule and border treatment. */
body[data-page="flownews"] .flownews-exact,
body[data-page="flownews"] .flownews-exact *,
body[data-page="flownews"] .flownews-exact *::before,
body[data-page="flownews"] .flownews-exact *::after {
  border-width: 0 !important;
  border-color: transparent !important;
}

body[data-page="flownews"] .flownews-exact .masthead-rule,
body[data-page="flownews"] .flownews-exact .section-rule hr {
  display: none;
}

body[data-page="flownews"] .flownews-exact .grid-2col,
body[data-page="flownews"] .flownews-exact .grid-3col {
  gap: clamp(18px, 2.2vw, 30px);
  background: transparent !important;
  border: 0 !important;
}

body[data-page="flownews"] .flownews-exact .cover,
body[data-page="flownews"] .flownews-exact .feature-wide-inner,
body[data-page="flownews"] .flownews-exact .nuku-inner,
body[data-page="flownews"] .flownews-exact .article-cell {
  border: 0 !important;
  box-shadow: none;
}

@media (max-width: 700px) {
  .footer-social-links {
    gap: 15px;
  }

  .footer-social-links a {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .footer-social-links img {
    width: 32px;
    height: 32px;
  }

  .footer-social-links a[aria-label="Spotify"] img {
    width: 34px;
  }

  body[data-page="flownews"] .flownews-exact .grid-2col,
  body[data-page="flownews"] .flownews-exact .grid-3col {
    gap: 16px;
  }
}


/* ============================================================
   V27 · ZEALAB cover typography, outward arrows and Seguros form
   ============================================================ */
.page-zealab .lab-title-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.5vw, 54px);
  padding-inline: clamp(16px, 4vw, 64px);
}

.page-zealab .lab-title-stage h1 {
  flex: 0 1 auto;
  letter-spacing: .11em;
  text-indent: .11em;
  white-space: nowrap;
}

.page-zealab .lab-title-stage .lab-arrow {
  position: static;
  flex: 0 0 auto;
  width: clamp(72px, 9.5vw, 142px);
  height: auto;
  max-height: clamp(150px, 21vw, 270px);
  object-fit: contain;
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.page-zealab .lab-title-stage .lab-arrow-left,
.page-zealab .lab-title-stage .lab-arrow-right {
  inset: auto;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
}

@media (max-width: 700px) {
  .page-zealab .lab-title-stage {
    gap: clamp(7px, 2.4vw, 14px);
    padding-inline: 8px;
  }

  .page-zealab .lab-title-stage h1 {
    font-size: clamp(42px, 14.5vw, 68px);
    letter-spacing: .095em;
    text-indent: .095em;
  }

  .page-zealab .lab-title-stage .lab-arrow {
    width: clamp(34px, 10.5vw, 56px);
    max-height: 118px;
  }
}

@media (max-width: 390px) {
  .page-zealab .lab-title-stage h1 {
    font-size: clamp(38px, 13.5vw, 52px);
    letter-spacing: .08em;
    text-indent: .08em;
  }

  .page-zealab .lab-title-stage .lab-arrow {
    width: 32px;
  }
}
