.concept-switcher,
.km-home-switcher {
  display: none !important;
}

.km-bundle-hidden {
  display: none !important;
}

.km-skip-link {
  position: fixed;
  z-index: 20000;
  top: .7rem;
  left: .7rem;
  padding: .7rem .9rem;
  border-radius: 4px;
  background: #fff;
  color: #0b385b;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
  transform: translateY(-180%);
}

.km-skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input):focus-visible {
  outline: 3px solid #092f4d !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #fff !important;
}

.km-peru-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  padding: .42rem .7rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.km-peru-badge i {
  display: grid;
  grid-template-columns: repeat(3, .36rem);
  height: .78rem;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
}

.km-peru-badge i b:first-child,
.km-peru-badge i b:last-child {
  background: #d91023;
}

.km-peru-badge i b:nth-child(2) {
  background: #fff;
}

.hero-panel-lead small {
  display: block;
  margin-top: .45rem;
  color: rgba(255, 255, 255, .75);
  font-size: .8rem;
}

.km-material {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, .7fr) !important;
  align-items: center;
}

.km-recycle-mark {
  display: block;
  color: #0f6238;
  font-size: 2.8rem;
  line-height: 1;
}

.km-configurator .section-heading {
  max-width: 760px;
}

.km-editor-grid {
  align-items: start;
}

.km-live-stage {
  position: sticky;
  top: 1.5rem;
}

.km-cone-svg {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
}

.km-live-stage .configuration-summary {
  display: grid;
  gap: .3rem;
}

.km-live-stage .configuration-summary span,
.km-live-stage .configuration-summary small {
  display: block;
}

.km-live-stage .configuration-summary small {
  color: #66778a;
}

.km-color-grid .color-option,
.km-pattern-grid button {
  min-height: 46px;
}

.km-color-grid small,
.km-pattern-grid button span {
  font-size: .875rem !important;
  line-height: 1.25;
}

.km-pattern-grid svg {
  display: block;
  width: 100%;
  height: auto;
}

.km-quantity-label {
  display: block;
  margin: 1.2rem 0 .5rem;
  color: #183b5b;
  font-size: .86rem;
  font-weight: 750;
}

.km-quantity-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.km-quantity-row input {
  width: min(100%, 230px);
  padding: .82rem .9rem;
  border: 1px solid #aebdca;
  border-radius: 4px;
  background: #fff;
  color: #102f4d;
  font: inherit;
}

.km-quantity-row input:focus,
.km-contact input:focus {
  border-color: #17629a;
  outline: 3px solid rgba(23, 98, 154, .18);
  outline-offset: 1px;
}

.km-quantity-row span {
  color: #5e7081;
  font-size: .88rem;
}

.km-color-note {
  margin: .9rem 0 0;
  color: #5a6e80;
  font-size: .78rem;
  line-height: 1.5;
}

.km-configurations-panel {
  margin-top: 3rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid #cfd9e1;
  border-radius: 8px;
  background: #f7fafc;
}

.km-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.km-list-heading h3 {
  margin: .2rem 0 0;
  color: #102f4d;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.km-list-heading > strong {
  flex: 0 0 auto;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: #e2edf5;
  color: #174c75;
  font-size: .82rem;
}

.km-config-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.km-config-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.35rem;
  padding: 1rem;
  border: 1px solid #cbd7e0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(17, 54, 84, .05);
}

.km-card-visual {
  display: grid;
  place-items: center;
  min-height: 215px;
  border-radius: 4px;
  background: #edf2f5;
}

.km-card-visual .km-cone-svg {
  width: 118px;
}

.km-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid #e0e7ed;
}

.km-card-title span {
  color: #102f4d;
  font-weight: 800;
}

.km-card-title code {
  padding: .32rem .48rem;
  border-radius: 3px;
  background: #e9f1f6;
  color: #174c75;
  font-size: .75rem;
  overflow-wrap: anywhere;
}

.km-card-details dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem 1rem;
  margin: .9rem 0;
}

.km-card-details dl div {
  min-width: 0;
}

.km-card-details dt {
  margin-bottom: .12rem;
  color: #6b7b88;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.km-card-details dd {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  color: #183b5b;
  font-size: .86rem;
  font-weight: 650;
}

.km-card-details dd i {
  display: inline-block;
  width: .8rem;
  height: .8rem;
  border: 1px solid rgba(0, 0, 0, .25);
  border-radius: 50%;
}

.km-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.km-card-actions button,
.km-form-status button {
  padding: .42rem .65rem;
  border: 1px solid #b9c8d3;
  border-radius: 3px;
  background: #fff;
  color: #174c75;
  font: inherit;
  font-size: .76rem;
  font-weight: 750;
  cursor: pointer;
}

