:root {
  --ink: #111317;
  --ink-soft: #282b31;
  --paper: #f4f2ee;
  --white: #fff;
  --muted: #686a70;
  --line: #d9d5cf;
  --red: #97002e;
  --red-dark: #710022;
  --green: #25D366;
  --green-dark: #1EBE5D;
  --blue: #1777ad;
  --radius: 18px;
  --shadow: 0 24px 70px rgb(17 19 23 / 12%);
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 96px 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 12px 16px; color: white; background: var(--red);
  border-radius: 0 0 8px 8px; transition: top .2s ease;
}
.skip-link:focus { top: 0; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgb(244 242 238 / 95%);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgb(17 19 23 / 7%);
  backdrop-filter: blur(14px);
}
.header-inner {
  height: 82px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; height: 70px; object-fit: contain; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a:not(.button) {
  position: relative; color: #303239; font-size: 14px;
  font-weight: 650; text-decoration: none;
}
.site-nav > a:not(.button)::after {
  content: ""; position: absolute; inset: auto 0 -7px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.site-nav > a:not(.button):hover::after { transform: scaleX(1); }

.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle > span:not(.sr-only) {
  display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink);
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border: 1px solid var(--red);
  border-radius: 6px; color: white; background: var(--red);
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--red-dark); }
.button-small { min-height: 42px; padding: 0 18px; font-size: 13px; }
.button-ghost { color: var(--ink); background: transparent; border-color: #b6b1aa; }
.button-ghost:hover { color: white; background: var(--ink); border-color: var(--ink); }

.button-whatsapp {
  background-color: var(--green); border-color: var(--green); color: white;
}
.button-whatsapp:hover {
  background-color: var(--green-dark); border-color: var(--green-dark);
}

.text-link {
  font-weight: 700; font-size: 14px; text-decoration: none;
  border-bottom: 1px solid #a9a59f; padding-bottom: 4px;
}
.text-link span { color: var(--red); margin-left: 4px; }

/* HERO */
.hero {
  position: relative; min-height: 760px; padding: 140px 0 80px; overflow: hidden;
  background: radial-gradient(circle at 82% 30%, rgb(151 0 46 / 7%), transparent 30%), linear-gradient(180deg, #f8f7f4 0%, var(--paper) 100%);
}
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
  color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
}
.eyebrow > span { width: 28px; height: 2px; background: currentColor; }
.hero h1 {
  margin: 0; font-size: clamp(40px, 4.8vw, 68px); line-height: 1.02;
  letter-spacing: -.04em; font-weight: 800;
}
.hero h1 em { color: var(--red); font-style: normal; }
.hero-lead {
  margin: 24px 0 30px; color: #50535a; font-size: 17px; line-height: 1.65;
}
.hero-actions { display: flex; align-items: center; gap: 20px; }
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; padding: 0; list-style: none;
}
.hero-tags li {
  padding: 6px 12px; border: 1px solid #d7d2cb; border-radius: 100px;
  color: #5e6067; font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
}

