.header {
  --header-bg: #111718;
  color: #fff;
  background: var(--header-bg);
  border-bottom: 1px solid #ffffff29;
}

[data-theme="dark"] .header { background: var(--header-bg); }
.home .header { position: relative; }
.header .header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px 22px;
  height: auto;
  min-height: 84px;
  padding-block: 12px;
}
.header .brand { width: clamp(150px, 16vw, 210px); order: 0; }
.header .brand img { content: url("assets/logo-dark.webp"); height: auto; }
.header .header-controls { order: 0; margin: 0; gap: 10px; justify-self: end; }
.header .theme-toggle {
  color: #fff;
  border: 1px solid #ffffff75;
  background: #11171858;
}
[data-theme] .header nav { background: transparent; }
.header nav {
  order: 0;
  position: static;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 clamp(12px, 1.7vw, 25px);
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.header nav > a { padding: 10px 0; font-weight: 600; white-space: nowrap; }
.header nav > a:is([aria-current], :hover) { color: #ff9d5f; }
.header .header-controls .button { white-space: nowrap; gap: 8px; font-size: 13px; }
[data-theme="light"] .header { --header-bg: var(--page); color: var(--ink); border-color: var(--line); }
[data-theme="light"] .header .brand img { content: none; }
[data-theme="light"] .header .theme-toggle {
  color: var(--ink);
  border-color: var(--line);
  background: var(--control);
}
[data-theme="light"] .header nav > a:is([aria-current], :hover) { color: var(--accent-text); }

@media (max-width: 1080px) {
  html { scroll-padding-top: 145px; }
  .header .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; }
  .header .header-controls { grid-column: 2; grid-row: 1; }
  .header nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    border-top: 1px solid #ffffff29;
  }
  [data-theme="light"] .header nav { border-color: var(--line); }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 165px; }
  .header .header-inner { width: calc(100% - 24px); padding-block: 8px; }
  .header .brand { width: min(100%, 150px); }
  .header .header-controls { gap: 6px; }
  .header .header-controls .button { padding: 9px; font-size: 12px; }
  .header .header-controls .button span { display: none; }
  .header .theme-toggle { width: 36px; height: 36px; }
  .header nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; text-align: center; }
  .header nav > a { font-size: 13px; padding: 8px 0; min-height: 38px; }
}