.km-card-actions button:hover,
.km-card-actions button:focus-visible {
  border-color: #17629a;
  background: #edf5fa;
}

.km-card-actions .danger {
  color: #a1272f;
}

.km-card-actions button {
  min-height: 44px;
}

.km-privacy-page {
  min-height: 100vh;
  background: #f4f7f9;
  color: #173f67;
}

.km-privacy-page main {
  max-width: 850px;
  padding-block: clamp(40px, 7vw, 90px);
}

.km-privacy-page h1 {
  max-width: 800px;
  margin: 18px 0 34px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.km-privacy-page h2 {
  margin: 34px 0 10px;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

.km-privacy-page a {
  color: #174f82;
  font-weight: 700;
}

.km-privacy-provisional {
  margin-top: 38px;
  padding: 18px;
  border-left: 4px solid #c08a23;
  background: #fff7df;
}

.km-empty-configs {
  padding: 1.2rem;
  border: 1px dashed #b8c7d2;
  border-radius: 4px;
  color: #637485;
  text-align: center;
}

.km-empty-configs[hidden] {
  display: none;
}

.km-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.2rem;
}

.km-list-actions .primary {
  margin-left: auto;
}

.km-contact .contact-grid {
  align-items: start;
}

.km-contact form {
  position: relative;
}

.km-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.km-contact label {
  display: grid;
  gap: .4rem;
  color: #183b5b;
  font-size: .8rem;
  font-weight: 750;
}

.km-contact input {
  min-width: 0;
  padding: .82rem .85rem;
  border: 1px solid #afbdc8;
  border-radius: 4px;
  background: #fff;
  color: #102f4d;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.km-form-config-summary {
  display: grid;
  gap: .35rem;
  margin: 1rem 0;
  padding: .9rem;
  border-left: 3px solid #17629a;
  background: #eef4f8;
  color: #3f566a;
  font-size: .8rem;
}

.km-form-config-summary strong {
  color: #173f67;
}

.km-form-config-summary span {
  overflow-wrap: anywhere;
}

.km-privacy-note {
  margin: .75rem 0;
  color: #657786;
  font-size: .74rem;
}

.km-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.km-form-status {
  min-height: 1.5rem;
  margin: .8rem 0 0;
  font-size: .82rem;
  font-weight: 650;
}

.km-form-status.success {
  color: #11633d;
}

.km-form-status.error {
  color: #9c252d;
}

.km-toast {
  position: fixed;
  z-index: 10000;
  right: 1rem;
  bottom: 1rem;
  max-width: min(380px, calc(100vw - 2rem));
  padding: .85rem 1rem;
  border-radius: 5px;
  background: #123c5d;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translateY(.8rem);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.km-toast.error {
  background: #8d2730;
}

.km-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

#km-print-area {
  display: none;
}

footer a {
  color: inherit;
}

/* Portada principal: una sola narrativa, sin bloques redundantes. */
.km-final-home .site-header {
  min-height: 146px;
}

.km-final-home .logo-link {
  width: clamp(300px, 29vw, 360px);
  height: 130px;
}

.km-final-home .logo-link img {
  object-fit: cover;
  object-position: center;
}

.km-final-home .site-header nav {
  gap: clamp(18px, 2.2vw, 30px);
}

