/* imcopartes.com — estilos de las páginas armadas (W1, 29-oct-2026).
   Sale de la maqueta aprobada «Web Imcopartes 2026». Sin React ni Babel:
   el HTML llega completo y este archivo es todo el diseño. */

:root {
  --azul: #145D9E; --azul6: #0F4A7E; --azul1: #D3E4F4; --azul05: #EAF2FA; --azul3: #7FB0DC; --azul9: #082338;
  --tinta: #222221; --t2: #3A3A37; --t3: #5E5E58; --t4: #A3A39C; --borde: #CFCFCA; --linea: #E4E4E0; --s2: #F7F7F6;
  --verde: #1F8A5B; --wa: #25D366;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ancho: 1200px;
}
@media (min-width: 1600px) { :root { --ancho: 1360px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: #fff; color: var(--tinta); font: 500 16px/1.55 var(--font); }
img, video { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--azul3); outline-offset: 2px; }
.in { max-width: var(--ancho); margin: 0 auto; padding: 0 40px; }
.ico { width: 20px; height: 20px; flex: none; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 8px; font: 700 15px var(--font); border: 2px solid transparent; white-space: nowrap; cursor: pointer; }
.btn.sm { height: 40px; padding: 0 14px; font-size: 14px; }
.b1 { background: var(--azul); color: #fff; }
.b1:hover { background: var(--azul6); }
.b2 { border-color: var(--tinta); color: var(--tinta); background: #fff; }
.b2:hover { background: var(--s2); }
.bwa { background: var(--tinta); color: #fff; }
.bwa .ico { color: var(--wa); }
.claro .bwa { background: #fff; color: var(--tinta); }

/* Encabezado */
.hdr { border-bottom: 1px solid var(--linea); background: #fff; position: relative; z-index: 5; }
.hdr .in { display: flex; align-items: center; gap: 28px; height: 76px; }
.hdr .logo { display: block; width: 250px; height: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--t2); white-space: nowrap; }
.nav a { padding: 6px 0; }
.nav a:hover { color: var(--azul); }
.nav a[aria-current="page"] { color: var(--azul); box-shadow: inset 0 -3px 0 var(--azul); }
.menu { display: none; }

/* Portada */
.hero { background: var(--tinta); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% + 90px); right: -600px; background: var(--azul); transform: skewX(-12deg); transform-origin: top; }
.hero .in { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 24px; align-items: end; min-height: 540px; padding-top: 56px; }
.hero .txt { padding-bottom: 56px; display: grid; gap: 18px; justify-items: start; }
.eyeb { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--azul); }
.hero .eyeb, .phead .eyeb { color: var(--azul3); }
.h1 { font-weight: 900; font-size: 60px; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.h1 em { color: var(--azul3); font-style: italic; display: block; }
.lead { color: #CFCFCA; font-size: 18px; max-width: 54ch; }
.fig-part { position: relative; align-self: end; justify-self: center; width: 470px; max-width: 100%; }
.fig-part img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 18px rgb(0 0 0 / .28)); }
.burb { position: absolute; left: -6%; top: 22%; background: #fff; color: var(--tinta); border-radius: 10px 10px 10px 2px; padding: 12px 14px; font-size: 14px; font-weight: 600; max-width: 220px; box-shadow: 0 4px 12px rgb(8 35 56 / .12); }
.burb b { display: block; color: var(--azul); font-weight: 800; }

/* Caja «Pregúntale a Part» */
.busc { background: #fff; color: var(--tinta); border-radius: 10px; padding: 14px; display: grid; gap: 10px; width: 100%; max-width: 600px; box-shadow: 0 4px 12px rgb(8 35 56 / .12); }
.busc label { font-size: 13px; font-weight: 700; color: var(--azul); box-shadow: inset 0 -3px 0 var(--azul); justify-self: start; padding: 0 2px 8px; }
.busc-campos { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.busc input { height: 48px; border: 1px solid var(--borde); border-radius: 6px; padding: 0 12px; font: 600 15px var(--font); color: var(--tinta); min-width: 0; }
.busc input::placeholder { color: var(--t4); font-weight: 500; }

/* Cifras */
.cifras { background: var(--azul); color: #fff; }
.cifras .in { display: flex; }
.cifra { flex: 1 1 auto; padding: 24px 20px; border-left: 1px solid rgb(255 255 255 / .2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; white-space: nowrap; }
.cifra:first-child { border-left: 0; }
.cifra b { display: block; font-size: clamp(28px, 2.9vw, 38px); font-weight: 900; font-style: italic; letter-spacing: -.02em; line-height: 1.05; }
.cifra span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #CFE1F2; }

/* Secciones */
.sec { padding: 64px 0; }
.sec.alt { background: var(--s2); }
.sec-cab { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.h2 { font-size: 36px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.h2 em { color: var(--azul); font-style: italic; font-weight: 900; }
.sub { color: var(--t3); margin-top: 8px; max-width: 60ch; }

/* Líneas de producto */
.lineas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.linea { background: #fff; border: 1px solid var(--linea); border-radius: 10px; padding: 18px; display: grid; gap: 6px; align-content: start; overflow: hidden; }
a.linea:hover { border-color: var(--azul3); }
.linea .ft { display: grid; place-items: center; aspect-ratio: 3 / 2; margin: -18px -18px 4px; background: var(--azul05); border-bottom: 1px solid var(--linea); }
.linea .ft img { width: auto; height: 64%; max-width: 72%; object-fit: contain; }
.linea b { font-size: 16px; line-height: 1.35; min-height: 2.7em; }
.linea small { font-size: 12px; color: var(--t3); }
.linea.todo { background: var(--azul); border-color: var(--azul); color: #fff; align-content: center; }
.linea.todo b, .linea.part b { min-height: 0; }
.linea.todo span { font-size: 12px; color: #CFE1F2; }
.linea.part { background: var(--tinta); border-color: var(--tinta); color: #fff; align-content: center; justify-items: start; }
.linea.part .av { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: block; }
.linea.part span:last-child { font-size: 12px; color: #CFCFCA; }

/* Part con los ojos encendidos: los LED respiran y parpadean.
   Posiciones medidas sobre part-avatar.jpg. */
.vivo { position: relative; display: block; width: 100%; height: 100%; }
.vivo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vivo .ojo { position: absolute; border-radius: 48% 48% 40% 40%; pointer-events: none; }
.vivo .oi { left: 36.6%; top: 44.8%; width: 18.8%; height: 15.4%; }
.vivo .od { left: 67.8%; top: 49.4%; width: 16.6%; height: 15.4%; }
.vivo .ojo::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgb(110 185 255 / .75), rgb(110 185 255 / 0)); mix-blend-mode: screen; opacity: .25; animation: respira 2.6s ease-in-out infinite alternate; }
.vivo .ojo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0B111C; transform: scaleY(0); transform-origin: 50% 0; animation: parpadeo 4.8s infinite; }
.vivo .od::after { animation-delay: .04s; }
@keyframes respira { to { opacity: .8; } }
@keyframes parpadeo { 0%, 90%, 100% { transform: scaleY(0); } 93%, 94% { transform: scaleY(1); } 96.5% { transform: scaleY(0); } 97.5% { transform: scaleY(.85); } 99% { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .vivo .ojo::before, .vivo .ojo::after { animation: none; } }

/* Marcas */
.marcas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.marca { background: #fff; border: 1px solid var(--linea); border-radius: 10px; padding: 16px; display: grid; gap: 8px; align-content: start; }
a.marca:hover { border-color: var(--azul3); }
.marca .lg { height: 84px; background: var(--mb); box-shadow: inset 0 -4px 0 var(--ma); border-radius: 8px; display: grid; place-items: center; padding: 12px 18px 16px; }
.marca .lg img { max-height: 34px; max-width: 150px; width: auto; height: auto; }
.marca span { font-size: 14px; color: var(--t3); }
.marca em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--azul); }

/* Conoce a Part */
.conoce { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.conoce .fig { background: var(--azul05); border-radius: 10px; overflow: hidden; }
.conoce .fig video { width: 100%; height: auto; display: block; cursor: pointer; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; margin: 24px 0 30px; padding: 0; list-style: none; }
.feats li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.feats .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--tinta); color: #fff; display: grid; place-items: center; }
.feats .ic .ico { width: 22px; height: 22px; }
.feats b { display: block; }
.feats span { font-size: 14px; color: var(--t3); }
.canales { display: flex; gap: 10px; flex-wrap: wrap; }

/* Pasos */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.paso { border-top: 4px solid var(--azul); padding-top: 18px; }
.paso .nn { font-size: 48px; font-weight: 900; font-style: italic; color: var(--azul1); line-height: 1; }
.paso b { display: block; font-size: 20px; font-weight: 800; margin: 6px 0; }
.paso span { font-size: 14px; color: var(--t3); }

/* Encabezado de página interna */
.phead { background: var(--tinta); color: #fff; position: relative; overflow: hidden; }
.phead::before { content: ""; position: absolute; top: 0; bottom: 0; left: 82%; right: -600px; background: var(--azul); transform: skewX(-12deg); }
.phead .in { position: relative; padding-top: 48px; padding-bottom: 48px; display: grid; gap: 12px; }
.phead .h1 { font-size: 44px; }

/* Contacto */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.pila { display: grid; gap: 10px; }
.canal { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; border: 1px solid var(--linea); border-radius: 10px; padding: 14px; }
a.canal:hover { border-color: var(--azul3); }
.canal .ic { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: var(--azul05); color: var(--azul); overflow: hidden; }
.canal.prim { border: 2px solid var(--azul); align-items: start; }
.canal b { display: block; }
.canal span { font-size: 14px; color: var(--t3); }
.canal .canales { margin-top: 10px; }
.caja { background: var(--s2); border: 1px solid var(--linea); border-radius: 10px; padding: 18px; display: grid; gap: 6px; }
.caja b { font-size: 16px; }
.caja b + span { margin-top: 0; }
.caja span { font-size: 14px; color: var(--t3); }
.caja b:not(:first-child) { margin-top: 10px; }

/* Pie */
.pie { background: var(--tinta); color: #CFCFCA; font-size: 14px; border-top: 4px solid var(--azul); }
.pie .in.cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 28px; padding-top: 44px; padding-bottom: 28px; }
.pie .logo { width: 250px; height: auto; display: block; margin-bottom: 12px; }
.pie h2 { color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 2px 0 10px; }
.pie p { margin: 0 0 6px; }
.pie a:hover { color: #fff; }
.legal { border-top: 1px solid #3A3A37; font-size: 12px; color: #A3A39C; }
.legal .in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
.legal nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* Botón flotante de Part */
.lanz { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: flex; align-items: center; gap: 10px; }
.lanz .opc { background: #fff; border-radius: 10px; padding: 8px 12px; box-shadow: 0 4px 12px rgb(8 35 56 / .18); font-size: 14px; font-weight: 700; color: var(--tinta); }
.lanz .opc small { display: block; font-size: 12px; font-weight: 600; color: var(--t3); }
.lanz .main { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 4px 12px rgb(8 35 56 / .22); position: relative; flex: none; }
.lanz .main .vivo { border-radius: 50%; overflow: hidden; }
.lanz .main i { position: absolute; right: -1px; bottom: -1px; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--verde); border: 2px solid #fff; }

/* Aviso de cookies */
.cookies { position: fixed; left: 20px; bottom: 20px; z-index: 21; max-width: 560px; background: #fff; border-radius: 10px; box-shadow: 0 6px 20px rgb(8 35 56 / .2); padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--t2); }
.cookies[hidden] { display: none; }
.cookies a { color: var(--azul); text-decoration: underline; }
.cookies .acciones { display: flex; gap: 8px; flex: none; }

/* Barra inferior del celular */
.barra { display: none; }

/* Tableta */
@media (max-width: 1100px) {
  .in { padding: 0 24px; }
  .hdr .in { gap: 18px; }
  .hdr .logo { width: 200px; }
  .nav { gap: 16px; font-size: 14px; }
  .h1 { font-size: 48px; }
  .lineas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .marcas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pie .in.cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hdr .wa-hdr { display: none; }
  .hero .in { grid-template-columns: 1fr; min-height: 0; }
  .hero .txt { padding-bottom: 8px; }
  .fig-part { width: 340px; justify-self: end; }
  .conoce { grid-template-columns: 1fr; gap: 28px; }
  .conoce .fig { max-width: 480px; }
  .g2 { grid-template-columns: 1fr; }
}

/* Celular */
@media (max-width: 760px) {
  body { font-size: 15px; padding-bottom: 64px; }
  .in { padding: 0 16px; }
  .hdr .in { height: 64px; justify-content: space-between; }
  .hdr .logo { width: 190px; }
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary .ico { width: 26px; height: 26px; }
  .menu[open] summary { background: var(--s2); }
  .menu nav { position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--linea); border-radius: 10px; box-shadow: 0 8px 24px rgb(8 35 56 / .16); padding: 6px; display: grid; }
  .menu nav a { padding: 12px 14px; border-radius: 6px; font-weight: 700; color: var(--t2); }
  .menu nav a[aria-current="page"] { color: var(--azul); background: var(--azul05); }
  .hero::before { left: 70%; }
  .hero .in { padding-top: 24px; gap: 0; }
  .hero .txt { gap: 12px; }
  .h1 { font-size: 34px; }
  .lead { font-size: 15px; }
  .fig-part { width: 70%; margin-top: 4px; }
  .burb { left: -38%; top: 10%; max-width: 168px; font-size: 13px; padding: 10px 12px; }
  .busc-campos { grid-template-columns: 1fr; }
  .busc .btn { width: 100%; }
  /* 2×2: cada cifra ocupa dos filas de la grilla (número y etiqueta) con subgrid,
     así los números y las etiquetas de una misma fila quedan alineados. */
  .cifras .in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; }
  .cifra { white-space: normal; display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 4px; justify-items: center; }
  .cifra b { text-wrap: balance; align-self: end; }
  .cifra span { align-self: start; }
  .cifra { padding: 14px 12px; border-left: 0; border-top: 1px solid rgb(255 255 255 / .2); }
  .cifra:nth-child(even) { border-left: 1px solid rgb(255 255 255 / .2); }
  .cifra:nth-child(-n+2) { border-top: 0; }
  .cifra b { font-size: 26px; }
  .cifra span { font-size: 10px; }
  .sec { padding: 32px 0; }
  .sec-cab { display: grid; gap: 14px; align-items: start; justify-items: start; margin-bottom: 16px; }
  .h2 { font-size: 24px; }
  .sub { font-size: 14px; }
  .lineas, .marcas { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -16px; padding: 0 16px 4px 0; scrollbar-width: none; }
  .lineas::-webkit-scrollbar, .marcas::-webkit-scrollbar { display: none; }
  .linea { flex: 0 0 140px; padding: 12px; scroll-snap-align: start; }
  .linea .ft { margin: -12px -12px 6px; }
  .linea b { font-size: 13px; }
  .linea small { font-size: 11px; }
  .marca { flex: 0 0 220px; scroll-snap-align: start; }
  .feats { grid-template-columns: 1fr; gap: 14px; margin: 14px 0 18px; }
  .canales .btn { flex: 1; padding: 0 12px; }
  .pasos { grid-template-columns: 1fr; }
  .paso .nn { font-size: 34px; }
  .paso b { font-size: 17px; }
  .phead::before { left: 78%; }
  .phead .in { padding-top: 26px; padding-bottom: 26px; }
  .phead .h1 { font-size: 30px; }
  .pie .in.cols { grid-template-columns: 1fr; gap: 18px; padding-top: 28px; }
  .pie .logo { width: 190px; }
  .lanz { display: none; }
  .cookies { left: 10px; right: 10px; bottom: 74px; flex-wrap: wrap; }
  .barra { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: 64px; padding-bottom: env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid var(--linea); font-size: 11px; font-weight: 700; color: var(--t3); }
  .barra a { display: grid; place-items: center; align-content: center; gap: 2px; }
  .barra a[aria-current="page"] { color: var(--azul); }
  .barra .ico { width: 22px; height: 22px; }
  .barra .av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: block; }
}

/* W1b: Cómo comprar, Distribuidores, Part y Nosotros */
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.caja.blanca { background: #fff; align-content: start; }
.pila-sec { display: grid; gap: 40px; }
.h2.chico { font-size: 26px; margin-bottom: 14px; }
.tiempos { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--linea); border-radius: 10px; overflow: hidden; }
.tiempos div { padding: 16px; border-left: 1px solid var(--linea); display: grid; gap: 4px; }
.tiempos div:first-child { border-left: 0; }
.tiempos b { font-size: 22px; font-weight: 900; font-style: italic; color: var(--azul); }
.tiempos span { font-size: 14px; color: var(--t3); }
.faq { border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-weight: 600; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 18px; height: 18px; color: var(--azul); transition: transform .15s; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; font-size: 14px; color: var(--t2); max-width: 64ch; }
.hero.corto .in { min-height: 420px; }
.hero.corto .h1 { font-size: 48px; }
.hero.corto .fig-part { width: 360px; }
.hero .canales .b2 { background: transparent; color: #fff; border-color: #A3A39C; }
.fig-nos { background: var(--azul05); border-radius: 10px; display: grid; place-items: end center; padding-top: 24px; max-height: 360px; overflow: hidden; }
.fig-nos img { width: 46%; height: auto; display: block; }
.pide { background: var(--s2); border-radius: 10px; padding: 22px; display: grid; gap: 12px; align-content: start; }
.pide h2 { font-size: 20px; font-weight: 800; }
.pide input[type=text], .pide input[type=tel], .pide select { height: 48px; width: 100%; border: 1px solid var(--borde); border-radius: 6px; background: #fff; padding: 0 12px; font: 600 15px var(--font); color: var(--tinta); }
.pide input::placeholder { color: var(--t4); font-weight: 500; }
.pide select:invalid { color: var(--t4); font-weight: 500; }
.pide .chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--t2); }
.pide .chk input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--azul); }
.pide .chk a { color: var(--azul); text-decoration: underline; }
.pide .priv { font-size: 12px; line-height: 1.45; color: var(--t3); }
.pide .btn { justify-self: start; }
@media (max-width: 900px) {
  .g3 { grid-template-columns: 1fr; }
  .hero.corto .fig-part { width: 280px; }
}
@media (max-width: 760px) {
  .pila-sec { gap: 28px; }
  .h2.chico { font-size: 21px; }
  .tiempos { grid-template-columns: 1fr; }
  .tiempos div { border-left: 0; border-top: 1px solid var(--linea); padding: 12px 14px; }
  .tiempos div:first-child { border-top: 0; }
  .tiempos b { font-size: 18px; }
  .hero.corto .in { min-height: 0; }
  .hero.corto .h1 { font-size: 32px; }
  .hero.corto .fig-part { width: 62%; }
  .fig-nos img { width: 52%; }
  .pide { padding: 16px; }
  .pide .btn { justify-self: stretch; }
}