.hero-visual {
  position: relative; margin: 0; padding: 10px; border: 1px solid #d9d5cf;
  border-radius: 20px; background: #ebe8e3; box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; height: auto; border-radius: 12px; }
.hero-visual figcaption {
  position: absolute; left: 24px; bottom: 24px; display: inline-flex;
  align-items: center; gap: 9px; padding: 10px 14px; border-radius: 4px;
  color: white; background: rgb(17 19 23 / 88%); backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 650;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #43d17c;
  box-shadow: 0 0 0 4px rgb(67 209 124 / 20%);
}
.hero-line {
  position: absolute; inset: auto 0 0; height: 6px;
  background: linear-gradient(90deg, var(--red) 0 24%, var(--ink) 24% 100%);
}

/* CARDS & PRODUCT GRID */
.section-heading {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; margin-bottom: 48px;
}
.section-heading h2 {
  margin: 0; font-size: clamp(34px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -.04em;
}
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 15px; }

.solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.solution-card {
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.solution-card-wide {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr .6fr; min-height: 440px;
}
.solution-image {
  display: flex; align-items: center; justify-content: center; min-height: 300px; overflow: hidden;
}
.solution-image img { width: 100%; height: 100%; object-fit: contain; }

.gravity-gallery { position: relative; overflow: hidden; background: #111820; }
.gravity-slides { position: relative; aspect-ratio: 2 / 1; background: #111820; }
.gravity-slide { position: absolute; inset: 0; margin: 0; }
.gravity-slide[hidden] { display: none; }
.gravity-slide img { width: 100%; height: 100%; object-fit: contain; }
.gravity-slide figcaption {
  position: absolute; left: 16px; bottom: 14px; max-width: calc(100% - 32px);
  padding: 8px 11px; border-radius: 4px; color: #fff; background: rgb(17 19 23 / 85%);
  backdrop-filter: blur(8px); font-size: 11px; font-weight: 700;
}
.gravity-controls {
  display: grid; grid-template-columns: 38px 1fr auto 38px; gap: 10px;
  align-items: center; padding: 10px 12px; color: #fff; background: #111317;
}
.gallery-arrow {
  display: grid; place-items: center; width: 38px; height: 34px; padding: 0;
  border: 1px solid rgb(255 255 255 / 24%); border-radius: 4px; color: #fff; background: transparent;
}
.gallery-dots { display: flex; justify-content: center; gap: 7px; }
.gallery-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 32%);
}
.gallery-dots button.is-active {
  background: var(--red); box-shadow: 0 0 0 3px rgb(151 0 46 / 28%);
}
.gallery-count { color: #d6d7d9; font-size: 11px; font-weight: 750; }

.solution-copy { padding: 30px; }
.solution-card-wide .solution-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px; border-left: 1px solid var(--line);
}
.card-number { margin: 0 0 20px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.solution-copy h3 { margin: 0 0 12px; font-size: 26px; letter-spacing: -.025em; }
.solution-copy > p:not(.card-number) { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0 0; padding: 0; list-style: none; }
.spec-tags li {
  padding: 6px 10px; border-radius: 4px; color: #42444a; background: #eeece7; font-size: 11px; font-weight: 750;
}

/* CAPACIDADES */
.capability-band {
  position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px;
  margin-top: 64px; padding: 48px; border-radius: var(--radius); color: white; background: var(--ink);
}
.eyebrow-light { color: #e9a1b7; }
.capability-intro h3 { margin: 0; font-size: 32px; line-height: 1.15; letter-spacing: -.03em; }
.process-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin: 0; padding: 0; list-style: none;
}
.process-list li { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.process-list span { grid-row: 1 / 3; color: #df809d; font-size: 12px; font-weight: 800; }
.process-list strong { font-size: 15px; }
.process-list small { margin-top: 4px; color: #aaadb4; font-size: 12px; line-height: 1.45; }
.special-solutions {
  grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid #34363c;
}
.special-solutions span { color: #8e9198; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.special-solutions p { margin: 8px 0 0; color: #e5e5e7; font-size: 14px; }

/* NUEVA SECCIÓN: CALCULADOR TÉCNICO INTERACTIVO */
.calc-container {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px;
  background: var(--white); border-radius: var(--radius); padding: 40px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.calc-controls { padding-right: 20px; }
.range-group { margin-bottom: 24px; }
.range-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.range-header label { font-size: 13px; font-weight: 750; color: var(--ink); }
.range-val {
  background: #f0eeea; border: 1px solid #d9d5cf; padding: 4px 10px;
  border-radius: 6px; font-size: 14px; font-weight: 800; color: var(--red);
}
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 4px; background: #e5e2db; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%; background: var(--red);
  cursor: pointer; box-shadow: 0 2px 6px rgb(151 0 46 / 40%); transition: transform .15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range-ticks { display: flex; justify-content: space-between; font-size: 10px; color: #8e9198; margin-top: 5px; }

.calc-summary {
  background: #f8f7f5; border: 1px solid var(--line); border-radius: 12px; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.badge-sanitary {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); background: #fde8ee; padding: 4px 8px; border-radius: 4px;
}
.summary-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.spec-item { background: white; padding: 12px; border-radius: 8px; border: 1px solid #e2ded7; }
.spec-item span { display: block; font-size: 11px; color: #767980; margin-bottom: 2px; }
.spec-item strong { display: block; font-size: 13px; color: var(--ink); }

/* SELECTOR / ORIENTADOR */
.selector-section { background: #e8e5df; }
.selector-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.selector-intro { position: sticky; top: 120px; color: var(--ink); }
.selector-intro > p:not(.eyebrow) { margin: 20px 0 0; color: var(--muted); line-height: 1.7; }
.selector-benefits { margin-top: 36px; display: grid; gap: 16px; }
.selector-benefits > div {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-top: 16px; border-top: 1px solid #cbc6be;
}
.selector-benefits span { color: var(--red); font-size: 11px; font-weight: 800; }
.selector-benefits p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.selector-benefits strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 14px; }

.selector-panel {
  padding: 36px; border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow); color: var(--ink);
}
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { color: #404248; font-size: 12px; font-weight: 750; letter-spacing: .03em; }
.field :is(select,input,textarea) {
  width: 100%; border: 1px solid #d4d0ca; border-radius: 6px;
  color: var(--ink); background: #faf9f7;
}
.field select, .field input { min-height: 48px; padding: 0 14px; }
.field textarea { min-height: 90px; padding: 12px; resize: vertical; }

.recommendation {
  margin: 28px 0 20px; padding: 24px; border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0; background: #f0eeea;
}
.recommendation-label {
  display: flex; align-items: center; gap: 8px; color: var(--red);
  font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase;
}
.recommendation-label span { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.recommendation h3 { margin: 10px 0 6px; font-size: 24px; letter-spacing: -.02em; }
.recommendation p { margin: 0; color: #585a60; font-size: 13px; line-height: 1.6; }
.recommendation ul { margin: 14px 0 0; padding-left: 18px; color: #585a60; font-size: 12px; line-height: 1.65; }

.quote-fields { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-status { min-height: 20px; margin: 14px 0 0; color: #4c4f55; font-size: 12px; font-weight: 600; }

/* FOOTER */
.site-footer { padding: 48px 0; color: #c6c7cb; background: #0b0c0f; }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.footer-lockup { display: flex; align-items: center; gap: 12px; color: white; font-size: 18px; letter-spacing: .15em; }
.footer-lockup img { width: 44px; height: 38px; object-fit: contain; filter: grayscale(1) brightness(7); }
.footer-brand p { margin: 4px 0 0; color: white; font-weight: 700; }
.footer-meta { text-align: right; font-size: 12px; line-height: 1.6; }
.footer-meta p { margin: 3px 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 760px); }
  .section { padding: 76px 0; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute; inset: 82px 18px auto; display: none;
    flex-direction: column; gap: 6px; padding: 18px;
    border: 1px solid var(--line); border-radius: 12px; background: #f8f7f4; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .hero-grid, .section-heading, .selector-layout, .calc-container { grid-template-columns: 1fr; }
  .calc-controls { padding-right: 0; }
  .solution-card-wide { grid-template-columns: 1fr; }
  .solution-card-wide .solution-copy { border-top: 1px solid var(--line); border-left: 0; }
  .capability-band { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 680px) {
  .brand img { height: 58px; }
  .hero { padding: 108px 0 64px; }
  .hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .solution-grid { grid-template-columns: 1fr; }
  .field-row, .summary-specs { grid-template-columns: 1fr; gap: 0; }
  .calc-container { padding: 24px 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}