.km-final-home .hero {
  grid-template-columns: 1fr !important;
  min-height: clamp(390px, 40vw, 445px);
  background-image: linear-gradient(#153c620c 1px, transparent 1px), linear-gradient(90deg, #153c620c 1px, transparent 1px), linear-gradient(135deg, #fff, #edf3f6);
  background-size: 32px 32px, 32px 32px, auto;
}

.km-final-home .hero-copy {
  grid-area: 1 / 1 !important;
  align-items: flex-start;
  padding: clamp(42px, 5vw, 64px);
}

.km-final-home .hero h1 {
  max-width: 1160px;
  font-size: clamp(3.5rem, 4.9vw, 4.5rem);
  line-height: .98;
}

.km-hero-title > span {
  display: block;
}

.km-peru-lockup {
  display: inline-flex !important;
  align-items: center;
  gap: .6rem;
  white-space: nowrap;
}

.km-final-home .hero-actions {
  margin-top: 28px;
}

.km-peru-flag {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  flex: 0 0 auto;
  width: 52px;
  height: 35px;
  overflow: hidden;
  border: 1px solid #aeb9c2;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 45, 65, .12);
  vertical-align: middle;
}

.km-peru-flag b:first-child,
.km-peru-flag b:last-child {
  background: #d91023;
}

.km-peru-flag b:nth-child(2) {
  background: #fff;
}

.km-origin-line {
  display: inline-flex !important;
  align-items: center;
  gap: .65rem;
  color: #fff !important;
}

.km-final-home .service {
  grid-template-columns: .98fr 1.02fr;
  align-items: start;
  gap: clamp(48px, 6vw, 80px);
  padding-block: clamp(68px, 7vw, 94px);
}

.km-final-home .service-intro > p:last-of-type {
  max-width: 640px;
  margin-bottom: 30px;
  font-size: .95rem;
  line-height: 1.55;
}

.km-process-photo {
  min-height: 340px;
  overflow: hidden;
  background: #e8eef2;
}

.km-process-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.km-final-home .process-list li {
  padding-block: 26px;
}

.km-final-home .km-material {
  width: 100%;
  max-width: none;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  padding: clamp(56px, 5.5vw, 76px) max(24px, calc((100% - var(--max)) / 2));
  background: #edf3f6;
}

.km-final-home .km-material h2 {
  max-width: none;
  font-size: clamp(2rem, 2.6vw, 2.5rem);
}

.km-final-home .km-material h2 > span {
  display: block;
}

.km-final-home .km-recycle-mark {
  padding-top: 0;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
}

.km-final-home .km-configurator {
  padding-block: clamp(46px, 5vw, 72px) clamp(72px, 8vw, 100px);
}

.km-final-home .km-configurator .section-heading {
  grid-template-columns: minmax(500px, .95fr) minmax(0, 1.05fr);
  align-items: end;
  gap: clamp(34px, 4.5vw, 62px);
  max-width: none;
  margin-bottom: 34px;
}

.km-final-home .km-configurator .section-heading .eyebrow {
  margin-bottom: -48px;
}

.km-final-home .km-configurator .section-heading h2 {
  white-space: nowrap;
}

.km-quote-steps {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  counter-reset: quote-step;
  list-style: none;
}

.km-quote-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: .92rem;
  line-height: 1.4;
  counter-increment: quote-step;
}

.km-quote-steps li::before {
  content: counter(quote-step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  color: #cfe1ef;
  font-size: .72rem;
  font-weight: 800;
}

.km-contact form {
  display: block;
}

.km-contact .km-form-row + .km-form-row {
  margin-top: .85rem;
}

.km-copy-consent {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: start;
  gap: .7rem !important;
  margin: 1rem 0 .8rem;
  color: #4f6374 !important;
  font-size: .76rem !important;
  font-weight: 600 !important;
  line-height: 1.45;
}

.km-copy-consent input {
  appearance: auto;
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin-top: 1px;
  padding: 0;
}

.km-contact #km-submit-quote {
  margin-top: .35rem;
}

.km-clients {
  display: block;
  padding-block: clamp(72px, 9vw, 110px);
}

.km-clients h2 {
  max-width: 950px;
}

