  :root {
    --ink: #2b2c30;
    --ink-soft: #55575e;
    --ink-muted: #7c7e85;
    --line: #e2e1dd;
    --bg: #ffffff;
    --bg-alt: #f5f4f1;
    --dark: #26272b;
    --dark-line: #3c3d42;
    --on-dark: #e9e9eb;
    --on-dark-soft: #a9aab0;
    --accent: #1f4b74;
    --radius: 4px;
    --wrap: 1160px;
    --head: "Red Hat Display", system-ui, sans-serif;
    --body: "Open Sans", system-ui, sans-serif;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
  p { margin: 0; }
  .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
  .eyebrow { font: 600 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
  section { padding: 96px 0; }
  .section-head { max-width: 640px; margin-bottom: 48px; }
  .section-head h2 { font-size: clamp(28px, 3.2vw, 36px); margin-top: 14px; }
  .section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 17px; }

  .icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .icon-fill { fill: currentColor; stroke: none; }

  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: var(--radius); font: 600 15px/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
  .btn-primary { background: var(--ink); color: #fff; }
  .btn-primary:hover { background: #000; }
  .btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
  .btn-ghost:hover { border-color: #fff; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  /* Header */
  .site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
  .site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .brand img { height: 30px; width: auto; }
  .brand span { font: 800 19px/1 var(--head); letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
  .nav { display: flex; align-items: center; gap: 32px; }
  .nav a { text-decoration: none; font-size: 15px; color: var(--ink-soft); }
  .nav a:hover { color: var(--ink); }
  .header-actions { display: flex; align-items: center; gap: 16px; }
  .header-actions .btn { padding: 11px 18px; font-size: 14px; }
  .menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font: 600 14px var(--body); color: var(--ink); cursor: pointer; }

  /* Hero */
  .hero { position: relative; padding: 96px 0; color: #fff; background: #1d1e21 url("../img/hero.webp") center 40% / cover no-repeat; }
  .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,23,26,.92) 0%, rgba(22,23,26,.78) 45%, rgba(22,23,26,.55) 100%); }
  .hero .wrap { position: relative; }
  .hero-grid { display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: center; }
  .hero .eyebrow { color: rgba(255,255,255,.7); }
  .hero h1 { font-size: clamp(34px, 4.2vw, 50px); font-weight: 800; letter-spacing: -0.02em; margin-top: 18px; }
  .hero-lead { margin-top: 22px; font-size: 18px; color: rgba(255,255,255,.82); max-width: 520px; }
  .hero-actions { margin-top: 34px; }

  .quote { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; }
  .quote h2 { font-size: 22px; }
  .quote > p { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
  .quote form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; margin-top: 22px; }
  .field { display: flex; flex-direction: column; gap: 6px; }
  .field.full { grid-column: 1 / -1; }
  label { font-size: 13px; font-weight: 600; }
  input, select, textarea { font: 400 15px/1.4 var(--body); color: var(--ink); background: #fff; border: 1px solid #cfcec9; border-radius: var(--radius); padding: 10px 12px; width: 100%; }
  textarea { min-height: 84px; resize: vertical; }
  input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
  .quote .btn { grid-column: 1 / -1; width: 100%; margin-top: 4px; }

  /* Facts */
  .facts { border-bottom: 1px solid var(--line); }
  .facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
  .facts li { padding: 36px 24px 36px 0; font-size: 15px; color: var(--ink-soft); }
  .facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
  .facts strong { display: block; font: 700 16px/1.3 var(--head); color: var(--ink); margin: 16px 0 6px; }
  .facts .icon { width: 32px; height: 32px; }

  /* Animación al hacer scroll */
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
  .reveal .draw * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease; transition-delay: calc(var(--d, 0s) + .2s); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.in .draw * { stroke-dashoffset: 0; }
  @media (prefers-reduced-motion: reduce) {
    .reveal, .reveal .draw * { opacity: 1; transform: none; transition: none; stroke-dashoffset: 0; }
  }

  /* Servicios */
  .services { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
  .service { padding: 40px 48px 44px 0; border-bottom: 1px solid var(--line); }
  .service:nth-child(even) { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line); }
  .service > .icon { width: 36px; height: 36px; }
  .service h3 { font-size: 22px; margin-top: 18px; }
  .service p { margin-top: 12px; color: var(--ink-soft); }
  .service ul { margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; }
  .service li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); }
  .service li:first-child { border-top: 0; }
  .service li .icon { width: 20px; height: 20px; color: var(--ink-muted); }

  /* Operación */
  .alt { background: var(--bg-alt); }
  .ops-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: start; }
  .ops-grid .section-head { margin-bottom: 0; position: sticky; top: 112px; }
  .ops-list { margin: 0; padding: 0; list-style: none; }
  .ops-list li { display: grid; grid-template-columns: 48px 1fr; padding: 28px 0; border-top: 1px solid #d9d8d3; }
  .ops-list li:last-child { border-bottom: 1px solid #d9d8d3; }
  .ops-list .icon { width: 28px; height: 28px; margin-top: 1px; }
  .ops-list h3 { font-size: 19px; }
  .ops-list p { margin-top: 8px; color: var(--ink-soft); }

  /* Cobertura + proceso */
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
  .sub-h { font-size: clamp(28px, 3.2vw, 36px); margin: 14px 0 28px; }
  .zones { columns: 2; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
  .zones li { break-inside: avoid; padding: 12px 0; border-top: 1px solid #d9d8d3; font-weight: 500; }
  .steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
  .steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; border-top: 1px solid #d9d8d3; }
  .steps li::before { content: counter(step, decimal-leading-zero); font: 600 14px/1.6 var(--head); color: var(--ink-muted); }
  .steps strong { display: block; font-family: var(--head); font-size: 17px; }
  .steps span { color: var(--ink-soft); font-size: 15px; }

  /* FAQ */
  .faq { max-width: 820px; }
  .faq details { border-top: 1px solid #d9d8d3; }
  .faq details:last-child { border-bottom: 1px solid #d9d8d3; }
  .faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 600 18px/1.4 var(--head); }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 26px/1 var(--body); color: var(--ink-muted); }
  .faq details[open] summary::after { content: "–"; }
  .faq details p { padding: 0 40px 24px 0; color: var(--ink-soft); }

  /* Contacto */
  .contact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #d9d8d3; }
  .contact-list li { padding: 28px 24px 0 0; }
  .contact-list li + li { padding-left: 24px; border-left: 1px solid #d9d8d3; }
  .contact-list a, .contact-list .item { display: flex; align-items: center; gap: 14px; text-decoration: none; font-size: 16px; }
  .contact-list a:hover span { text-decoration: underline; }
  .contact-list .icon { width: 26px; height: 26px; }

  /* Footer */
  .site-footer { background: var(--dark); color: var(--on-dark-soft); padding: 64px 0 32px; font-size: 15px; }
  .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--dark-line); }
  .footer-logo { width: 220px; height: auto; }
  .site-footer h4 { font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); margin: 0 0 16px; }
  .site-footer ul { list-style: none; margin: 0; padding: 0; }
  .site-footer li { padding: 4px 0; }
  .site-footer a { text-decoration: none; }
  .site-footer a:hover { color: #fff; }
  .footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; }

  @media (max-width: 1040px) {
    .nav { display: none; }
    .menu-toggle { display: inline-block; }
    .nav.open { display: flex; flex-direction: column; align-items: flex-start; gap: 0; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
    .nav.open a { padding: 12px 0; width: 100%; border-top: 1px solid var(--line); }
    .nav.open a:first-child { border-top: 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .quote { max-width: 560px; }
    .contact-list { grid-template-columns: 1fr 1fr; }
    .contact-list li:nth-child(3) { padding-left: 0; border-left: 0; }
    .contact-list li:nth-child(n+3) { margin-top: 28px; }
  }
  @media (max-width: 900px) {
    section { padding: 72px 0; }
    .hero { padding: 56px 0; background-position: 60% center; }
    .hero::before { background: rgba(22,23,26,.82); }
    .ops-grid, .two-col { grid-template-columns: 1fr; gap: 48px; }
    .ops-grid .section-head { position: static; }
    .facts ul { grid-template-columns: 1fr 1fr; }
    .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
    .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .services { grid-template-columns: 1fr; }
    .service, .service:nth-child(even) { padding: 32px 0; border-left: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  }
  @media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .header-actions .btn { display: none; }
    .brand span { font-size: 17px; }
    .quote { padding: 24px 20px; }
    .quote form { grid-template-columns: 1fr; }
    .facts ul, .contact-list { grid-template-columns: 1fr; }
    .facts li, .facts li + li { padding: 24px 0; border-left: 0; }
    .facts li + li { border-top: 1px solid var(--line); }
    .contact-list li, .contact-list li + li { padding: 20px 0; margin-top: 0 !important; border-left: 0; }
    .contact-list li + li { border-top: 1px solid #d9d8d3; }
    .zones { columns: 1; }
  }

  /* Contacto del pie con íconos */
  .footer-contact a { display: flex; align-items: center; gap: 12px; }
  .footer-contact .icon { width: 18px; height: 18px; color: var(--on-dark); }

  /* Página de afiliados */
  .nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .hero-sub { padding: 88px 0; }
  .benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
  .benefits li { padding: 32px 32px 8px 0; }
  .benefits li + li { padding-left: 32px; border-left: 1px solid var(--line); }
  .benefits .icon { width: 30px; height: 30px; }
  .benefits h3 { font-size: 19px; margin-top: 16px; }
  .benefits p { margin-top: 8px; color: var(--ink-soft); }
  .check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 400; color: var(--ink-soft); line-height: 1.5; }
  .check input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
  .field-hint { font-size: 12px; color: #a23b2a; min-height: 0; }
  input[aria-invalid="true"] { border-color: #a23b2a; }
  .form-status { grid-column: 1 / -1; font-size: 14px; padding: 12px 14px; border-radius: var(--radius); display: none; }
  .form-status.ok { display: block; background: #edf5ee; color: #1f5a2c; }
  .form-status.err { display: block; background: #fbeeec; color: #8a2f20; }
  .btn[disabled] { opacity: .6; cursor: wait; }
  input:disabled { background: var(--bg-alt); color: var(--ink-muted); border-color: var(--line); cursor: not-allowed; }
  @media (max-width: 900px) {
    .benefits { grid-template-columns: 1fr; }
    .benefits li, .benefits li + li { padding: 24px 0; border-left: 0; }
    .benefits li + li { border-top: 1px solid var(--line); }
  }