/* =========================================================
   OGA Clean — Estilos principales
   Estilo "química nórdica": papel claro, gris acero, rojo señal,
   líneas finas, códigos de producto y mucho aire.
   ========================================================= */

:root {
  --paper: #f3f3f1;
  --white: #ffffff;
  --ink: #1d2023;
  --steel: #2a2e32;
  --steel-2: #353a3f;
  --grey: #5c6269;
  --grey-2: #8b9197;
  --line: #d8dadb;
  --line-dark: #464b51;
  --red: #c8102e;
  --red-dark: #a00c24;
  --red-soft: #f6e3e6;
  --max: 1240px;
  --radius: 4px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
p { margin: 0; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.red { color: var(--red); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label::before { content: ""; width: 10px; height: 10px; background: var(--red); flex: none; }
.label--light { color: #b9bec3; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  letter-spacing: .01em;
  padding: 16px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: var(--ink); color: #fff; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Logotipo ---------- */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 52px; width: auto; }
.brand__text { display: none; align-items: center; gap: 12px; }
.brand.no-logo img { display: none; }
.brand.no-logo .brand__text { display: inline-flex; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font-weight: 800; font-size: 21px; letter-spacing: .12em; line-height: 1; color: var(--ink); }
.brand__name small { display: block; font-family: var(--mono); font-weight: 500; font-size: 9.5px; letter-spacing: .3em; color: var(--grey); margin-top: 5px; }
.footer .brand__name { color: #fff; }
.footer .brand__name small { color: #9aa0a6; }
.footer .brand img { background: #fff; padding: 8px 12px; border-radius: var(--radius); height: 58px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(243, 243, 241, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .95); }
.header__inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 600; color: var(--grey); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--red); }
.nav .btn { padding: 12px 20px; font-size: 14px; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 0; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 60px; align-items: stretch; }
.hero__text { display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.hero h1 { font-size: clamp(44px, 5.4vw, 78px); margin: 24px 0 26px; }
.hero h1 .red { display: block; }
.hero__lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--grey); max-width: 560px; }
.hero__lead strong { color: var(--ink); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__media { position: relative; min-height: 560px; }
.hero__img, .hero__img.img-slot { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__tag {
  position: absolute; left: -32px; bottom: 36px;
  background: var(--red); color: #fff;
  padding: 22px 26px; border-radius: var(--radius);
  min-width: 250px;
  box-shadow: 0 20px 40px -20px rgba(200, 16, 46, .6);
}
.hero__tag span { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; opacity: .8; display: block; }
.hero__tag strong { display: block; font-size: 22px; line-height: 1.15; margin-top: 6px; letter-spacing: -0.02em; }
.hexes { position: absolute; top: -30px; right: -30px; width: 150px; opacity: .9; z-index: 2; }

.specs {
  margin-top: 70px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec { padding: 26px 24px 26px 0; border-right: 1px solid var(--line); }
.spec + .spec { padding-left: 24px; }
.spec:last-child { border-right: 0; }
.spec__code { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--red); }
.spec strong { display: block; font-size: 17px; margin-top: 6px; letter-spacing: -0.01em; }
.spec p { font-size: 14px; color: var(--grey); margin-top: 4px; }

/* ---------- Secciones ---------- */
.section { padding: 120px 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--steel); color: #e6e8ea; }
.section--dark h2, .section--dark h3 { color: #fff; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 60px; }
.head h2 { font-size: clamp(36px, 4.8vw, 64px); margin-top: 18px; }
.head p { color: var(--grey); font-size: 18px; max-width: 520px; }
.section--dark .head p { color: #aeb3b8; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--white); display: flex; flex-direction: column; transition: background .3s; }
.service:hover { background: #fafafa; }
.service__img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; filter: saturate(.92); }
.service:hover .service__img img { transform: scale(1.05); }
.service__body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service__code { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--red); }
.service h3 { font-size: 25px; }
.service p { color: var(--grey); font-size: 15.5px; }
.service ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 7px; }
.service li { font-size: 14px; font-weight: 600; padding-left: 18px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--red); }

/* ---------- Insumos (estilo hoja técnica) ---------- */
.supplies { display: grid; grid-template-columns: 1fr 1.25fr; gap: 60px; align-items: start; }
.supplies__media { position: sticky; top: 110px; }
.supplies__media .img-slot { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.supplies__media img { width: 100%; height: 100%; object-fit: cover; }
.sheet { border-top: 2px solid #fff; }
.sheet__row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; align-items: start;
  padding: 24px 0; border-bottom: 1px solid var(--line-dark);
}
.sheet__code { font-family: var(--mono); font-size: 13px; color: #ff4d64; letter-spacing: .08em; padding-top: 4px; }
.sheet__row h3 { font-size: 21px; margin-bottom: 6px; letter-spacing: -0.02em; }
.sheet__row p { color: #aeb3b8; font-size: 15px; }
.sheet__tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line-dark); color: #d5d8db; padding: 6px 10px; border-radius: 2px; white-space: nowrap;
}
.supplies__note { margin-top: 30px; color: #aeb3b8; font-size: 15px; }
.supplies__note a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Sectores ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sector {
  border: 1px solid var(--line); background: var(--white);
  padding: 30px; border-radius: var(--radius);
  display: flex; gap: 18px; align-items: flex-start;
  transition: border-color .25s, transform .25s;
}
.sector:hover { border-color: var(--red); transform: translateY(-3px); }
.sector__icon { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--red-soft); display: grid; place-items: center; }
.sector__icon svg { width: 22px; height: 22px; stroke: var(--red); }
.sector h3 { font-size: 19px; margin-bottom: 6px; letter-spacing: -0.02em; }
.sector p { font-size: 14.5px; color: var(--grey); }

/* ---------- Proceso ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.step { padding: 30px 26px 10px 0; position: relative; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--red); letter-spacing: .12em; }
.step h3 { font-size: 23px; margin: 16px 0 10px; }
.step p { font-size: 15px; color: var(--grey); }

/* ---------- Por qué ---------- */
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.why__media { min-height: 520px; position: relative; }
.why__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.why__body { padding: 60px 54px; }
.why__body h2 { font-size: clamp(32px, 3.6vw, 48px); margin: 18px 0 30px; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.why__list li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.why__list li::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.why__list strong { display: block; font-size: 17px; }
.why__list span { font-size: 15px; color: var(--grey); }

/* ---------- CTA ---------- */
.cta { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.cta__inner { display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center; padding: 90px 0; position: relative; z-index: 1; }
.cta h2 { font-size: clamp(34px, 4.4vw, 58px); color: #fff; }
.cta p { font-size: 19px; margin-top: 14px; color: #ffe1e5; max-width: 620px; }
.cta__hex { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 420px; opacity: .14; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; }
.contact h2 { font-size: clamp(36px, 4.6vw, 62px); margin: 18px 0 22px; }
.contact__info > p { color: var(--grey); }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.contact__list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.contact__list .k { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey-2); }
.contact__list a, .contact__list strong { font-size: 20px; font-weight: 700; }
.contact__list a:hover { color: var(--red); }

.form { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 40px; display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.form .btn { justify-self: start; }
.form__status { font-weight: 600; font-size: 15px; min-height: 1em; }
.form__status.ok { color: #1b7a3a; }
.form__status.err { color: var(--red); }
.form__note { font-size: 13px; color: var(--grey-2); }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b9bec3; padding: 60px 0 34px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer__top p { max-width: 360px; font-size: 15px; margin-top: 16px; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a { font-weight: 600; font-size: 15px; color: #d5d8db; }
.footer__links a:hover { color: #ff4d64; }
.footer__bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; font-family: var(--mono); letter-spacing: .06em; }

/* ---------- Espacios de imagen ---------- */
.img-slot { position: relative; background: #e2e3e3; }
.img-slot.is-empty img { opacity: 0; }
.img-slot.is-empty::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey);
  background: repeating-linear-gradient(45deg, #e6e7e7 0 14px, #ececec 14px 28px);
  border: 2px dashed #c3c6c8;
}

/* ---------- Animación ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(2) { border-right: 0; }
  .spec:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
  .spec:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 22px;
    padding: 28px 16px 34px; background: var(--white); border-bottom: 1px solid var(--line);
    transform: translateY(calc(-100% - 90px)); transition: transform .35s ease;
  }
  .nav a:not(.btn) { font-size: 20px; color: var(--ink); }
  .menu-open .nav { transform: none; }
  .menu-toggle { display: block; }
  .header.menu-open { background: var(--white); }

  .hero { padding-top: 120px; }
  .hero__grid, .supplies, .contact, .why, .head, .cta__inner { grid-template-columns: 1fr; }
  .head { gap: 18px; margin-bottom: 44px; }
  .hero__media { min-height: 380px; }
  .hero__tag { left: 16px; bottom: 16px; min-width: 0; }
  .hexes { width: 100px; right: 10px; top: -24px; }
  .supplies__media { position: static; }
  .supplies__media .img-slot { aspect-ratio: 16 / 10; }
  .why__media { min-height: 300px; }
  .why__body { padding: 40px 26px; }
  .section { padding: 90px 0; }
  .cta__inner { padding: 70px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .services, .sectors, .process { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .specs { grid-template-columns: 1fr; }
  .spec, .spec + .spec { padding: 20px 0; border-right: 0; border-top: 1px solid var(--line); }
  .spec:first-child { border-top: 0; }
  .sheet__row { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .sheet__code { grid-column: 1 / 3; }
  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .brand img { height: 36px; }
}