.km-clients h2 + p {
  max-width: 760px;
  margin-top: 1rem;
  color: #536879;
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (max-width: 800px) {
  .km-final-home .site-header {
    min-height: 94px;
  }

  .km-final-home .logo-link {
    width: clamp(200px, 45vw, 250px);
    height: 92px;
  }

  .km-final-home .km-configurator .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
  }

  .km-final-home .km-configurator .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .km-final-home .km-configurator .section-heading h2 {
    white-space: normal;
  }

  .km-material {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .km-material > p {
    grid-column: 1 / -1;
  }

  .km-live-stage {
    position: static;
  }

  .km-config-card {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: .9rem;
  }

  .km-card-visual {
    min-height: 180px;
  }

  .km-card-visual .km-cone-svg {
    width: 90px;
  }

  .km-card-details dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .km-clients {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1050px) {
  .km-final-home .service {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .km-final-home .km-configurator .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
  }

  .km-final-home .km-configurator .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .km-final-home .km-configurator .section-heading h2 {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .km-final-home .site-header nav {
    display: none;
  }

  .km-final-home .logo-link {
    width: 225px;
    flex: 0 0 225px;
  }

  .km-material {
    grid-template-columns: 1fr !important;
  }

  .km-recycle-mark {
    font-size: 2.5rem;
  }

  .km-list-heading,
  .km-card-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .km-config-card {
    grid-template-columns: 1fr;
  }

  .km-card-visual {
    min-height: 230px;
  }

  .km-card-visual .km-cone-svg {
    width: 125px;
  }

  .km-card-details dl,
  .km-form-row {
    grid-template-columns: 1fr;
  }

  .km-list-actions {
    display: grid;
  }

  .km-list-actions .button,
  .km-list-actions .primary {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .km-peru-flag {
    width: 36px;
    height: 24px;
  }

  .km-final-home .hero {
    min-height: 390px;
  }

  .km-final-home .hero-copy {
    padding: 38px 24px;
  }

  .km-final-home .hero h1 {
    font-size: clamp(2.45rem, 11.8vw, 3.5rem);
    line-height: 1;
  }

  .km-peru-lockup {
    align-items: center;
    gap: .45rem;
  }

  .km-final-home .hero-actions,
  .km-final-home .hero-actions .button {
    width: 100%;
  }

  .km-final-home .km-material {
    grid-template-columns: 1fr !important;
    padding-block: 48px;
  }

  .km-final-home .km-recycle-mark {
    padding-top: 0;
  }

  .km-final-home .km-configurator {
    padding-block: 42px 72px;
  }

  .km-final-home .km-material h2 > span {
    display: inline;
  }
}

/* Fallback para Safari/iOS anteriores a 16.4, que no interpretan range media queries. */
@media (max-width: 1050px) {
  .hero,
  .concept-2 .hero,
  .service,
  .section-heading,
  .config-grid,
  .quality-grid,
  .material,
  .references,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .concept-2 .hero-copy {
    grid-area: 1 / 1;
  }

  .hero-panel,
  .concept-2 .hero-panel {
    grid-area: 2 / 1;
    min-height: 380px;
  }

  .section-heading .eyebrow {
    grid-column: auto;
    margin-bottom: 0;
  }

  .facts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading,
  .service,
  .quality-grid,
  .material,
  .references,
  .contact-grid {
    gap: 38px;
  }
}

@media (max-width: 700px) {
  .section-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .concept-switcher {
    position: static;
    align-items: center;
    padding: 7px 14px;
  }

  .all-demos-link {
    font-size: .62rem;
  }

  .concept-tabs {
    grid-template-columns: repeat(5, 34px);
    gap: 4px;
  }

  .concept-tabs a {
    width: 34px;
    min-height: 34px;
  }

  .site-header {
    min-height: 78px;
  }

  .logo-link {
    width: 180px;
    height: 58px;
  }

  .site-header nav a:not(.nav-cta) {
    display: none;
  }

  .hero-copy {
    padding: 38px 24px;
  }

  .hero {
    min-height: 440px;
  }

  .hero-panel {
    min-height: 330px;
    padding: 34px 24px;
  }

  .facts-grid,
  .concept-5 .hero,
  .client-logos,
  form,
  footer {
    grid-template-columns: 1fr;
  }

  .facts article {
    min-height: 0;
    border-top: 1px solid #ffffff29;
    border-left: 0;
  }

  .service,
  .configurator,
  .quality,
  .material,
  .references,
  .contact {
    padding-block: 72px;
  }

  .config-grid {
    min-height: 0;
  }

  .cone-stage {
    min-height: 570px;
    padding: 25px;
  }

  .controls-panel {
    padding: 28px 20px;
  }

  .color-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pattern-grid {
    grid-template-columns: 1fr 1fr;
  }

  form {
    padding: 24px;
  }

  form label {
    grid-column: 1 / -1;
  }

  footer {
    gap: 8px;
    padding-block: 30px;
  }

  .construction-page {
    padding: 20px 18px;
  }

  .construction-header img {
    width: 180px;
    height: 58px;
  }

  .construction-header span,
  .proposal-action {
    display: none;
  }

  .construction-intro {
    padding-block: 70px 45px;
  }

  .proposal-list > a {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    min-height: 86px;
  }

  .construction-footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .km-toast {
    transition: none;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  body > *:not(#km-print-area) {
    display: none !important;
  }

  #km-print-area {
    display: block !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .km-print-sheet {
    min-height: 267mm;
    break-after: page;
    page-break-after: always;
    color: #132f49;
    font-family: Arial, sans-serif;
  }

  .km-print-sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .km-print-sheet header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8mm;
    border-bottom: 1.5pt solid #173f67;
  }

  .km-print-sheet header img {
    width: 45mm;
    height: auto;
  }

  .km-print-sheet header div {
    display: grid;
    gap: 2mm;
    text-align: right;
  }

  .km-print-sheet header b {
    font-size: 15pt;
  }

  .km-print-sheet header code {
    font-size: 10pt;
  }

  .km-print-body {
    display: grid;
    grid-template-columns: 72mm 1fr;
    gap: 12mm;
    align-items: center;
    padding: 15mm 0;
  }

  .km-print-cone {
    width: 68mm;
    height: auto;
  }

  .km-print-body pre {
    white-space: pre-wrap;
    font: 11pt/1.7 Arial, sans-serif;
  }

  .km-print-sheet footer {
    padding-top: 5mm;
    border-top: 1pt solid #c4d0d9;
    color: #5d6d7a;
    font-size: 8.5pt;
  }
}
