:root {
  --ink: #10171b;
  --muted: #627078;
  --line: #dfe5e8;
  --soft: #f4f7f8;
  --white: #fff;
  --red: #e1241f;
  --red-dark: #bb1713;
  --dark: #101a20;
  --blue: #3b718e;
  --shell: 1180px;
  --shadow: 0 18px 60px rgba(18, 34, 43, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .7em; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(3rem, 6.5vw, 6.6rem); }
h2 { font-size: clamp(2.25rem, 4.3vw, 4.25rem); }
h3 { font-size: 1.65rem; }
p { margin: 0 0 1.1em; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.section { padding: 110px 0; }
.section-soft { background: var(--soft); }
.section-dark { color: var(--white); background: var(--dark); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 7vw, 100px); align-items: center; }
.section-heading { margin-bottom: 56px; }
.section-heading.narrow { max-width: 770px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-heading.light > p:last-child { color: #b7c2c8; }
.eyebrow { margin-bottom: 16px; color: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: #ff6c67; }
.prose { color: #3e4d54; font-size: 1.03rem; }
.prose strong { color: var(--ink); }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-150%); color: #fff; background: var(--red); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header { position: sticky; z-index: 100; top: 0; background: rgba(255,255,255,.96); box-shadow: 0 1px 0 rgba(16,23,27,.08); backdrop-filter: blur(14px); }
.topbar { color: #dce3e6; background: var(--dark); font-size: .75rem; letter-spacing: .06em; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.topbar a { color: #fff; }
.nav-wrap { display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 30px; }
.brand img { width: min(330px, 44vw); }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: .9rem; font-weight: 700; }
.main-nav a { padding: 12px 0; transition: color .2s ease; }
.main-nav a:hover { color: var(--red); }
.main-nav .nav-cta { padding: 11px 18px; color: #fff; background: var(--red); border-radius: 3px; }
.main-nav .nav-cta:hover { color: #fff; background: var(--red-dark); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 9px; border: 0; background: transparent; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.hero { position: relative; min-height: calc(100vh - 112px); display: grid; align-items: center; overflow: hidden; color: #fff; background: #14212a; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media { background: url("assets/09/9_Balancas_Laboratorio-1920x1080-1.webp") center/cover no-repeat; transform: scale(1.01); }
.hero-overlay { background: linear-gradient(90deg, rgba(9,19,25,.93) 0%, rgba(9,19,25,.80) 47%, rgba(9,19,25,.16) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 74px; padding-bottom: 66px; }
.hero h1 { max-width: 900px; }
.hero-lead { max-width: 650px; color: #dce5e9; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 58px; }
.button { display: inline-flex; min-height: 52px; padding: 0 24px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 3px; font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; transition: .2s ease; }
.button.primary { color: #fff; background: var(--red); }
.button.primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.button.ghost { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.04); }
.button.ghost:hover { border-color: #fff; background: rgba(255,255,255,.11); }
.hero-facts { display: flex; width: min(800px, 100%); padding: 0; margin: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.22); }
.hero-facts li { flex: 1; padding: 22px 28px 0 0; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { font-size: 1.15rem; }
.hero-facts span { margin-top: 2px; color: #aebcc3; font-size: .8rem; }

.intro-grid { align-items: start; }
.lead-copy { padding-top: 7px; font-size: 1.12rem; }
.media-card { position: relative; min-height: 530px; overflow: hidden; background: #dfe8eb; box-shadow: var(--shadow); }
.media-card > img { width: 100%; height: 100%; min-height: 530px; object-fit: cover; }
.media-badge { position: absolute; right: 0; bottom: 0; width: 220px; padding: 24px; color: #fff; background: var(--red); }
.media-badge strong, .media-badge span { display: block; }
.media-badge strong { font: 500 2.25rem/1 Georgia, serif; }
.media-badge span { margin-top: 7px; font-size: .78rem; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin-top: 30px; }
.check-grid span { position: relative; padding-left: 22px; font-size: .9rem; font-weight: 700; }
.check-grid span::before { content: ""; position: absolute; top: .62em; left: 0; width: 10px; height: 5px; border-bottom: 2px solid var(--red); border-left: 2px solid var(--red); transform: rotate(-45deg); }

.solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.solution-card { position: relative; min-height: 380px; padding: 48px; overflow: hidden; color: #fff; }
.solution-card.red { background: var(--red); }
.solution-card.dark { background: var(--dark); }
.solution-card .solution-code { position: absolute; top: -42px; right: 22px; font: 200 13rem/1 Arial, sans-serif; opacity: .13; }
.solution-card h3 { font-size: 2.5rem; }
.solution-card p { color: rgba(255,255,255,.82); }
.solution-card ul { padding-left: 20px; margin: 24px 0 0; }
.solution-card li { margin: 8px 0; }
.process { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; padding: 90px 0; }
.process-copy > p:last-child { color: var(--muted); }
.process-steps { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.process-steps li { display: flex; gap: 24px; align-items: center; padding: 19px 0; border-bottom: 1px solid var(--line); }
.process-steps li > span { color: var(--red); font-size: .75rem; font-weight: 800; }
.process-steps strong, .process-steps small { display: block; }
.process-steps small { color: var(--muted); }
.reactrina { padding: 70px; background: var(--soft); }
.feature-list { padding: 0; margin: 30px 0 0; list-style: none; }
.feature-list li { padding: 11px 0 11px 27px; border-bottom: 1px solid var(--line); position: relative; }
.feature-list li::before { content: "+"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.cell-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cell-pair figure { margin: 0; padding: 24px 16px 16px; text-align: center; background: #fff; }
.cell-pair img { width: 100%; height: 300px; object-fit: contain; mix-blend-mode: multiply; }
.cell-pair figcaption strong, .cell-pair figcaption span { display: block; }
.cell-pair figcaption strong { font: 500 1.4rem Georgia, serif; }
.cell-pair figcaption span { color: var(--muted); font-size: .75rem; }

.products-section { background: linear-gradient(145deg, #101a20, #17252d); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.product-card { overflow: hidden; color: var(--ink); background: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.2); }
.product-card.featured { transform: translateY(-14px); }
.product-image { height: 310px; padding: 25px; background: #f3f5f5; }
.product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-body { padding: 32px; }
.product-tier { color: var(--red); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.product-body h3 { margin-top: 7px; font-size: 2.2rem; }
.product-body p { color: var(--muted); font-size: .93rem; }
.product-body ul { padding: 18px 0 0; margin: 20px 0 0; list-style: none; border-top: 1px solid var(--line); }
.product-body li { position: relative; padding: 7px 0 7px 18px; color: #3e4d54; font-size: .82rem; }
.product-body li::before { content: ""; position: absolute; top: 1.05em; left: 0; width: 6px; height: 6px; background: var(--red); }

.application-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.application-grid article { position: relative; min-height: 260px; padding: 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: .22s ease; }
.application-grid article:hover { z-index: 1; color: #fff; background: var(--red); box-shadow: var(--shadow); transform: translateY(-3px); }
.application-grid article > span { color: var(--red); font-size: .72rem; font-weight: 800; }
.application-grid article:hover > span, .application-grid article:hover p { color: rgba(255,255,255,.8); }
.application-grid h3 { margin-top: 25px; font-size: 1.45rem; }
.application-grid p { color: var(--muted); font-size: .87rem; }
.evidence-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; }
.benefit-list { padding: 0; margin: 0; list-style: none; }
.benefit-list li { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding: 22px 0; border-bottom: 1px solid #d6dee1; }
.benefit-list strong { font: 500 1.35rem Georgia, serif; }
.benefit-list span { color: var(--muted); }

.contact-section { color: #fff; background: var(--dark); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 9vw, 120px); }
.contact-grid > div > p { color: #b7c2c8; }
.contact-details { margin-top: 45px; border-top: 1px solid rgba(255,255,255,.17); }
.contact-details > * { display: block; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.contact-details span, .contact-details strong { display: block; }
.contact-details span { color: #8fa0a9; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.contact-details strong { margin-top: 3px; font-weight: 600; }
.contact-form { padding: 42px; color: var(--ink); background: #fff; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form label { display: block; margin-bottom: 18px; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: #fafcfc; font: inherit; font-size: .95rem; text-transform: none; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid rgba(225,36,31,.22); border-color: var(--red); }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: .72rem; }

.site-footer { padding: 65px 0 28px; color: #a9b6bc; background: #0a1115; font-size: .84rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 70px; }
.footer-grid img { width: 300px; max-width: 100%; filter: brightness(0) invert(1); opacity: .9; }
.footer-grid > div { display: flex; flex-direction: column; gap: 7px; }
.footer-grid strong { margin-bottom: 8px; color: #fff; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; margin-top: 50px; border-top: 1px solid rgba(255,255,255,.1); color: #68777e; font-size: .72rem; }

@media (max-width: 980px) {
  .section { padding: 85px 0; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 112px; right: 20px; left: 20px; display: none; padding: 20px; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; }
  .main-nav .nav-cta { text-align: center; }
  .hero { min-height: 760px; }
  .split, .process, .evidence-grid, .contact-grid { grid-template-columns: 1fr; }
  .reactrina { padding: 45px; }
  .product-grid, .application-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 35px; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .section { padding: 68px 0; }
  .topbar-inner span { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .brand img { width: 245px; max-width: 72vw; }
  .hero { min-height: 720px; }
  .hero-overlay { background: rgba(8,18,24,.8); }
  .hero-facts { gap: 16px; flex-wrap: wrap; }
  .hero-facts li { min-width: calc(50% - 8px); }
  .solution-grid, .product-grid, .application-grid, .form-row, .cell-pair, .check-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: 0; padding: 35px 28px; }
  .reactrina { padding: 35px 24px; }
  .cell-pair img { height: 270px; }
  .application-grid article { min-height: 220px; padding: 30px; }
  .benefit-list li { grid-template-columns: 1fr; gap: 5px; }
  .contact-form { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

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