﻿:root {
  --blue: #3f8dc9;
  --blue-soft: #3f8dc9;
  --blue-dark: #2f76aa;
  --green: #85b82e;
  --ink: #33414c;
  --muted: #78858d;
  --line: #dfe7ec;
  --soft: #f1f6fa;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(16, 55, 84, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; overflow-x: hidden; color: var(--ink); font-family: "Roboto", "Segoe UI", Arial, sans-serif; background: #fff; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.shell { width: min(860px, calc(100% - 48px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 0 39px; background: rgba(255,255,255,.96); border-bottom: 1px solid #e8eef2; backdrop-filter: blur(10px); }
.site-header__brand img { width: 151px; height: auto; }
.site-header__stats { display: flex; align-items: center; gap: 78px; color: #536b86; font-size: 12px; line-height: 1.2; }
.site-header__stats span { display: grid; grid-template-columns: max-content max-content; gap: 18px; align-items: center; }
.site-header__stats strong { color: var(--blue); font-size: 24px; line-height: 1; font-weight: 700; }

.intro { padding-top: 0; }
.intro__body { width: min(878px, calc(100% - 48px)); margin: 0 auto; padding: 82px 0 83px; text-align: center; }
.intro h1 { margin: 0 0 20px; color: var(--blue); font-size: 32px; line-height: 1.18; letter-spacing: 0; }
.intro__lead { max-width: 900px; margin: 0 auto 103px; color: #71809a; font-size: 24px; line-height: 1.28; font-weight: 300; }
.intro__copy { max-width: 878px; margin: 0 auto; text-align: left; }
.intro__copy h2 { margin: 0 0 20px; color: var(--ink); font-size: 19px; line-height: 1.35; }
.intro__copy p { margin: 0 0 13px; color: #536b86; font-size: 16px; line-height: 1.55; }
.intro__copy p:first-of-type { font-size: 17px; }
.intro__band { padding: 40px 24px 38px; background: var(--soft); text-align: center; }
.intro__band h2 { margin: 0; color: var(--ink); font-size: 24px; line-height: 1.25; }
.intro__band h2 strong { color: var(--blue); }
.intro__band .intro__copy h2 { margin-bottom: 20px; }
.intro__reasons { display: grid; grid-template-columns: repeat(4, max-content); justify-content: center; gap: 28px; width: min(900px, 100%); margin: 34px auto 0; color: #61728a; font-size: 16px; line-height: 1.35; }
.intro__reasons > span { display: grid; justify-items: center; align-content: start; gap: 6px; }
.intro__reasons > span > span { display: block; }
.intro__reasons svg { width: 22px; height: 22px; color: #61728a; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.intro__support { margin: 54px auto 0; color: #111827; font-size: 17px; line-height: 1.4; font-weight: 400; }

.thinking { padding: 32px 0 0; }
.thinking .shell { width: min(930px, calc(100% - 48px)); }
.thinking__grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 160px; align-items: start; margin-top: 34px; }
.thinking h2 { margin: 0; color: var(--ink); font-size: 24px; line-height: 1.25; text-align: center; }
.thinking h2 strong { color: var(--blue); }
.thinking h3 { margin: 0 0 32px; color: #111827; font-size: 16px; line-height: 1.45; font-weight: 400; text-align: center; }
.thinking p, .thinking li { color: #61728a; font-size: 16px; line-height: 1.75; }
.thinking__questions > p { margin: 0 0 28px; color: #111827; }
.thinking ul { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.thinking__questions, .thinking__lessons { min-width: 0; }
.thinking__lessons { width: 520px; max-width: 100%; margin: 278px 0 0 auto; text-align: right; overflow-wrap: anywhere; }
.thinking__lessons h3 { text-align: right; }
.thinking__lessons p { margin: 0 0 18px; }
.thinking__closing { width: min(430px, 100%); margin: 34px auto 64px; color: #65748b; text-align: center; font-weight: 400; }
.thinking__closing p { margin: 0 0 24px; color: #65748b; font-size: 20px; line-height: 1.5; }
.thinking__closing p:first-child { margin-bottom: 22px; }
.thinking__closing p.thinking__closing-detail { font-size: 17px; }
.thinking__closing strong { font-weight: 700; }

.contact-panel { margin-top: 36px; color: #fff; background: var(--blue-soft); }
.contact-panel.contact-panel--primary { margin-top: 0; }
.contact-panel .shell { width: min(872px, calc(100% - 48px)); }
.contact-panel__grid { display: grid; grid-template-columns: 460px 353px; gap: 63px; align-items: start; padding: 31px 0 34px; }
.contact-panel h2 { margin: 0 0 31px; color: #fff; font-size: 24px; line-height: 1.25; }
.contact-panel p, .contact-panel li { color: #fff; font-size: 16px; line-height: 1.48; }
.contact-panel p { margin: 0 0 10px; }
.contact-panel strong { font-weight: 700; }
.contact-panel ul { display: grid; gap: 9px; margin: 9px 0 12px; padding: 0; list-style: none; }
.contact-panel li { position: relative; padding-left: 27px; }
.contact-panel li::before { content: "×"; position: absolute; left: 0; top: 1px; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; color: #fff; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; font-size: 12px; line-height: 1; }
.contact-panel .lead-form { margin-top: 19px; }
.contact-panel__footer { display: grid; justify-items: center; gap: 15px; padding: 42px 0 49px; border-top: 2px solid rgba(255,255,255,.85); text-align: center; }
.contact-panel__footer img { width: 185px; height: auto; }
.contact-panel__footer p { margin: 0; color: #fff; font-size: 20px; line-height: 1.35; font-weight: 700; }

.lead-form { color: var(--ink); background: transparent; border-radius: 0; box-shadow: none; padding: 0; }
.lead-form--blue { background: transparent; box-shadow: none; }
.lead-form label { position: relative; display: block; margin: 0; color: rgba(255,255,255,.92); font-size: 0; }
.lead-form label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead-form label::before { position: absolute; z-index: 1; left: 15px; top: 50%; color: rgba(255,255,255,.9); font-size: 15px; line-height: 1; transform: translateY(-50%); }
.lead-form label:nth-child(1)::before { content: "♙"; }
.lead-form label:nth-child(2)::before { content: "▣"; font-size: 13px; }
.lead-form label:nth-child(3)::before { content: "✉"; }
.lead-form label:nth-child(4)::before { content: "⌕"; transform: translateY(-50%) rotate(-28deg); }
.lead-form label:nth-child(5)::before { content: none; }
.fields { display: grid; gap: 0; }
input, select, textarea { width: 100%; min-width: 0; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(20, 101, 157, .32); border-radius: 0; outline: 0; font-size: 14px; font-weight: 300; }
input, select { height: 46px; padding: 0 14px 0 32px; }
textarea { height: 216px; padding: 14px 14px 9px 32px; resize: vertical; }
.lead-form label:nth-child(5) textarea { padding-left: 14px; }
select option { color: #33414c; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.75); }
input:focus, select:focus, textarea:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.invalid { border-color: #ffdddd; }
.submit-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 34px; margin-top: 0; padding: 0 18px; color: #fff; background: var(--green); border: 0; border-radius: 0; cursor: pointer; font-size: 15px; font-weight: 500; transition: filter .2s ease; }
.submit-button:hover { filter: brightness(.94); }
.submit-button:disabled { opacity: .8; cursor: default; }
.form-status { min-height: 20px; margin: 32px 0 0; color: #fff; font-size: 8px; font-style: italic; }

.stories { padding: 33px 0 24px; background: #fff; overflow: hidden; }
.stories .shell { width: min(930px, calc(100% - 58px)); }
.stories__heading { text-align: center; }
.stories__heading h2 { margin: 0; color: var(--ink); font-size: 24px; line-height: 1.25; }
.stories__heading h2 strong { color: var(--blue); }
.stories__tabs { display: flex; justify-content: center; gap: 17px; margin: 29px 0 25px; }
.stories__tabs button { width: 63px; height: 3px; padding: 0; background: #dfe7ee; border: 0; cursor: pointer; }
.stories__tabs button.active { background: var(--blue); }
.stories__viewport { position: relative; overflow: hidden; }
.stories__arrow { position: absolute; z-index: 2; top: 0; width: 44px; height: 60px; color: #dfe7ee; background: transparent; border: 0; cursor: pointer; font-size: 44px; line-height: 1; font-weight: 100; }
.stories__arrow[data-story-prev] { left: 0; }
.stories__arrow[data-story-next] { right: 0; }
.stories__arrow:hover { color: var(--blue); }
.stories__track { display: flex; gap: 18px; width: 100%; padding: 0 70px; background: transparent; transform: translateX(0); transition: transform .45s ease; will-change: transform; }
.story { display: block; flex: 0 0 min(760px, calc(100% - 140px)); opacity: .25; transform: scale(.96); transition: opacity .35s ease, transform .45s ease; }
.story.active { opacity: 1; transform: scale(1); }
.story h3 { margin: 0 0 28px; color: #71809a; font-size: 24px; line-height: 1.28; text-align: center; font-weight: 300; }
.story__card { background: #f5f7fa; border: 1px solid #e3e9ef; padding: 33px 30px 26px; }
.story__card p,
.story__card li { color: #536b86; font-size: 16px; line-height: 1.55; }
.story__card p { margin: 0 0 13px; }
.story__card ul { display: grid; gap: 8px; margin: 0 0 13px 20px; padding: 0; }
.story__card strong { color: #2f3c50; font-weight: 700; }
.story__outcome { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e0e5eb; }
.story__outcome p { margin: 0 0 8px; color: #2f3c50; font-size: 18px; line-height: 1.35; font-weight: 700; }

.solutions { padding: 53px 0 64px; background: #fff; overflow: hidden; }
.solutions__shell { width: min(1088px, calc(100% - 58px)); margin: 0 auto; }
.solutions__heading { text-align: center; }
.solutions__heading h2 { margin: 0; color: #243242; font-size: 24px; line-height: 1.28; font-weight: 700; }
.solutions__heading h2 strong { color: var(--blue); font-weight: 700; }
.solutions__tabs { display: flex; justify-content: center; gap: 17px; margin: 31px 0 26px; }
.solutions__tabs button { width: 63px; height: 3px; padding: 0; background: #dfe7ee; border: 0; cursor: pointer; }
.solutions__tabs button.active { background: var(--blue); }
.solutions__viewport { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 16px; align-items: center; }
.solutions__arrow { height: 60px; color: #dfe7ee; background: transparent; border: 0; cursor: pointer; font-size: 44px; line-height: 1; font-weight: 100; }
.solutions__arrow:hover { color: var(--blue); }
.solutions__track { min-width: 0; overflow: hidden; }
.solution-slide { display: none; min-height: 492px; overflow: hidden; padding: 24px 44px 20px; background: #f1f6fa; border: 1px solid #e3e9ef; box-shadow: 0 14px 34px rgba(38,60,90,.13); cursor: pointer; }
.solution-slide.active { display: block; }
.solution-slide__header { display: flex; align-items: center; min-height: 74px; margin-bottom: 16px; }
.solution-slide__logo { display: block; width: auto; max-width: 355px; height: 74px; object-fit: contain; object-position: left center; }
.solution-slide__logo--chipana { width: 190px; }
.solution-slide__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.solution-slide__copy { color: #536b86; }
.solution-slide__copy h3 { margin: 0 0 13px; color: #2f3c50; font-size: 15px; line-height: 1.55; font-weight: 700; }
.solution-slide__copy p,
.solution-slide__copy li { color: #536b86; font-size: 15px; line-height: 1.55; }
.solution-slide__copy p { margin: 0 0 13px; }
.solution-slide__copy ul { display: grid; gap: 8px; margin: 0 0 13px 20px; padding: 0; }
.solution-slide__copy li { margin: 0; padding-left: 2px; }
.solution-slide__copy strong { color: #2f3c50; font-weight: 700; }
.solution-slide__graphic { display: block; width: 100%; max-height: 420px; object-fit: contain; object-position: center; border-radius: 2px; }
.solution-slide[data-solution-card="2"] .solution-slide__graphic { width: 83%; max-width: none; max-height: 352px; margin-left: 0; place-self: center; }
.solution-slide__outcome { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #e0e5eb; color: #2f3c50; font-size: 17px; line-height: 1.5; text-align: center; font-weight: 700; }
.solution-slide__outcome strong { font-weight: 700; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 35px; min-height: 90px; padding: 20px 37px; color: #fff; background: #1d2225; overflow: hidden; }
.site-footer__logo { width: 161px; height: auto; flex: 0 0 auto; }
.site-footer__logos { display: flex; align-items: center; justify-content: flex-end; gap: 32px; flex: 1; }
.site-footer__logos img { display: block; width: auto; max-width: none; object-fit: contain; }
.site-footer__logos img:nth-child(1) { height: 28px; }
.site-footer__logos img:nth-child(2) { height: 31px; }
.site-footer__logos img:nth-child(3) { height: 33px; }
.site-footer__logos img:nth-child(4) { height: 36px; }
.site-footer__logos img:nth-child(5) { height: 31px; }

.success-page { display: flex; flex-direction: column; min-height: 100vh; background: #fff; }
.success-content { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 86px; align-items: center; flex: 1; width: min(927px, calc(100% - 48px)); min-height: 640px; margin: 0 auto; padding: 34px 0 52px; }
.success-copy h1 { margin: 0 0 56px; color: var(--blue); font-size: 49px; line-height: 1.12; letter-spacing: 0; font-weight: 700; }
.success-copy p { margin: 0 0 52px; color: #71809a; font-size: 38px; line-height: 1.2; font-weight: 300; }
.success-actions { display: flex; align-items: center; gap: 20px; }
.success-button { display: inline-flex; align-items: center; gap: 8px; min-height: 35px; padding: 0 12px; color: #fff; background: #216da9; font-size: 13px; line-height: 1; text-decoration: none; }
.success-button--ghost { color: #65748b; background: #f6f8fa; }
.success-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.success-check svg { display: block; width: 205px; height: 205px; color: #16a34a; fill: none; stroke: currentColor; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 980px) {
  .site-footer { flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px 24px; text-align: center; overflow: visible; }
  .site-footer__logo { width: 150px; margin: 0 auto; }
  .site-footer__logos { width: 100%; flex: 0 1 auto; flex-wrap: wrap; justify-content: center; gap: 18px 28px; }
}

@media (max-width: 940px) {
  .contact-panel__grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-panel .lead-form { margin-top: 0; }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 32px, 680px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 10px; padding: 14px 18px 12px; }
  .site-header__brand img { width: 104px; }
  .site-header__stats { width: 100%; justify-content: space-between; gap: 10px; font-size: 11px; line-height: 1.05; }
  .site-header__stats span { gap: 5px; }
  .site-header__stats strong { font-size: 19px; }
  .intro { padding-top: 0; }
  .intro__lead { margin-bottom: 54px; font-size: 23px; }
  .intro__reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .thinking__grid, .contact-panel__grid { grid-template-columns: 1fr; }
  .thinking__grid { gap: 28px; }
  .thinking__lessons { width: 100%; margin-top: 0; text-align: right; }
  .thinking__lessons h3 { text-align: right; }
  .thinking__closing { margin-top: 34px; }
  .thinking h2 strong { display: block; margin-top: 6px; }
  .thinking h3 { margin-top: 20px; }
  .contact-panel__grid { gap: 36px; }
  .contact-panel .lead-form { margin-top: 0; }
  .contact-panel__footer { padding: 34px 0 40px; }
  .stories__track { padding: 0 48px; }
  .story { flex-basis: calc(100% - 96px); }
  .stories__arrow { width: 30px; height: 44px; font-size: 36px; }
  .stories .shell { width: min(100% - 32px, 680px); }
  .solutions__shell { width: min(100% - 32px, 680px); }
  .solutions__viewport { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 8px; align-items: center; }
  .solutions__arrow { display: block; height: 44px; font-size: 36px; }
  .solution-slide { flex: 0 0 min(872px, calc(100vw - 48px)); min-height: 0; height: auto; overflow: visible; padding: 34px 28px 32px; }
  .solution-slide__body { grid-template-columns: 1fr; gap: 28px; }
  .solution-slide__graphic { max-height: 240px; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 32px, 430px); }
  .site-header { align-items: center; padding: 12px 16px 11px; }
  .site-header__brand { width: 100%; display: flex; justify-content: center; }
  .site-header__brand img { width: 104px; }
  .site-header__stats { font-size: 11px; gap: 8px; }
  .site-header__stats strong { font-size: 19px; }
  .intro h1 { font-size: 26px; line-height: 1.22; }
  .intro__lead { margin-bottom: 52px; font-size: 21px; line-height: 1.35; }
  .intro__body { width: calc(100% - 32px); padding-top: 42px; padding-bottom: 38px; }
  .intro__copy h2 { font-size: 17px; line-height: 1.42; }
  .intro__copy p { margin-bottom: 14px; font-size: 15px; line-height: 1.65; }
  .intro__copy p:first-of-type { font-size: 17px; }
  .intro__band { padding: 30px 20px 34px; }
  .intro__band h2 { font-size: 19px; line-height: 1.4; }
  .intro__reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 28px; }
  .intro__reasons > span { gap: 6px; }
  .thinking { padding: 50px 0 58px; }
  .thinking h2 { margin-bottom: 34px; }
  .thinking__grid { margin-top: 0; }
  .thinking__closing { margin-bottom: 0; }
  .contact-panel { margin-top: 28px; }
  .contact-panel__grid { padding: 42px 0; }
  .contact-panel__footer img { width: 150px; }
  .contact-panel__footer p { font-size: 17px; }
  input, select { height: 42px; font-size: 15px; }
  textarea { height: 237px; font-size: 15px; }
  .submit-button { min-height: 34px; font-size: 16px; }
  .fields--two { grid-template-columns: 1fr; }
  .stories__tabs { gap: 8px; }
  .stories__tabs button { width: 42px; }
  .stories__track { padding: 0 34px; }
  .story { flex-basis: calc(100% - 68px); }
  .stories__arrow { width: 28px; }
  .story h3 { font-size: 21px; line-height: 1.35; }
  .story__card { padding: 26px 22px 22px; }
  .story__outcome p { font-size: 16px; }
  .stories { padding-bottom: 20px; }
  .solutions { padding: 42px 0 48px; }
  .solutions__heading h2 { font-size: 21px; line-height: 1.35; }
  .solutions__tabs { gap: 8px; margin: 24px 0 22px; }
  .solutions__tabs button { width: 42px; }
  .solution-slide { flex-basis: calc(100vw - 32px); min-height: 0; height: auto; overflow: visible; padding: 28px 22px 26px; }
  .solution-slide__header { justify-content: center; min-height: 48px; }
  .solution-slide__logo { width: 145px; object-position: center; }
  .solution-slide__copy h3 { font-size: 16px; text-align: center; }
  .solution-slide__copy p,
  .solution-slide__copy li { font-size: 15px; }
  .solution-slide__copy ul { margin-left: 18px; }
  .solution-slide__body { min-width: 0; }
  .solution-slide__graphic { width: min(100%, 520px); max-height: none; margin: 0 auto; }
  .solution-slide__outcome { font-size: 16px; }
  .site-footer { flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 19px 14px; text-align: center; }
  .site-footer__logo { width: 126px; margin: 0 auto; }
  .site-footer__logos { width: 100%; flex: 0 1 auto; flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
  .site-footer__logos img:nth-child(n) { height: 25px; }
  .success-content { grid-template-columns: 1fr; gap: 36px; min-height: auto; padding: 40px 0 64px; }
  .success-copy h1 { font-size: 32px; }
  .success-copy p { font-size: 24px; }
  .success-actions { flex-wrap: wrap; }
  .success-check { order: -1; }
  .success-check svg { width: 130px; height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Carruseles laterales: la tarjeta central queda nítida y las vecinas se insinúan a ambos lados. */
.solutions__viewport,
.stories__viewport { position: relative; width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; cursor: pointer; }
.solutions__viewport::before,
.solutions__viewport::after,
.stories__viewport::before,
.stories__viewport::after { position: absolute; z-index: 3; top: 0; bottom: 0; width: 7vw; pointer-events: none; content: ''; }
.solutions__viewport::before,
.stories__viewport::before { left: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.86) 48%, rgba(255,255,255,0) 100%); }
.solutions__viewport::after,
.stories__viewport::after { right: 0; background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,.86) 48%, rgba(255,255,255,0) 100%); }
.solutions__track,
.stories__track { display: flex; flex-wrap: nowrap; gap: 56px; width: max-content; padding: 0 calc(50vw - 435px); overflow: visible; transition: transform .58s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.solution-slide,
.story { display: block; flex: 0 0 872px; opacity: .24; filter: blur(.8px); transform: scale(.975); transition: opacity .42s ease, filter .42s ease, transform .58s cubic-bezier(.22,.61,.36,1); }
.solution-slide.is-current,
.story.is-current { opacity: 1; filter: none; transform: scale(1); }
.stories + .contact-panel { margin-top: 20px; }
.solutions__arrow,
.stories__arrow { z-index: 4; }

@media (max-width: 980px) {
  .solutions__track,
  .stories__track { gap: 28px; padding: 0 6vw; }
  .solution-slide,
  .story { flex-basis: 88vw; }
  .solutions__viewport::before,
  .solutions__viewport::after,
  .stories__viewport::before,
  .stories__viewport::after { width: 9vw; }
}

@media (max-width: 600px) {
  .solutions__track,
  .stories__track { gap: 18px; padding: 0 16px; }
  .solution-slide,
  .story { flex-basis: calc(100vw - 32px); }
  .solution-slide:not(.is-current),
  .story:not(.is-current) { opacity: .1; filter: blur(1px); }
  .stories + .contact-panel { margin-top: 16px; }
  .solutions__viewport::before,
  .solutions__viewport::after,
  .stories__viewport::before,
  .stories__viewport::after { width: 6vw; }
}

/* Empresas que comenzaron con una conversación. */
.client-marquee { overflow: hidden; background: #f1f6fa; }
.client-marquee__inner { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: center; width: min(872px, calc(100% - 48px)); min-height: 92px; margin: 0 auto; padding: 17px 0; }
.client-marquee__eyebrow { margin: 0; color: var(--blue); font-size: 16px; font-weight: 600; line-height: calc(1.25em + 1px); }
.client-marquee__viewport { min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%); }
.client-marquee__track { display: flex; flex-wrap: nowrap; align-items: center; gap: 48px; width: max-content; will-change: transform; }
.client-marquee__item { display: flex; flex: 0 0 138px; align-items: center; justify-content: center; width: 138px; height: 58px; overflow: hidden; }
.client-marquee__item img { display: block; width: auto; max-width: 124px; max-height: 35px; filter: grayscale(1) contrast(.78); opacity: .72; }
.client-marquee__item img[alt="Gasmar"],
.client-marquee__item img[alt="Salmones Austral"],
.client-marquee__item img[alt="Talcahuano"],
.client-marquee__item img[alt="Propamat"],
.client-marquee__item img[alt="Corralco"],
.client-marquee__item img[alt="Coopelan"],
.client-marquee__item img[alt="Compañía Minera Chipana"],
.client-marquee__item img[alt="AquaChile"] { filter: grayscale(1) brightness(.62) contrast(1.05); opacity: .9; }
.client-marquee__item--masonite img { width: 124px; height: 35px; max-width: none; object-fit: fill; }
.client-marquee__text-logo { display: inline-block; color: #65748a; filter: grayscale(1) contrast(.78); opacity: .72; white-space: nowrap; }
.client-marquee__text-logo--enel { font-size: 38px; font-weight: 300; letter-spacing: -2px; line-height: 1; }
.client-marquee__viewport:hover .client-marquee__track { cursor: default; }

@media (max-width: 820px) {
  .client-marquee__inner { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; width: min(872px, calc(100% - 48px)); }
  .client-marquee__track { gap: 38px; }
  .client-marquee__item { flex-basis: 126px; width: 126px; }
}

@media (max-width: 600px) {
  .client-marquee__inner { grid-template-columns: 1fr; gap: 10px; width: 100%; min-height: 124px; padding: 20px 0 18px; }
  .client-marquee__eyebrow { padding: 0 24px; text-align: left; }
  .client-marquee__viewport { width: 100%; }
  .client-marquee__track { gap: 32px; }
  .client-marquee__item { flex-basis: 116px; width: 116px; height: 46px; }
  .client-marquee__item img { max-width: 108px; max-height: 30px; }
  .client-marquee__item--masonite img { width: 108px; height: 30px; max-width: none; }
}

/* En móvil, las tarjetas de casos crecen con su contenido y no recortan la imagen final. */
@media (max-width: 600px) {
  .solutions { padding: 30px 0 36px; }
  .solutions__heading { padding: 0 18px; }
  .solutions__heading h2 { font-size: 18px; line-height: 1.28; }
  .solutions__tabs { gap: 7px; margin: 18px 0; }
  .solutions__tabs button { width: 38px; }
  .solutions__viewport {
    display: block;
    width: 100%;
    margin-left: 0;
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 18px;
  }
  .solutions__viewport::before,
  .solutions__viewport::after { display: none; }
  .solutions__track {
    align-items: flex-start;
    width: 100%;
    gap: 0;
    padding-right: 0;
    padding-left: 0;
  }
  .solution-slide {
    flex: 0 0 100%;
    min-height: 0;
    height: auto;
    overflow: visible;
    padding: 12px 14px 14px;
  }
  .solutions__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 34px;
    height: 44px;
    margin: 0;
    font-size: 36px;
    transform: translateY(-50%);
  }
  .solutions__arrow[data-solution-prev] { left: -12px; }
  .solutions__arrow[data-solution-next] { right: -12px; }
  .solution-slide__header { min-height: 38px; margin-bottom: 5px; }
  .solution-slide__logo,
  .solution-slide__logo--chipana,
  .solution-slide__logo--udec,
  .solution-slide__logo--corralco {
    width: auto;
    max-width: 145px;
    height: 46px;
    object-position: left center;
  }
  .solution-slide__body { min-width: 0; max-width: 100%; gap: 8px; }
  .solution-slide__body > br:first-child { display: none; }
  .solution-slide__copy h3 { margin-bottom: 6px; font-size: 13px; line-height: 1.3; }
  .solution-slide__copy p,
  .solution-slide__copy li {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.4;
  }
  .solution-slide__copy p { margin-bottom: 6px; }
  .solution-slide__copy ul { gap: 2px; margin: 0 0 4px 16px; }
  .solution-slide__graphic {
    width: min(70%, 230px);
    height: auto;
    max-height: 115px;
    margin: 0 auto;
    place-self: center;
    transform: none;
  }
  .solution-slide[data-solution-card="4"] .solution-slide__graphic { width: min(80%, 250px); max-height: 135px; }
  .solution-slide__outcome { margin-top: 8px; padding-top: 7px; font-size: 12px; line-height: 1.3; }
}

/* La versión móvil de las historias usa tarjetas fluidas, sin recortes verticales. */
@media (max-width: 600px) {
  .stories { padding: 28px 18px; }
  .stories__heading { padding: 0 18px; }
  .stories__heading h2 { font-size: 18px; line-height: 1.28; }
  .stories__tabs { gap: 7px; margin: 18px 0; }
  .stories__tabs button { width: 38px; }
  .stories__viewport {
    display: block;
    position: relative;
    width: 100%;
    margin-left: 0;
    overflow-x: hidden;
    overflow-y: visible;
  }
  .stories__viewport::before,
  .stories__viewport::after { display: none; }
  .stories__track {
    align-items: flex-start;
    width: 100%;
    gap: 0;
    padding-right: 0;
    padding-left: 0;
  }
  .story { flex: 0 0 100%; min-width: 0; max-width: 100%; }
  .stories__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    margin-top: 0;
    transform: translateY(-50%);
  }
  .stories__arrow[data-story-prev] { left: -12px; }
  .stories__arrow[data-story-next] { right: -12px; }
  .story h3 { margin: 0 12px 9px; overflow-wrap: anywhere; font-size: 15px; line-height: 1.3; }
  .story__card { min-width: 0; max-width: 100%; padding: 14px 14px 12px; overflow: visible; }
  .story__card p,
  .story__card li { max-width: 100%; overflow-wrap: anywhere; font-size: 12px; line-height: 1.35; }
  .story__card p { margin-bottom: 6px; }
  .story__card ul { gap: 2px; margin: 0 0 6px 16px; }
  .story__outcome { margin-top: 8px; padding-top: 7px; }
  .story__outcome p { margin-bottom: 4px; font-size: 12px; line-height: 1.3; }
}
