/* Trapos · Lavandería Industrial Colmenar · estilos comunes */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-var.woff") format("woff"); font-weight: 200 800; font-display: swap; }
  :root {
    --bg: #f6f8fa;
    --surface: #ffffff;
    --ink: #14212b;
    --muted: #4a5a66;
    --line: #d9e2ea;
    --accent: #1B2C6B;
    --accent-ink: #ffffff;
    --accent-soft: #e7ebf6;
    --sky: #2F9BD7;
    --pend: #fff3bf;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --radius-lg: 20px;
    --radius-sm: 10px;
    --shadow: 0 12px 32px -12px rgba(27, 44, 107, 0.16);
  }
  *, *::before, *::after { box-sizing: border-box; }
  html {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
  }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
  }
  ::selection { background: var(--accent); color: var(--accent-ink); }
  img, svg { display: block; max-width: 100%; }
  a { color: var(--accent); text-underline-offset: 3px; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
  h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
  h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
  h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
  h3 { font-size: 1.15rem; font-weight: 600; }
  p { margin: 0; text-wrap: pretty; }
  .wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
  .skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 30; }
  .skip:focus { left: 8px; }
  .pend { background: var(--pend); padding: 0 4px; border-radius: 4px; font-weight: 500; }

  /* Aviso de borrador */
  .draft { background: var(--pend); color: #5c4a00; font-size: .875rem; text-align: center; padding: 8px 16px; }

  /* Botones */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 999px;
    font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
    border: 1.5px solid transparent; cursor: pointer;
    touch-action: manipulation; user-select: none; -webkit-user-select: none;
    transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
  }
  .btn:active { transform: scale(0.97); }
  .btn-primary { background: var(--accent); color: var(--accent-ink); }
  .btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
  @media (hover: hover) and (pointer: fine) {
    .btn-primary:hover { background: #13204f; }
    .btn-ghost:hover { border-color: var(--ink); }
    .nav a:hover { color: var(--ink); }
  }

  /* Cabecera: logo completo arriba; barra compacta fija al bajar (js/cabecera.js) */
  header.top {
    position: relative; z-index: 20;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding-top: env(safe-area-inset-top, 0px);
  }
  .top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding-top: 14px; padding-bottom: 14px; }
  .brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
  .brand img { height: 130px; width: auto; }
  footer .foot-logo { height: 34px; width: auto; }
  footer .foot-id { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .nav { display: flex; gap: 28px; }
  .nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color 160ms ease; white-space: nowrap; }
  .top .btn { min-height: 44px; padding: 0 18px; font-size: .95rem; white-space: nowrap; }
  .btn .short { display: none; }
  @media (max-width: 1180px) { .nav { gap: 20px; } }
  @media (max-width: 980px) { .nav { display: none; } .brand img { height: 108px; } }
  @media (max-width: 480px) {
    .brand img { height: 92px; }
    .top .btn .long { display: none; }
    .top .btn .short { display: inline; }
  }
  @media (max-width: 380px) {
    .brand img { height: 78px; }
    .top .btn { padding: 0 14px; font-size: .9rem; }
  }
  header.top-fija {
    position: fixed; top: 0; left: 0; right: 0; z-index: 25;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    box-shadow: 0 8px 24px -16px rgba(27, 44, 107, 0.35);
    transform: translateY(-100%); visibility: hidden;
    transition: transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  header.top-fija.show { transform: none; visibility: visible; transition: transform 220ms var(--ease-out), visibility 0s; }
  header.top-fija .wrap { padding-top: 0; padding-bottom: 0; }
  header.top-fija .brand img { height: 46px; }
  @media (max-width: 480px) { header.top-fija .brand img { height: 38px; } }
  @media (prefers-reduced-motion: reduce) { header.top-fija, header.top-fija.show { transition: none; } }
  [id] { scroll-margin-top: 84px; }

  /* Hero */
  .hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 88px); }
  .hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
  .hero p.lead { margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 56ch; }
  .hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
  .hero-photo {
    aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #dce8f2, #eef3f7 55%, #e2ebf2);
    display: grid; place-items: center; text-align: center; padding: 24px;
    color: var(--muted); font-size: .95rem; box-shadow: var(--shadow);
  }
  @media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-photo { aspect-ratio: 16 / 10; }
  }

  /* Datos de confianza */
  .facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
  .facts ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
  .facts li { padding: 22px 20px; border-left: 1px solid var(--line); }
  .facts li:first-child { border-left: 0; }
  .facts b { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
  .facts span { color: var(--muted); font-size: .92rem; }
  @media (max-width: 860px) {
    .facts ul { grid-template-columns: 1fr 1fr; }
    .facts li:nth-child(3) { border-left: 0; }
    .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  }

  section.block { padding: clamp(64px, 9vw, 112px) 0; }
  .intro { max-width: 60ch; }
  .intro p { margin-top: 14px; color: var(--muted); }

  /* Ciclo: rueda ilustrada con 7 tonos de azul */
  .wheel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 44px; --c: #2F9BD7; }
  .wheel .ring { width: 100%; max-width: 480px; margin: 0 auto; display: block; overflow: visible; }
  .ring .track { fill: none; stroke: var(--line); stroke-width: 3; }
  .ring .seg { fill: none; stroke: var(--c); stroke-width: 7; stroke-linecap: round; opacity: 0; transition: opacity 400ms var(--ease-out); }
  .ring .seg.done { opacity: 1; }
  .ring .node { cursor: pointer; outline: none; }
  .ring .node circle { fill: #fff; stroke: var(--c); stroke-width: 3; transition: fill 250ms var(--ease-out), stroke-width 250ms var(--ease-out); }
  .ring .node use { color: var(--c); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: color 250ms var(--ease-out); }
  .ring .node.on circle { fill: var(--c); stroke-width: 5; }
  .ring .node.on use { color: #fff; }
  .ring .node:focus-visible circle { stroke: var(--ink); stroke-width: 4; }
  .ring .c1 { font-size: 16px; fill: var(--muted); text-anchor: middle; font-weight: 500; }
  .ring .c2 { font-size: 27px; fill: var(--ink); text-anchor: middle; font-weight: 700; letter-spacing: -0.5px; }
  .phases { list-style: none; margin: 0; padding: 0; }
  .phases li + li { margin-top: 18px; }
  .wheel.js .phases li { display: none; margin: 0; }
  .wheel.js .phases li.on { display: block; animation: phaseIn 350ms var(--ease-out); }
  .phases .ph-n { font-size: .9rem; font-weight: 700; color: var(--c); }
  .phases h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 4px 0 8px; }
  .phases p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
  .wheel.js .phases { min-height: 170px; border-left: 5px solid var(--c); padding-left: 22px; transition: border-color 300ms var(--ease-out); }
  .dots { display: none; gap: 8px; margin-top: 24px; }
  .wheel.js .dots { display: flex; }
  .dots button { width: 34px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: var(--c); opacity: .22; cursor: pointer; transition: opacity 250ms, transform 250ms var(--ease-out); }
  .dots button.on { opacity: 1; transform: scaleY(1.25); }
  .dots button { position: relative; }
  .dots button::after { content: ""; position: absolute; inset: -14px -3px; }
  @keyframes phaseIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @media (max-width: 860px) { .wheel { grid-template-columns: 1fr; } .wheel .ring { max-width: 340px; } }
  @media (prefers-reduced-motion: reduce) { .wheel.js .phases li.on { animation: none; } }

  /* Empresa */
  .company { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .company .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
  .year { font-size: clamp(5rem, 14vw, 10rem); font-weight: 800; letter-spacing: -0.04em; line-height: .9; color: var(--accent); font-variant-numeric: tabular-nums; }
  .year small { display: block; font-size: 1rem; letter-spacing: 0; color: var(--muted); font-weight: 600; margin-top: 12px; }
  .company p { color: var(--muted); margin-top: 16px; max-width: 62ch; }
  .company p strong { color: var(--ink); font-weight: 600; }
  @media (max-width: 860px) { .company .wrap { grid-template-columns: 1fr; } }

  /* Sectores */
  .sectors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 44px; }
  .sectors div { background: var(--surface); padding: 28px; }
  .sectors p { color: var(--muted); margin-top: 8px; font-size: .97rem; }
  .sectors .featured { grid-column: 1 / -1; background: var(--accent-soft); }
  .sectors .featured h3 { font-size: 1.35rem; }
  .sectors .featured p { color: var(--ink); max-width: 70ch; }
  .tag { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent); background: var(--surface); border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; }
  @media (min-width: 641px) { .sectors div:last-child { grid-column: 1 / -1; } }
  @media (max-width: 640px) { .sectors { grid-template-columns: 1fr; } }

  /* Particulares */
  /* Medios: flota, maquinaria, doblado, productos */
  .medios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 44px; }
  .medios > div { background: var(--surface); padding: 28px; }
  .medios p { color: var(--muted); margin-top: 8px; font-size: .97rem; }
  .medios .destacado { grid-column: 1 / -1; background: var(--accent-soft); }
  .medios .destacado h3 { font-size: 1.35rem; }
  .medios .destacado p { color: var(--ink); max-width: 75ch; }
  @media (max-width: 860px) { .medios { grid-template-columns: 1fr; } }

  .alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .alt .home-list li { background: var(--bg); }
  .home { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
  .home-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
  .home-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
  .home-list p { color: var(--muted); font-size: .97rem; margin-top: 4px; }
  .home .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
  .home-photo { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: linear-gradient(160deg, #e6eef4, #f1f5f8 55%, #e4ecf2); display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); box-shadow: var(--shadow); }
  @media (max-width: 860px) { .home { grid-template-columns: 1fr; } }

  /* Clientes */
  .logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 36px; }
  .logos div { aspect-ratio: 3 / 2; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--muted); font-size: .8rem; text-align: center; padding: 8px; background: var(--surface); }
  @media (max-width: 860px) { .logos { grid-template-columns: repeat(3, 1fr); } }
  .note { margin-top: 16px; font-size: .9rem; color: var(--muted); }

  /* Contacto */
  .contact { background: var(--ink); color: #eef3f7; }
  .contact .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); }
  .contact h2 { color: #fff; }
  .contact .intro p { color: #b9c7d2; }
  .contact a.mail { color: #fff; font-weight: 600; font-size: 1.1rem; display: inline-block; margin-top: 16px; min-height: 44px; line-height: 44px; }
  .contact .intro a.mail:first-of-type { margin-top: 24px; }
  form { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .field { display: grid; gap: 6px; align-content: start; }
  .field.full { grid-column: 1 / -1; }
  label { font-weight: 600; font-size: .92rem; }
  label .req { color: #b42318; }
  input, select, textarea {
    font: inherit; font-size: 16px; color: var(--ink);
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    padding: 12px 14px; background: #fff; width: 100%;
    transition: border-color 160ms ease;
  }
  input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  textarea { min-height: 110px; resize: vertical; }
  .consent { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .88rem; font-weight: 400; color: var(--muted); }
  .consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
  .error { color: #b42318; font-size: .85rem; min-height: 1em; }
  form .btn { grid-column: 1 / -1; justify-self: start; }
  .sent { grid-column: 1 / -1; background: var(--accent-soft); color: var(--ink); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .95rem; }
  @media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
  @media (max-width: 520px) { form { grid-template-columns: 1fr; } }

  footer { background: var(--ink); color: #b9c7d2; border-top: 1px solid #2a3a47; padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
  footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
  footer a { color: #dfe8ef; }
  footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

  /* Utilidades */
  .sub { color: var(--muted); margin-top: 14px; max-width: 58ch; }
  .error.full { grid-column: 1 / -1; }
  .contact .pend, footer .pend { color: #5c4a00; }
  .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .contact .addr { color: #b9c7d2; margin-top: 22px; }

  /* Fotos */
  .hero-photo.has-img, .home-photo.has-img { position: relative; padding: 0; overflow: hidden; margin: 0; }
  .has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .hero-photo.has-img img { object-position: center 30%; }
  .home-photo.has-img img { object-position: 45% center; }
  .foto-nota { position: absolute; right: 10px; bottom: 8px; font-size: .72rem; color: #fff; background: rgba(20, 33, 43, .55); padding: 2px 8px; border-radius: 6px; }
  /* Campo trampa antispam */
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  button[disabled] { opacity: .6; cursor: progress; }

  /* Menú desplegable de sectores */
  .nav { align-items: center; }
  .drop { position: relative; }
  .drop-t::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
  .drop-m { display: none; position: absolute; top: 100%; left: -16px; z-index: 30; min-width: 270px; padding: 8px; margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
  .drop-m::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .drop:hover .drop-m, .drop:focus-within .drop-m { display: grid; }
  .drop-m a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
  .drop-m a:hover, .drop-m a:focus-visible, .drop-m a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
  @media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--accent); } }

  /* Pie: enlaces a servicios en todas las páginas */
  footer .foot-serv { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid #2a3a47; }
  footer .foot-serv span { color: #b9c7d2; font-weight: 600; }
  footer .foot-serv a { display: inline-flex; align-items: center; min-height: 36px; }
  footer .foot-serv a[aria-current="page"] { color: #fff; font-weight: 600; text-decoration: none; }
