  :root {
    --bg: #ffffff;
    --bg-alt: #f5f6f8;
    --ink: #14171c;
    --ink-soft: #545b66;
    --line: #e3e6eb;
    --accent: #12703a;
    --accent-2: #4a7fdc;
    --accent-soft: #e7f2ea;
    --accent-ink: #ffffff;
    --dark: #0d3d22;
    --radius: 10px;
    --max: 1120px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
  section { padding: 96px 0; }
  .eyebrow {
    font-size: 13px; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
  }
  h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
  h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; }
  .lead { color: var(--ink-soft); font-size: 18px; max-width: 620px; }

  .btn {
    display: inline-block; padding: 14px 26px; border-radius: 999px;
    font-weight: 600; font-size: 15px; transition: transform .15s, background .15s;
    border: 1px solid transparent; cursor: pointer; font-family: inherit;
  }
  .btn-primary { background: var(--accent); color: var(--accent-ink); }
  .btn-primary:hover { background: #0d5a2e; transform: translateY(-1px); }
  .btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
  .btn-ghost:hover { border-color: var(--ink); }

  /* Header */
  header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
  .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
  .logo-mark {
    width: 30px; height: 30px; border-radius: 7px; background: var(--dark);
    display: grid; place-items: center;
  }
  .logo span small { font-weight: 400; color: var(--ink-soft); margin-left: 4px; }
  .nav-links { display: flex; gap: 32px; font-size: 15px; color: var(--ink-soft); }
  .nav-links a:hover { color: var(--ink); }
  .nav .btn { padding: 10px 20px; font-size: 14px; }

  /* Hero */
  .hero { padding: 104px 0 96px; }
  .hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
  .hero h1 { font-size: clamp(36px, 5.4vw, 58px); margin-bottom: 22px; }
  .hero h1 em { font-style: normal; color: var(--accent); }
  .hero .lead { margin-bottom: 34px; }
  .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
  .hero-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 20px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
  .hero-stats strong { display: block; font-size: 24px; white-space: nowrap; }
  .hero-stats span { font-size: 14px; color: var(--ink-soft); }
  .hero-art {
    background: var(--bg-alt); border-radius: 20px; aspect-ratio: 1 / 1;
    display: grid; place-items: center; padding: 32px;
  }
  .hero-art svg { width: 100%; height: auto; max-width: 420px; }

  /* Procesos */
  .alt { background: var(--bg-alt); }
  .section-head { margin-bottom: 56px; }
  .process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .process {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 24px;
  }
  .process .icon {
    width: 44px; height: 44px; border-radius: 10px; background: #e7f2ea;
    display: grid; place-items: center; margin-bottom: 20px;
  }
  .process h3 { font-size: 19px; margin-bottom: 8px; }
  .process p { color: var(--ink-soft); font-size: 15px; }
  .process .temp { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--ink); }

  /* Productos */
  .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .product { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
  .product:hover { border-color: var(--ink); }
  .product .thumb { position: relative; background: var(--bg-alt); height: 170px; display: grid; place-items: center; }
  .product-badge { position: absolute; top: 10px; right: 10px; z-index: 1; background: var(--accent); color: #ffffff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
  .product .thumb svg { height: 110px; width: auto; }
  .product .thumb-photo { display: block; overflow: hidden; background: #eef1ee; padding: 18px; }
  .product .thumb-photo img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
  .product .body { padding: 22px 24px 26px; }
  .product h3 { font-size: 18px; margin-bottom: 6px; }
  .product p { color: var(--ink-soft); font-size: 15px; }
  a.product { display: flex; flex-direction: column; color: inherit; }
  a.product .body { flex: 1; display: flex; flex-direction: column; }
  a.product:hover { border-color: var(--accent); }
  a.product:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
  .product-link { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent-2); }
  a.product:hover .product-link { text-decoration: underline; }
  .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
  .tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); }

  /* Ventajas */
  .why-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
  .why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .why-list h3 { font-size: 17px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
  .why-list h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
  .why-list p { color: var(--ink-soft); font-size: 15px; }

  /* Pasos */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
  .step { padding-top: 22px; border-top: 2px solid var(--ink); }
  .step::before { counter-increment: s; content: "0" counter(s); font-size: 14px; font-weight: 700; color: var(--accent); display: block; margin-bottom: 10px; }
  .step h3 { font-size: 18px; margin-bottom: 6px; }
  .step p { color: var(--ink-soft); font-size: 15px; }

  /* Contacto */
  .contact { background: var(--dark); color: #fff; }
  .contact .lead { color: #a9b0bb; }
  .contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
  .contact-info { margin-top: 36px; display: grid; gap: 14px; font-size: 15px; color: #d4d8de; }
  .contact-info div { display: flex; gap: 12px; align-items: center; }
  form { background: #fff; color: var(--ink); border-radius: 16px; padding: 32px; display: grid; gap: 16px; }
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
  input, select, textarea {
    font: inherit; font-size: 15px; font-weight: 400; color: var(--ink);
    border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; background: #fff; width: 100%;
  }
  input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
  textarea { resize: vertical; min-height: 96px; }
  fieldset { border: 0; }
  legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
  .checks { display: flex; flex-wrap: wrap; gap: 8px; }
  .checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
  .checks input { width: auto; accent-color: var(--accent); }
  form .btn { width: 100%; font-size: 16px; padding: 15px; }
  .form-note { font-size: 13px; color: var(--ink-soft); text-align: center; }
  .form-msg { display: none; font-size: 14px; background: #eaf7ee; color: #1d6b39; padding: 12px 14px; border-radius: 8px; }
  .form-msg.is-error { background: #fdecec; color: #a12a2a; }
  form .btn[disabled] { opacity: .7; cursor: wait; }

  /* Catálogo */
  .cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
  .cat-head > div { min-width: 0; }
  .cat-group { margin-top: 44px; }
  .cat-group:first-of-type { margin-top: 0; }
  .cat-group[id], .fam[id] { scroll-margin-top: 150px; }
  .cat-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 18px; }
  .cat-group-head h3 { font-size: 22px; }
  .cat-group-head span { color: var(--ink-soft); font-size: 14px; }
  .fam-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .fam-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fam { display: flex; flex-direction: column; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
  a.fam:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13,61,34,.10); }
  a.fam:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
  .fam-pic { position: relative; height: 150px; display: grid; place-items: center; background-color: #eef1ee; background-image: linear-gradient(rgba(18,112,58,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(18,112,58,.07) 1px, transparent 1px); background-size: 16px 16px; }
  .fam-pic svg { width: 110px; height: 110px; }
  .fam-code { position: absolute; top: 10px; left: 10px; font: 600 11.5px/1 ui-monospace, Menlo, Consolas, monospace; background: #ffffff; border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; }
  .fam-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
  .fam-body h4 { font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; }
  .fam-body p { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
  .fam-chip { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; margin-top: 4px; }
  .fam-meta { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
  .fam-meta span { color: var(--accent-2); font-weight: 500; }
  .fam-static .fam-meta span { color: var(--ink-soft); font-weight: 400; }
  @media (max-width: 960px) { .fam-grid, .fam-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 620px) { .fam-grid, .fam-grid.three { grid-template-columns: 1fr; } .cat-head .btn { width: 100%; text-align: center; } }
  @media (prefers-reduced-motion: reduce) { .fam { transition: none; } a.fam:hover { transform: none; } }
  /* Volver al inicio */
  section[id] { scroll-margin-top: 110px; }
  .to-top {
    position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 20;
    display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
    background: var(--accent); color: #ffffff; font-size: 14px; font-weight: 600;
    box-shadow: 0 8px 24px rgba(13,61,34,.25); opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .to-top.show { opacity: 1; transform: none; pointer-events: auto; }
  .to-top:hover { background: #0d5a2e; }
  .to-top:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { .to-top { transition: none; } html { scroll-behavior: auto; } }
  /* Páginas de producto */
  [hidden] { display: none !important; }
  .fam-page { padding: 48px 0 96px; min-height: 70vh; }
  .crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-soft); margin-bottom: 28px; }
  .crumbs a { color: var(--accent-2); font-weight: 500; }
  .crumbs a:hover { text-decoration: underline; }
  .crumbs b { color: var(--ink); font-weight: 600; }
  .fp-hero { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 48px; }
  .fp-pic { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 16px; display: grid; place-items: center; background-color: #eef1ee; background-image: linear-gradient(rgba(18,112,58,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(18,112,58,.07) 1px, transparent 1px); background-size: 20px 20px; }
  .fp-pic svg { width: 62%; height: auto; }
  .fp-intro h1 { font-size: clamp(32px, 4.6vw, 48px); margin-bottom: 14px; }
  .fp-intro .lead { margin-bottom: 18px; }
  .fp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
  .fp-chip-alt { color: var(--accent-2); background: #e8effb; }
  .fp-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
  .fp-extra:empty { display: none; }
  .fp-extra { margin-bottom: 48px; }
  .fp-h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 18px; }
  .fp-sizes { display: grid; gap: 16px; }
  .fp-plano { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #ffffff; }
  .fp-plano img { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto; }
  .fp-plano figcaption, .fp-note { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
  .fp-note { background: #eef1ee; border-radius: 8px; padding: 12px 14px; margin: 0; }
  .fp-search { max-width: 420px; }
  .fp-count { font-size: 13px; color: var(--ink-soft); margin-top: -6px; }
  .fp-table { overflow: auto; max-height: 560px; border: 1px solid var(--line); border-radius: 12px; }
  .fp-table table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
  .fp-table th, .fp-table td { padding: 9px 14px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
  .fp-table th { position: sticky; top: 0; background: #eef1ee; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
  .fp-table th small { font-weight: 400; }
  .fp-table th:first-child, .fp-table td:first-child { text-align: left; font-family: ui-monospace, Menlo, Consolas, monospace; }
  .fp-table tbody tr:hover td { background: #f4f8f5; }
  .fp-empty { padding: 16px; color: var(--ink-soft); font-size: 14px; }
  @media (max-width: 760px) { .fp-hero { grid-template-columns: 1fr; gap: 28px; } .fp-pic { max-width: 280px; } .fam-page { padding-top: 32px; } }
  /* Buscador general del catálogo */
  .gsearch { margin: 0 0 44px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 10px 30px rgba(13,61,34,.06); }
  .gsearch > label { font-size: 15px; }
  .gsearch-box { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 14px; background: #ffffff; }
  .gsearch-box:focus-within { border-color: var(--accent); }
  .gsearch-box svg { flex: none; }
  .gsearch-box input { border: 0; padding: 14px 0; font-size: 17px; background: transparent; }
  .gsearch-box input:focus { outline: none; }
  .gsearch-hint { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
  .gres { margin-top: 16px; display: grid; gap: 12px; }
  .gres-count { font-size: 14px; color: var(--ink-soft); }
  .gres-fams { display: flex; flex-wrap: wrap; gap: 8px; }
  .gres-fams a { font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 6px 12px; }
  .gres-fams a:hover { text-decoration: underline; }
  .gres-table td:first-child a { color: var(--accent-2); font-weight: 600; }
  .gres-table td:first-child a:hover { text-decoration: underline; }
  .gres-table td:nth-child(2), .gres-table th:nth-child(2), .gres-table td:nth-child(3), .gres-table th:nth-child(3) { text-align: left; }
  .gres-table td:nth-child(3) { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
  .gres-more { font-size: 13px; color: var(--ink-soft); }
  .gres-none { font-size: 14px; color: var(--ink-soft); }
  .gres-none a { color: var(--accent-2); font-weight: 600; }
  .gres-group { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #f6faf7; }
  .gres-group-link { font-weight: 700; color: var(--accent); }
  .gres-group-link:hover { text-decoration: underline; }
  /* Fotos */
  .logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
  .hero-photo { position: relative; }
  .hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; display: block; }
  .hero-badge {
    position: absolute; left: -28px; bottom: 32px; background: #fff; border-radius: 14px;
    padding: 16px 18px; box-shadow: 0 12px 32px rgba(13,61,34,.18); display: flex; gap: 14px; align-items: center; max-width: 260px;
  }
  .hero-badge img { flex: none; width: 48px; height: 48px; border-radius: 50%; }
  .hero-badge strong { display: block; font-size: 15px; line-height: 1.4; }
  .hero-badge span { font-size: 13px; color: var(--ink-soft); }
  .process { padding: 0; overflow: hidden; }
  .process .photo { width: 100%; height: 160px; object-fit: cover; display: block; }
  .process .content { padding: 24px 22px 26px; }
  .process .temp { color: var(--accent-2); }
  .band {
    padding: 0; position: relative; color: #fff; min-height: 380px; display: flex; align-items: center;
    background: linear-gradient(90deg, rgba(13,61,34,.92) 0%, rgba(13,61,34,.75) 45%, rgba(13,61,34,.15) 100%),
                url("img/torno.jpg") center / cover;
  }
  .band .wrap { padding-top: 80px; padding-bottom: 80px; }
  .band h2 { max-width: 560px; }
  .band p { color: #d7e6dc; max-width: 520px; font-size: 18px; margin-bottom: 28px; }
  .band .btn-primary { background: #fff; color: var(--dark); }
  .why-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; margin-top: 32px; display: block; }
  .btn-primary:hover { background: #0d5a2e; }
  .band .btn-primary:hover { background: #e7f2ea; }
  footer .logo { font-size: 14px; font-weight: 400; }
  footer .logo img { width: 32px; height: 32px; }
  .credits { font-size: 12px; }
  .credits a { text-decoration: underline; }
  @media (max-width: 960px) {
    .hero-photo img { aspect-ratio: 16 / 10; }
    .hero-badge { left: 16px; bottom: 16px; }
  }

  footer { padding: 32px 0; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); }
  footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

  @media (max-width: 960px) {
    .hero-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .product-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
  }
  @media (max-width: 620px) {
    .wrap { padding: 0 16px; }
    section { padding: 72px 0; }
    .hero { padding: 64px 0 72px; }
    .process-grid, .product-grid, .steps, .why-list, .row { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
    .hero-art { aspect-ratio: 4 / 3; }
    form { padding: 24px 20px; }
    .logo span small { display: none; }
  }