.showcase {
  --display-type: Bahnschrift, "Arial Narrow", Arial, sans-serif;
  --showcase-side: linear-gradient(270deg, #091113ee, #091113ad 35%, #09111310 76%);
  --showcase-base: linear-gradient(0deg, #091113e0, transparent 24%);
  --showcase-mobile: linear-gradient(0deg, #091113f8 4%, #091113d9 37%, #09111342 68%, #09111320 100%);
  position: relative;
  color: #fff;
  background: #111718;
}
.showcase-slide {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  min-height: max(620px, 94svh);
  padding-block: 128px 112px;
  overflow: clip;
}

.showcase-slide.is-leaving { position: absolute; inset: 0; }
.showcase-slide.is-entering { z-index: 1; animation: showcase-fade .8s ease both; }
.showcase-slide.is-current .showcase-media img { animation: showcase-dolly 8.8s ease-out both; }
.showcase-slide.is-leaving .showcase-copy { animation: showcase-text-out .2s ease-out both; }
.showcase-slide:is(.is-entering, .is-opening) .showcase-copy > * { animation: showcase-rise .48s cubic-bezier(.2,.65,.25,1) .11s both; }
.showcase-slide:is(.is-entering, .is-opening) .showcase-copy > h2 { animation-delay: .17s; }
.showcase-slide:is(.is-entering, .is-opening) .showcase-copy > p { animation-delay: .24s; }
.showcase-slide:is(.is-entering, .is-opening) .showcase-actions { animation-delay: .31s; }

@keyframes showcase-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes showcase-dolly { from { transform: scale(1.075); } to { transform: scale(1); } }
@keyframes showcase-text-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes showcase-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.showcase-media,
.showcase-media::after { position: absolute; inset: 0; }
.showcase-media { z-index: -1; }
.showcase-media::after {
  content: '';
  background: var(--showcase-side), var(--showcase-base);
}

#destacado-2 {
  --showcase-side: linear-gradient(90deg, #091113ef, #091113b5 35%, #09111312 78%);
}

.showcase-media img { height: 100%; object-position: 51% center; }
#destacado-1 .showcase-media img { object-position: 64% 80%; }
.showcase-copy { max-width: 495px; margin-left: auto; }
#destacado-2 .showcase-copy { margin-left: 0; }
.showcase h2 {
  color: #fff;
  font-family: var(--display-type);
  font-size: clamp(45px, 5.6vw, 82px);
  line-height: 1;
  font-weight: 750;
  letter-spacing: -.04em;
  text-wrap: balance;
  margin: 0 0 22px;
}
#destacado-2 h2 { font-size: clamp(35px, 4.6vw, 66px); }

.showcase-copy p { max-width: 410px; color: #f1f1ee; font-size: clamp(15px, 1.4vw, 18px); margin-bottom: 26px; }
.showcase-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.showcase-actions > a { font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; padding-block: 10px; }
.showcase-actions > a:hover { color: #ffad76; }
.showcase-actions > a span { margin-left: 6px; }
.showcase .button { color: #18130f; border-radius: 0; }

.showcase-bottom {
  position: absolute;
  z-index: 2;
  bottom: 0;
  inset-inline: 0;
  min-height: 77px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-top: 1px solid #ffffff65;
  padding-right: 145px;
}

.showcase-scroll,
.showcase-controls { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.showcase-scroll { position: absolute; left: 50%; transform: translateX(-50%); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.showcase-scroll:hover { color: #ffad76; }
.showcase-scroll span { font-size: 21px; }
.showcase-counter { white-space: nowrap; color: #fff; font-variant-numeric: tabular-nums; }
.showcase-counter b { color: #ffad76; }

.showcase-controls button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #ffffffa0;
  border-radius: 50%;
  background: #11171870;
  color: #fff;
  font-size: 20px;
}

.showcase-controls button:hover { border-color: #ffad76; color: #ffad76; }
.showcase-controls .showcase-playback { font-size: 15px; }
.showcase-progress { position: absolute; inset: -1px 0 auto; height: 2px; pointer-events: none; }
.showcase-progress span { display: block; height: 100%; background: #ff853a; transform: scaleX(0); transform-origin: left; }
.showcase-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.home-solutions { background: #111718; color: #fff; }
.solutions-heading { padding-block: 60px 34px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 9px 20px; }
.solutions-heading h2 { margin: 0; text-transform: uppercase; }
.solutions-heading a,
.solutions-more a { font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.solutions-heading a:hover,
.solutions-more a:hover { color: #ffad76; }

.solution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.solution-tile {
  isolation: isolate;
  position: relative;
  display: grid;
  align-content: start;
  min-height: clamp(345px, 37vw, 540px);
  padding: clamp(22px, 3vw, 50px);
  overflow: hidden;
  background: #202728;
}

.solution-tile img,
.solution-tile::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.solution-tile img { z-index: -2; transition: filter .3s ease, transform .3s ease; }
.solution-tile::after {
  content: '';
  z-index: -1;
  background: linear-gradient(180deg, #071011f0, #071011b0 65%, #07101124);
  transition: opacity .3s ease;
}
.solution-tile:focus-visible { outline-offset: -5px; }
.solution-tile h3 { font-size: clamp(25px, 3vw, 43px); text-transform: uppercase; margin-bottom: 12px; }
.solution-details { transition: opacity .25s ease; }
.solution-details p { max-width: 300px; color: #fff; font-size: 15px; margin-bottom: 18px; }
.solution-arrow { color: #ffad76; font-size: 14px; font-weight: 700; }
.solution-arrow b { margin-left: 8px; font-size: 17px; }

@media (hover: hover) and (pointer: fine) {
  .solution-tile:not(:is(:hover, :focus-visible))::after {
    opacity: .86;
    background: linear-gradient(180deg, #071011e0, #07101188 30%, transparent 57%);
  }
  .solution-tile:not(:is(:hover, :focus-visible)) .solution-details { opacity: 0; }
  .solution-tile:is(:hover, :focus-visible) img { filter: blur(6px); transform: scale(1.06); }
}
.solutions-more { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding-block: 24px 30px; }
.solutions-more p { color: #d5dad7; margin: 0; font-size: 14px; }

.home-innovation {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  background: var(--soft);
  color: var(--ink);
}
.home-innovation-copy { padding: clamp(28px, 5vw, 84px); }
.home-innovation-copy h2 {
  margin: 0 0 24px;
  font-family: Bahnschrift, "Arial Narrow", Arial, sans-serif;
  font-size: clamp(36px, 5vw, 82px);
  line-height: 1.03;
  text-wrap: balance;
}
.home-innovation-copy p { max-width: 36ch; margin-bottom: 20px; text-align: start; }
.home-innovation-photo { display: block; width: 100%; height: auto; }

.home-directory { background: #9e4418; color: #fff; }
.home-directory > a { position: relative; display: block; padding: clamp(28px, 5vw, 80px); padding-right: clamp(60px, 9vw, 110px); }
.home-directory > a:hover h2 { text-decoration: underline; text-underline-offset: 5px; }
.home-directory h2 { margin: 13px 0 10px; text-transform: uppercase; }
.home-directory p { color: #fff; margin: 0; }
.home-directory b { position: absolute; right: clamp(20px, 4vw, 60px); bottom: clamp(28px, 5vw, 80px); font-size: 28px; }
.home .cta { border-top: 3px solid var(--orange); }

.is-revealing { animation: section-arrive .55s cubic-bezier(.2,.65,.25,1) var(--reveal-delay, 0ms) both; }
.is-revealing:focus-within { animation: none; }
@keyframes section-arrive {
  from { opacity: 0; translate: 0 20px; }
  to { opacity: 1; translate: 0 0; }
}

[data-theme="light"] .showcase {
  --showcase-side: linear-gradient(270deg, #f8f6f2, #f8f6f2e8 46%, #f8f6f200 80%);
  --showcase-base: linear-gradient(0deg, #f8f6f2, #f8f6f200 26%);
  --showcase-mobile: linear-gradient(0deg, #f8f6f2 4%, #f8f6f2f5 37%, #f8f6f2d9 58%, #f8f6f200 87%);
  background: #f8f6f2;
  color: var(--ink);
}

[data-theme="light"] #destacado-2 {
  --showcase-side: linear-gradient(90deg, #f8f6f2, #f8f6f2e8 46%, #f8f6f200 80%);
}

[data-theme="light"] .showcase :is(h2, .showcase-counter) { color: var(--ink); }
[data-theme="light"] .showcase-copy p { color: #303336; }
[data-theme="light"] .showcase :is(.showcase-counter b, .showcase-scroll:hover, .showcase-actions > a:hover) {
  color: var(--accent-text);
}
[data-theme="light"] .showcase-bottom { border-color: #17191c36; }
[data-theme="light"] .showcase-controls button { background: #fff9; border-color: #767472; color: var(--ink); }
[data-theme="light"] .showcase-controls button:hover { border-color: var(--accent-text); color: var(--accent-text); }

[data-theme="light"] .home-solutions { background: var(--page); color: var(--ink); }
.solution-tile { color: #fff; }
[data-theme="light"] :is(.solutions-heading a:hover, .solutions-more a:hover) {
  color: var(--accent-text);
}
[data-theme="light"] .solutions-more p,
[data-theme="light"] .home-directory p { color: var(--muted); }
[data-theme="light"] .home-directory { background: #fae8da; color: var(--ink); }
[data-theme="light"] .home .cta { background: #f8f6f2; color: var(--ink); }
[data-theme="light"] .home .cta .eyebrow { color: var(--accent-text); }
[data-theme="light"] .home .cta p { color: var(--muted); }
[data-theme="light"] .home .cta .button { background: var(--cta-orange); border-color: var(--cta-orange); }
[data-theme="light"] .home .cta .button:hover { background: var(--cta-orange-hover); border-color: var(--cta-orange-hover); }

@media (max-width: 760px) {
  .showcase-slide { min-height: max(630px, 92svh); align-items: end; padding-block: 140px 96px; }
  .showcase-copy { margin-left: 0; }
  .showcase-media img { object-position: 64% center; }
  #destacado-2 .showcase-media img { object-position: 69% center; }
  .showcase-media::after { background: var(--showcase-mobile); }
  .showcase h2 { font-size: clamp(31px, 9.5vw, 57px); }
  #destacado-2 h2 { font-size: clamp(30px, 8.7vw, 57px); }
  .showcase-copy p { margin-bottom: 19px; }
  .showcase-actions { gap: 4px 16px; }
  .showcase-actions .button { font-size: 13px; padding: 13px 14px; gap: 9px; }
  .showcase-actions > a { font-size: 13px; }
  .showcase-bottom { padding-right: 50px; min-height: 69px; gap: 8px; }
  .showcase-scroll { position: static; transform: none; letter-spacing: 0; text-transform: none; }
  .showcase-scroll,
  .showcase-controls { gap: 7px; }
  .solutions-heading { display: block; padding-block: 34px 22px; }
  .solutions-heading h2 { margin: 8px 0 10px; }
  .solution-grid,
  .solution-tile { min-height: 300px; }
  .solutions-more { align-items: flex-start; flex-direction: column; }
  .home-innovation { grid-template-columns: minmax(0, 1fr); }
  .home-innovation-copy h2 { margin-bottom: 16px; }
}

@media (max-width: 360px) {
  .showcase-slide { padding-bottom: 113px; }
  .showcase-bottom { padding-block: 7px; min-height: 88px; display: grid; justify-items: start; gap: 2px; }
  .showcase-scroll { font-size: 12px; }
  .showcase-scroll span { display: none; }
  .showcase-controls { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-slide.is-entering,
  .showcase-slide.is-leaving .showcase-copy,
  .showcase-slide.is-current .showcase-media img,
  .showcase-slide:is(.is-entering, .is-opening) .showcase-copy > *,
  .is-revealing { animation: none; }
}

/* Location and management policy */
.about-location { padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(70px, 9vw, 130px); }
.about-location-heading h1 { max-width: 18ch; margin: 18px 0 38px; }
.about-map { height: clamp(300px, 40vw, 510px); overflow: hidden; border-radius: 6px; background: #d9dedc; }
.about-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.about-location-copy { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(30px, 8vw, 120px); padding-top: 36px; }
.about-location-copy p { max-width: 55ch; font-size: 1.1rem; line-height: 1.65; }
.management-policy { padding-top: 20px; padding-bottom: clamp(70px, 9vw, 120px); }
.policy-intro { max-width: 820px; margin-bottom: 48px; }
.policy-intro h2 { margin-top: 16px; }
.policy-download { margin-block: 0 22px; white-space: normal; }
.policy-meta, .policy-approval { font-size: .9rem; }
.policy-grid article > p { margin-bottom: 12px; }
.policy-intro p, .policy-closing p { line-height: 1.7; }
.policy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4vw, 55px); }
.policy-grid article { border-top: 3px solid #f36b21; padding-top: 22px; }
.policy-grid h3, .policy-closing h3 { font-size: 1.5rem; }
.policy-grid ul { padding-left: 1.15rem; line-height: 1.65; }
.policy-grid li { margin-bottom: 12px; }
.policy-grid li::marker { color: #f36b21; }
.policy-closing { max-width: 820px; margin-top: 48px; }
@media (max-width: 720px) { .about-location-copy, .policy-grid { grid-template-columns: 1fr; } .about-location-copy { gap: 18px; } .about-map { height: 340px; } }
.contact-place-map { height: clamp(250px, 30vw, 340px); background: #d9dedc; }
.contact-place-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.mission-vision { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 7vw, 90px); padding-block: 30px 65px; }
.mission-vision article { border-top: 3px solid #f36b21; padding-top: 22px; }
.mission-vision h2 { margin: 12px 0 16px; }
.mission-vision p { max-width: 55ch; line-height: 1.7; }
@media (max-width: 720px) { .mission-vision { grid-template-columns: 1fr; gap: 25px; } .contact-place-map { height: 270px; } }
/* The location map fills the available space beside the contact channels. */
.contact-visit { display: flex; flex-direction: column; }
.contact-place-map { flex: 1 1 340px; min-height: 340px; height: auto; }
.contact-visit-copy { flex: 0 0 auto; }
@media (max-width: 760px) { .contact-place-map { flex: none; min-height: 0; height: 320px; } }

/* Alineación del contenido de políticas */
.mission-vision p, .policy-intro p, .policy-grid li, .policy-closing p { text-align: justify; }
/* Fill each product image area consistently without letterboxing. */
.category.product-line .product-image { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; object-position: center; }
#quimicos .product-image { object-position: center 62%; }
/* Individual framing for the membrane and chemical product photos. */
.product-image-frame { overflow: hidden; width: 100%; aspect-ratio: 3 / 2; background: #fff; }
.category.product-line .product-image-frame .product-image { display: block; width: 100%; height: 100%; aspect-ratio: auto; }
#consumibles .product-image-frame .product-image { transform: scale(1.12); transform-origin: center 40%; }
#quimicos .product-image-frame .product-image { object-fit: contain; object-position: center; background: #fff; }
.product-carousel { position: relative; }
.product-carousel-images { position: relative; }
.category.product-line .product-carousel .product-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
}
.category.product-line .product-carousel .product-slide.is-current { opacity: 1; }
.category.product-line .product-carousel .product-slide[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .category.product-line .product-carousel .product-slide { transition: none; }
}

#consumibles .product-carousel .product-slide:not(:first-child) { transform: none; }
/* Las fotografías nuevas de químicos ocupan todo el espacio de la tarjeta. */
#quimicos .product-carousel .product-slide:not(:first-child) {
  object-fit: cover;
  object-position: center;
}
#quimicos .product-carousel .product-slide:nth-child(3) {
  object-position: center 48%;
}
#quimicos .product-carousel .product-slide:nth-child(2) {
  object-fit: contain;
  object-position: center;
}

/* Encuadre individual según cada fotografía de productos. */
#equipos .product-slide:nth-child(2),
#equipos .product-slide:nth-child(3) { object-position: center 42%; }
#bombas .product-slide:nth-child(2) { object-position: center 55%; }
#bombas .product-slide:nth-child(3) { object-position: center 32%; }
#bombas .product-slide:nth-child(4) { object-fit: contain; background: #fff; }
#consumibles .product-slide:nth-child(3),
#consumibles .product-slide:nth-child(4),
#medios-filtrantes .product-slide { object-fit: contain; background: #fff; }
#instrumentacion .product-slide:nth-child(2) { object-position: 35% center; }
#instrumentacion .product-slide:nth-child(4) { object-position: center 58%; }

#medios-filtrantes .product-slide:first-child { object-fit: cover; object-position: center; }

/* La tarjeta completa abre la consulta de su línea de producto. */
.category.product-line { position: relative; }
.product-card-action { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; border-radius: inherit; }
.product-card-action:focus-visible { outline: 3px solid #f36b21; outline-offset: -4px; }

/* Interacciones para productos y servicios. */
.category.product-line { transition: border-color .25s ease, box-shadow .25s ease; }
.category.product-line:hover, .category.product-line:focus-within { border-color: #f36b21; box-shadow: 0 0 0 1px #f36b21, 0 0 18px rgba(243,107,33,.22); }
.service-tile { position: relative; border-radius: 10px; transition: box-shadow .25s ease; }
.service-tile:hover, .service-tile:focus-within { box-shadow: 0 0 0 2px #f36b21, 0 0 18px rgba(243,107,33,.18); }
.service-tile h2 { font-size: clamp(36px, 3.5vw, 52px); }
.service-tile p { font-size: 18px; }
.service-tile h2 a::after { content: ''; position: absolute; inset: 0; border-radius: 10px; }
.service-tile h2 a:focus-visible { outline: 2px solid #f36b21; outline-offset: 4px; }
.policy-team-photo { margin-top: 0; margin-bottom: clamp(60px, 8vw, 110px); }
.policy-team-photo img { width: 100%; max-height: 620px; object-fit: cover; object-position: center; border-radius: 10px; }
.policy-team-photo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

.policy-team-photo img { filter: brightness(1.13) contrast(1.03); }

/* Lectura más cómoda en textos informativos, sin alterar encabezados. */
main p, main li { font-size: 18px !important; line-height: 1.65; }
@media (max-width: 720px) {
  main p, main li { font-size: 17px !important; }
}

/* Catálogo de cada línea de productos. */
.product-list { position: absolute; inset: 0; z-index: 1; padding: 24px 27px; background: rgba(14, 21, 23, .84); color: #fff; opacity: 0; pointer-events: none; transition: opacity .25s ease; display: flex; flex-direction: column; justify-content: center; }
.product-list h3 { color: #fff; font-size: 21px; line-height: 1.15; margin: 0 0 12px; }
.product-list ul { margin: 0; padding-left: 19px; }
main .product-list li { font-size: 14px !important; line-height: 1.35; margin: 0 0 5px; }
.product-list li::marker { color: #f36b21; }
.product-card-action { z-index: 2; }
@media (hover: hover) {
  .product-line .product-carousel, .product-line .product-content { transition: filter .25s ease; }
  .product-line:hover .product-carousel, .product-line:hover .product-content, .product-line:focus-within .product-carousel, .product-line:focus-within .product-content { filter: blur(5px); }
  .product-line:hover .product-list, .product-line:focus-within .product-list { opacity: 1; }
}
@media (hover: none) {
  .product-list { position: static; opacity: 1; display: block; background: transparent; color: inherit; padding: 0 26px 24px; }
  .product-list h3 { display: none; }
  .product-list li { color: inherit; }
}
@media (prefers-reduced-motion: reduce) { .product-list, .product-line .product-carousel, .product-line .product-content { transition: none; } }

/* Valores institucionales */
.institutional-values { background:#131719; color:#f7f8f9; padding:clamp(48px,7vw,90px) 0; margin-bottom:clamp(55px,8vw,100px); }
.values-inner { max-width:1050px; }
.values-intro .eyebrow,.values-kicker { color:#ff9b5f; letter-spacing:.16em; font-size:11px; font-weight:700; }
.values-intro h2 { color:#fff; margin:0 0 16px; }
.values-intro p { color:#bdc6cc; max-width:520px; margin:0; }
.values-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(200px,.8fr); gap:clamp(25px,5vw,70px); align-items:center; margin-top:20px; }
.values-graphic { position:relative; aspect-ratio:440/385; width:100%; max-width:500px; }
.values-graphic svg { display:block; width:100%; height:100%; overflow:visible; }
.values-outline { fill:#f36b21; fill-opacity:.035; stroke:#f36b21; stroke-width:1.4; stroke-opacity:.32; }
.values-flow { fill:none; stroke:url(#values-gradient); stroke-width:2.5; stroke-dasharray:36 900; stroke-linecap:round; animation:values-flow 9s linear infinite; }
.values-core { fill:#f36b21; fill-opacity:.08; stroke:#f36b21; stroke-opacity:.3; }
.values-water { fill:none; stroke:#fa9a59; stroke-width:2; }
.values-point { position:absolute; transform:translate(-50%,-50%); border:0; background:transparent; color:#fff; font-weight:600; font-size:14px; text-align:center; min-height:44px; white-space:nowrap; padding:15px 5px; }
.values-point:before { content:''; display:block; width:12px; height:12px; margin:0 auto 8px; border:2px solid #ff9a59; border-radius:50%; background:#131719; transition:background .25s,box-shadow .25s; }
.values-point.is-active:before,.values-point:hover:before { background:#ff8b45; box-shadow:0 0 0 6px #f36b2130,0 0 20px #f36b21a0; }
.values-point:focus-visible { outline:2px solid #ff9a59; outline-offset:2px; }
.values-top { left:50%; top:16%; } .values-left { left:12.5%; top:81%; } .values-right { left:87.5%; top:81%; }
.values-detail { min-height:155px; border-left:1px solid #f36b21; padding-left:24px; }
.values-detail h3 { color:#fff; font-size:28px; margin:13px 0; }
.values-detail p { color:#c4ccd1; margin:0; }
.values-rule { display:block; background:#f36b21; width:45px; height:2px; margin-top:22px; }
@keyframes values-flow { to { stroke-dashoffset:-1000; } }
@media(max-width:700px) { .values-layout { grid-template-columns:1fr; gap:0; } .values-graphic { max-width:380px; margin:auto; } .values-detail { min-height:130px; margin-top:10px; } .values-point { font-size:12px; } }
@media(prefers-reduced-motion:reduce) { .values-flow { animation:none; stroke-dasharray:none; stroke-opacity:.4; } }

/* Mejor legibilidad y alineación de los párrafos. */
main p { font-size: 19px !important; line-height: 1.7; text-align: justify; hyphens: auto; }
@media (max-width: 720px) { main p { font-size: 18px !important; } }

/* Logo de cabecera con mayor presencia. */
.header .brand { width: clamp(165px, 18vw, 235px); }
@media (max-width: 600px) { .header .brand { width: min(100%, 165px); } }

/* Tamaño del logo en ambas apariencias. */
.header .brand { width: clamp(220px, 22vw, 290px); }
[data-theme] .header .brand img { width: 100%; height: auto; max-height: none; }
@media (max-width: 600px) { .header .brand { width: min(100%, 205px); } }

/* Encuadre de la nueva imagen de potabilización en el inicio. */
.solution-tile[href="potabilizacion.html"] img { object-position: 64% center; }

/* Foco visible para recorrer el sitio con teclado. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #f36b21;
  outline-offset: 3px;
}

/* El mapa externo se carga a petición del visitante. */
.contact-place-map .map-consent { height: 100%; min-height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 15px; padding: clamp(24px, 4vw, 42px); }
.contact-place-map .map-consent[hidden], .contact-place-map iframe[hidden] { display: none; }
.contact-place-map .map-consent p { max-width: 34ch; margin: 0; }

.clients{overflow:hidden;background:var(--page,#fff);color:var(--ink,#17191c)}.clients-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:36px}.clients-heading h2{margin:.6rem 0 0;font-size:clamp(2rem,4vw,3.3rem);line-height:1.1}.clients-toggle{flex:none;border:1px solid var(--line,#aaa);border-radius:5px;padding:10px 14px;color:inherit;background:transparent;font:inherit;cursor:pointer}.clients-window{overflow:hidden}.clients-track{display:flex;width:max-content;animation:clients-scroll 55s linear infinite}.clients-list{display:flex;gap:18px;list-style:none;margin:0;padding:0 18px 0 0}.client-logo{display:flex;width:200px;height:120px;background:#fff;align-items:center;justify-content:center;border:1px solid #e7e7e7;border-radius:8px;overflow:hidden}.client-logo img{width:100%;height:100%;object-fit:contain}.client-logo-orazul img{width:100%;height:65%;object-fit:cover}.clients-window:hover .clients-track,.clients-window:focus-within .clients-track{animation-play-state:paused}@keyframes clients-scroll{to{transform:translateX(-50%)}}@media(max-width:600px){.clients-heading{align-items:start;flex-direction:column}.client-logo{width:160px;height:100px}}@media(prefers-reduced-motion:reduce){.clients-window{overflow-x:auto}.clients-track{animation:none}.clients-list[aria-hidden=true],.clients-toggle{display:none}}

.client-logo-costa img{transform:scale(1.8)}

.client-logo-laive img{transform:scale(1.3)}

.impact{background:var(--soft,#f6f6f6);color:var(--ink,#17191c)}.impact h2{font-size:clamp(40px,6vw,78px);line-height:1;letter-spacing:-.045em;margin:18px 0 25px}.impact-intro{color:var(--muted,#556067);font-size:18px;line-height:1.55;margin:0 0 60px;max-width:580px}.impact-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line,#bbb)}.impact-metric{border-left:1px solid var(--line,#bbb);padding:35px 18px 12px 28px}.impact-metric .impact-number{white-space:nowrap;font-size:clamp(34px,5.2vw,72px);line-height:1.1;letter-spacing:-.055em;margin:0;color:var(--ink,#17191c)}.impact-number span{color:var(--accent-text,#dd5b0a);font-size:.48em;vertical-align:15%;letter-spacing:0;margin-right:5px}.impact-metric>p:last-child{font-size:18px;color:var(--muted,#556067);line-height:1.4;margin:24px 0 0;max-width:230px}@media(max-width:760px){.impact-metrics{grid-template-columns:1fr}.impact-metric{padding:24px 0 22px 18px;border-bottom:1px solid var(--line,#bbb)}.impact-metric .impact-number{font-size:clamp(40px,10vw,65px)}.impact-metric>p:last-child{margin-top:8px;max-width:none}.impact-intro{margin-bottom:32px}}

.impact-metric .impact-number{font-size:clamp(46px,6vw,100px);letter-spacing:-.065em;font-weight:800}.impact-metric{padding-left:16px;padding-right:8px}@media(max-width:900px){.impact-metrics{grid-template-columns:1fr}.impact-metric{padding:28px 0 25px 18px;border-bottom:1px solid var(--line,#bbb)}.impact-metric .impact-number{font-size:clamp(58px,12vw,110px)}.impact-metric>p:last-child{margin-top:12px;max-width:none}}@media(max-width:400px){.impact-metric .impact-number{font-size:clamp(42px,11.5vw,58px)}}

.impact-metrics{grid-template-columns:1fr}.impact-metric{display:grid;grid-template-columns:minmax(0,3fr) minmax(180px,1fr);align-items:center;gap:24px;padding:32px 0 32px 22px;border-bottom:1px solid var(--line,#bbb)}.impact-metric .impact-number{font-size:clamp(72px,10vw,160px);line-height:1;letter-spacing:-.07em}.impact-metric>p:last-child{margin:0;max-width:230px;font-size:20px}@media(max-width:900px){.impact-metric{grid-template-columns:1fr;gap:12px}.impact-metric .impact-number{font-size:clamp(56px,12.2vw,120px)}.impact-metric>p:last-child{margin:0;max-width:none}}@media(max-width:400px){.impact-metric .impact-number{font-size:clamp(45px,12vw,56px)}}

/* Contadores: tres columnas en escritorio y cifras por encima de la regla general de párrafos. */
.impact h2{font-size:clamp(30px,3.2vw,44px)}.impact-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.impact-metric{display:block;border-bottom:0;padding:35px 8px 12px 16px}.impact-metric .impact-number{font-size:clamp(38px,5vw,72px) !important;line-height:1.1!important;letter-spacing:-.07em;white-space:nowrap;text-align:left;hyphens:none}.impact-metric>p:last-child{margin:24px 0 0;max-width:230px;text-align:left;hyphens:none}@media(max-width:760px){.impact-metrics{grid-template-columns:1fr}.impact-metric{padding:24px 0 22px 18px;border-bottom:1px solid var(--line,#bbb)}.impact-metric .impact-number{font-size:clamp(44px,11vw,76px)!important}.impact-metric>p:last-child{margin-top:8px;max-width:none}}

/* Cifras de impacto: mayor tamaño y peso ligero, sin alterar los encabezados. */
.impact h2{font-size:clamp(40px,6vw,78px)}.impact-metric .impact-number{font-size:clamp(47px,6.1vw,90px)!important;font-weight:400;letter-spacing:-.06em;transform:scaleX(.8);transform-origin:left center;width:125%}.impact-number strong{font-weight:400}.impact-number span{font-weight:400}@media(max-width:760px){.impact-metric .impact-number{font-size:clamp(56px,14vw,105px)!important}}

.impact-metric .impact-number{font-size:clamp(94px,12.2vw,180px)!important;transform:scaleX(.4);width:250%;transform-origin:left center}@media(max-width:760px){.impact-metric .impact-number{font-size:clamp(100px,22vw,180px)!important;transform:scaleX(.48);width:208%}}

/* Cifras proporcionadas y adaptación al ancho real de cada columna. */
.impact > .container{width:min(1600px,calc(100% - 96px))}.impact-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.impact-metric{container-type:inline-size;min-width:0}.impact-metric .impact-number{font-size:clamp(42px,4.5vw,84px)!important;transform:none;width:auto;letter-spacing:-.055em;line-height:1.15!important}.impact-number strong{font-weight:400}.impact-metric:last-child .impact-number{font-size:clamp(64px,6vw,112px)!important}@supports(font-size:1cqw){.impact-metric .impact-number{font-size:18cqw!important}.impact-metric:last-child .impact-number{font-size:24cqw!important}}@media(max-width:760px){.impact > .container{width:calc(100% - 40px)}.impact-metrics{grid-template-columns:1fr}.impact-metric .impact-number{font-size:clamp(46px,10vw,80px)!important}.impact-metric:last-child .impact-number{font-size:clamp(60px,13vw,105px)!important}}

/* Alineación del tercer indicador y signos uniformes. */
.impact-metric .impact-number span{font-size:clamp(36px,3.1vw,58px);vertical-align:baseline;margin-right:5px}.impact-metric:last-child .impact-number{text-align:center}.impact-metric:last-child>p:last-child{margin-left:auto;margin-right:auto;text-align:center}@media(max-width:760px){.impact-metric:last-child .impact-number,.impact-metric:last-child>p:last-child{text-align:left}.impact-metric:last-child>p:last-child{margin-left:0;margin-right:0}}

/* Cifras grandes: conservar columnas y alinear el tercer indicador. */
.impact-metric .impact-number{font-size:clamp(84px,9vw,168px)!important;transform:scaleX(.5);transform-origin:left center;width:200%}.impact-metric:last-child .impact-number{font-size:clamp(128px,12vw,224px)!important;transform-origin:center center;position:relative;left:-50%}@supports(font-size:1cqw){.impact-metric .impact-number{font-size:36cqw!important}.impact-metric:last-child .impact-number{font-size:48cqw!important}}.impact-metric .impact-number span{font-size:clamp(36px,3.1vw,58px);display:inline-block;transform:scaleX(2)}@media(max-width:760px){.impact-metric .impact-number{font-size:clamp(92px,20vw,160px)!important}.impact-metric:last-child .impact-number{font-size:clamp(120px,26vw,210px)!important;left:0;transform-origin:left center}}

/* Altura uniforme y mayor separación entre cifras. */
.impact-metric .impact-number,.impact-metric:last-child .impact-number{font-size:clamp(78px,6vw,112px)!important;letter-spacing:0;transform:scaleX(.8);transform-origin:left center;width:125%;left:auto}.impact-metric:last-child .impact-number{transform:none;width:auto;text-align:center}.impact-metric .impact-number span{transform:none;font-size:clamp(36px,3.1vw,58px);margin-right:7px}@supports(font-size:1cqw){.impact-metric .impact-number,.impact-metric:last-child .impact-number{font-size:24cqw!important}}@media(max-width:760px){.impact-metric .impact-number,.impact-metric:last-child .impact-number{font-size:clamp(60px,12vw,105px)!important;transform:none;width:auto;text-align:left}}

/* Valores: distribuir introducción, gráfico y detalle en el ancho disponible. */
.institutional-values{padding-block:clamp(50px,6vw,88px)}.values-inner{width:min(1600px,calc(100% - 96px));max-width:none;display:grid;grid-template-columns:minmax(240px,.9fr) minmax(0,2fr);align-items:center;gap:clamp(28px,4vw,70px)}.values-intro{align-self:center}.values-intro p{max-width:390px}.values-layout{grid-template-columns:minmax(300px,1.15fr) minmax(230px,.85fr);gap:clamp(24px,3vw,55px);margin-top:0}.values-graphic{max-width:500px;margin-inline:auto}.values-detail{max-width:440px}.values-detail p{text-align:left;hyphens:none}@media(max-width:1050px){.values-inner{grid-template-columns:1fr;gap:20px}.values-intro{max-width:700px}.values-intro p{max-width:600px}.values-layout{grid-template-columns:minmax(0,1fr) minmax(220px,1fr)}}@media(max-width:700px){.values-inner{width:calc(100% - 40px)}.values-layout{grid-template-columns:1fr;gap:12px}.values-graphic{max-width:380px}.values-detail{margin-top:0;max-width:none}}

.client-logo-cerro-verde img{transform:scale(1.65)}
