/* =========================================================
   JPC Motores — estilos
   Paleta: negro carbón + grafito + plata; rojo JPC solo como acento.
   ========================================================= */
:root {
  --red: #C8102E;
  --red-hover: #A60D26;
  --black: #111111;
  --black-2: #0B0B0C;
  --graphite: #2B2E33;
  --graphite-2: #1C1E21;
  --steel: #8C9196;
  --silver: #D9DCDF;
  --bone: #F4F4F1;
  --amber: #F2A900;
  --white: #FFFFFF;
  --line-dark: rgba(217, 220, 223, .12);
  --line-light: rgba(17, 17, 17, .12);

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--silver);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--white); font-family: var(--f-display); line-height: 1.05; }
p { margin: 0; }
strong { color: var(--white); font-weight: 600; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--steel); font-weight: 500; }
.placeholder { color: var(--amber) !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--f-body); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 10px 30px -12px rgba(200, 16, 46, .7); }
.btn-red:hover { background: var(--red-hover); }
.btn-ghost { border-color: rgba(217, 220, 223, .35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--graphite); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-xl { padding: 20px 34px; font-size: 18px; }
.btn-block { width: 100%; }

/* ---------- Tipografía de secciones ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--steel);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800; font-stretch: 112%; letter-spacing: -.02em;
  text-transform: uppercase;
}
.section-head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 820px; }
.section-sub { margin-top: 18px; color: var(--steel); font-size: 17px; max-width: 560px; }

/* Secciones claras */
.light { background: var(--bone); color: #3A3D42; }
.light h2, .light h3, .light h4, .light strong { color: var(--black); }
.light .kicker { color: #5C6166; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensa: nunca ocultar textos divididos */
.no-js .reveal { opacity: 1; transform: none; }
/* En la portada, la aparición es solo CSS (no depende del scroll ni del JS) */
.hero .reveal { transition: none; animation: fadeUp .9s var(--ease) forwards; }
.hero .eyebrow.reveal { animation-delay: .05s; }
.hero .hero-lead.reveal { animation-delay: .45s; }
.hero .hero-meta.reveal { animation-delay: .55s; }
.hero .hero-ctas.reveal { animation-delay: .65s; }
.hero .hero-side.reveal { animation-delay: .8s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(17, 17, 17, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-dark); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 62px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--f-display); font-stretch: 115%; font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .02em; }
.brand-text small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 500; }
.main-nav a:not(.btn) { position: relative; color: var(--silver); transition: color .2s; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:not(.btn):hover { color: var(--white); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--white); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding-top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; overflow: hidden; background: var(--black-2); }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero-glow { position: absolute; width: 60vw; height: 60vw; right: -12vw; top: -10vw; background: radial-gradient(circle, rgba(200, 16, 46, .22), transparent 62%); filter: blur(20px); pointer-events: none; }
.hero-inner { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255, 255, 255, .03); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(200, 16, 46, .25); }
.hero-title { margin: 26px 0 26px; font-size: clamp(52px, 6.6vw, 108px); font-weight: 900; font-stretch: 110%; letter-spacing: -.035em; line-height: .86; text-transform: uppercase; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
/* Animación 100% CSS: el título aparece aunque falle el JS */
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.1s var(--ease) .15s forwards; }
.hero-title .line:first-child > span { color: var(--red); }
.hero-title .line:nth-child(2) > span { animation-delay: .28s; }
@keyframes lineUp { to { transform: none; } }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--silver); max-width: 520px; }
.hero-meta { list-style: none; padding: 0; margin: 26px 0 34px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; color: var(--steel); }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta .ic { color: var(--red); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Foto única de portada: ocupa la mitad derecha y se funde en negro hacia el texto */
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; z-index: 0; pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: grayscale(.55) contrast(1.1) brightness(.78); transform-origin: 60% 50%; animation: heroZoom 14s ease-out forwards; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--black-2) 0%, rgba(11, 11, 12, .92) 18%, rgba(11, 11, 12, .55) 45%, rgba(11, 11, 12, .15) 75%, rgba(11, 11, 12, .25) 100%),
    linear-gradient(0deg, var(--black-2) 0%, transparent 28%),
    linear-gradient(180deg, rgba(11, 11, 12, .7) 0%, transparent 22%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-grid-bg, .hero-glow { z-index: 1; }
.hero-inner, .marquee { z-index: 2; }
.hero-side { align-self: end; display: flex; justify-content: flex-end; }
.hv-badge { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: rgba(17, 17, 17, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-dark); }
.hv-badge-num { display: flex; align-items: center; gap: 4px; font-family: var(--f-display); font-weight: 800; font-size: 30px; color: var(--white); }
.hv-badge-num .ic { color: var(--amber); width: 22px; height: 22px; }
.hv-badge-txt { font-size: 12.5px; line-height: 1.35; color: var(--steel); }

/* Marquee */
.marquee { position: relative; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); overflow: hidden; padding: 18px 0; background: var(--black); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--f-display); font-weight: 700; font-stretch: 112%; text-transform: uppercase; font-size: clamp(18px, 2vw, 24px); color: var(--steel); letter-spacing: .02em; white-space: nowrap; }
.marquee i { width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.h2-sm { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.about-lead { margin-top: 20px; color: var(--steel); font-size: 16.5px; max-width: 420px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why { display: flex; gap: 16px; align-items: flex-start; padding: 22px 20px; border-radius: var(--radius); background: var(--graphite-2); border: 1px solid var(--line-dark); transition: border-color .3s var(--ease), background .3s var(--ease); }
.why:hover { border-color: rgba(217, 220, 223, .25); background: var(--graphite); }
.why-ic { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(200, 16, 46, .12); color: var(--red); }
.why-ic .ic { width: 22px; height: 22px; }
.why h3 { font-family: var(--f-body); font-size: 16px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.why p { font-size: 14.5px; color: var(--steel); line-height: 1.5; }
.stats { margin-top: clamp(60px, 8vw, 100px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.stat { padding: 34px 24px 0 0; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line-dark); padding-left: 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-num { display: flex; align-items: baseline; gap: 6px; font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: clamp(48px, 6vw, 84px); line-height: 1; color: var(--white); letter-spacing: -.03em; }
.stat-num small { font-size: .32em; font-weight: 700; color: var(--steel); letter-spacing: 0; text-transform: uppercase; }
.stat-star { width: .42em; height: .42em; color: var(--red); align-self: flex-start; margin-top: .12em; }
.stat-word { font-size: clamp(32px, 3.6vw, 50px); text-transform: uppercase; line-height: 1.05; min-height: 1.6em; display: flex; align-items: flex-end; }
.stat-label { font-size: 14px; color: var(--steel); line-height: 1.45; }

/* ---------- Servicios ---------- */
.services { background: var(--black-2); border-top: 1px solid var(--line-dark); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { position: relative; background: var(--graphite-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 34px 30px 32px; overflow: hidden; transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease); }
.svc::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.svc:hover { transform: translateY(-6px); border-color: rgba(217, 220, 223, .25); background: var(--graphite); }
.svc:hover::before { transform: scaleX(1); }
.svc-num { position: absolute; top: 26px; right: 28px; font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--steel); letter-spacing: .1em; }
.svc-ic { width: 44px; height: 44px; color: var(--silver); margin-bottom: 30px; }
.svc h3 { font-size: 23px; font-weight: 800; font-stretch: 110%; text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 10px; }
.svc p { color: var(--steel); font-size: 15.5px; }

/* ---------- Catálogo ---------- */
.catalog { padding-bottom: clamp(80px, 10vw, 120px); }
.catalog-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.search { display: flex; align-items: center; gap: 10px; min-width: min(100%, 380px); padding: 0 18px; height: 54px; border-radius: 999px; background: var(--graphite-2); border: 1px solid var(--line-dark); color: var(--steel); transition: border-color .25s; }
.search:focus-within { border-color: var(--red); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--white); font: inherit; font-size: 15px; }
.search input::placeholder { color: var(--steel); }

.cat-nav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(17, 17, 17, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); margin-bottom: 56px; }
.cat-nav-inner { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--steel); border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.cat-nav a:hover { color: var(--white); }
.cat-nav a.is-active { color: var(--white); border-color: rgba(217, 220, 223, .3); background: var(--graphite); }

.cat-block { margin-bottom: clamp(64px, 8vw, 96px); }
.cat-block[hidden] { display: none; }
.cat-title { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.cat-title .ic { width: 30px; height: 30px; color: var(--red); }
.cat-title h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.01em; }
.cat-title h3 .muted { font-family: var(--f-body); font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.cat-count { margin-left: auto; font-size: 13px; color: var(--steel); white-space: nowrap; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product { display: flex; flex-direction: column; background: var(--graphite-2); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease); }
.product:hover { transform: translateY(-6px); border-color: rgba(217, 220, 223, .25); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.product[hidden], .part[hidden] { display: none; }
.product-img { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--graphite); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s var(--ease); filter: saturate(.85) contrast(1.04); }
.product:hover .product-img img { transform: scale(1.06); filter: saturate(1) contrast(1.04); }
.product-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(28, 30, 33, .7)); pointer-events: none; }
.tag { position: absolute; z-index: 1; top: 14px; left: 14px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: rgba(17, 17, 17, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 6px 11px; border-radius: 6px; border: 1px solid var(--line-dark); }
.tag-amber { background: var(--amber); color: var(--black); border-color: transparent; }
.product-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 22px; flex: 1; }
.product-body h4 { font-family: var(--f-body); font-size: 18.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
.product-body p { color: var(--steel); font-size: 15px; flex: 1; margin-bottom: 8px; }

.product { cursor: pointer; }
.product-grid-extra { margin-bottom: 22px; }
.grid-msg { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--steel); border: 1px dashed var(--line-dark); border-radius: var(--radius); }
.grid-msg a { color: var(--white); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.product.is-sold .product-img img { filter: grayscale(1) brightness(.6); }
.sold-badge { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); padding: 8px 20px; border: 2px solid var(--red); color: var(--white); background: rgba(200, 16, 46, .85); font-family: var(--f-display); font-weight: 800; font-stretch: 110%; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; border-radius: 6px; }
.product.is-sold:hover .product-img::before { opacity: 0; }
.product-img::before { content: "Ver detalle"; position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -40%); opacity: 0; padding: 10px 18px; border-radius: 999px; background: rgba(17, 17, 17, .85); border: 1px solid rgba(217, 220, 223, .3); color: var(--white); font-size: 14px; font-weight: 600; transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
.product:hover .product-img::before { opacity: 1; transform: translate(-50%, -50%); }
.app { font-size: 13.5px; color: var(--silver); padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); margin-bottom: 4px; }
.app span { color: var(--steel); font-weight: 600; text-transform: uppercase; font-size: 11.5px; letter-spacing: .08em; margin-right: 4px; }
.btn-detail { padding: 11px 18px; font-size: 14.5px; }
.product-body .btn-red { padding: 12px 18px; }

/* ---------- Ficha de producto ---------- */
.pmodal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pmodal[hidden] { display: none; }
.pmodal-backdrop { position: absolute; inset: 0; background: rgba(5, 5, 6, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: pmFade .3s var(--ease); }
.pmodal-box { position: relative; width: min(1080px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--graphite-2); border: 1px solid var(--line-dark); border-radius: 20px; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9); animation: pmIn .45s var(--ease); }
@keyframes pmFade { from { opacity: 0; } }
@keyframes pmIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.pmodal-media { position: relative; background: #0A0A0B; min-height: 320px; }
.pmodal-media img { width: 100%; height: 100%; max-height: calc(100vh - 48px); object-fit: contain; }
.pmodal-info { padding: 40px 36px 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.pm-cat { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.pm-cat::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--red); vertical-align: middle; margin-right: 10px; }
.pmodal-info h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; font-stretch: 108%; line-height: 1.1; }
.pm-desc { color: var(--silver); font-size: 16.5px; }
.pm-app { padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.pm-label { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); font-weight: 600; margin-bottom: 4px; }
.pm-app p { color: var(--white); font-weight: 600; }
.pm-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pm-specs li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.pm-specs li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(200, 16, 46, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23C8102E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.pm-note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--steel); }
.pm-note .ic { color: var(--red); }
.pm-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-dark); }
.pm-nav button { background: none; border: 0; color: var(--steel); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 0; transition: color .2s; }
.pm-nav button:hover { color: var(--white); }
.pmodal-close { position: absolute; z-index: 3; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(17, 17, 17, .85); border: 1px solid var(--line-dark); color: var(--white); cursor: pointer; transition: background .2s; }
.pmodal-close:hover { background: var(--red); }
.pmodal-close .ic { width: 20px; height: 20px; }
body.modal-open { overflow: hidden; }
@media (max-width: 860px) {
  .pmodal { padding: 0; align-items: stretch; }
  .pmodal-box { grid-template-columns: 1fr; max-height: none; height: 100%; border-radius: 0; overflow-y: auto; display: block; }
  .pmodal-media { height: 52vh; min-height: 0; }
  .pmodal-media img { max-height: none; }
  .pmodal-info { padding: 26px 20px 110px; overflow: visible; }
}

.part-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.part { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 22px 22px; border-radius: var(--radius); background: var(--graphite-2); border: 1px solid var(--line-dark); transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease); }
.part:hover { transform: translateY(-4px); background: var(--graphite); border-color: rgba(217, 220, 223, .25); }
.part-ic { width: 34px; height: 34px; color: var(--silver); margin-bottom: 10px; }
.part h4 { font-family: var(--f-body); font-size: 17px; font-weight: 700; }
.part p { font-size: 14.5px; color: var(--steel); flex: 1; }
.part-cta { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--white); padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(217, 220, 223, .25); transition: background .25s, border-color .25s; }
.part-cta .ic { color: #25D366; }
.part:hover .part-cta, .part-cta:hover { background: var(--red); border-color: var(--red); }
.part:hover .part-cta .ic, .part-cta:hover .ic { color: var(--white); }

.no-results { text-align: center; padding: 30px; color: var(--steel); font-size: 17px; }
.no-results a { color: var(--white); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }

.catalog-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(30px, 4vw, 48px); border-radius: 20px; background: linear-gradient(120deg, var(--graphite) 0%, var(--graphite-2) 60%); border: 1px solid var(--line-dark); position: relative; overflow: hidden; }
.catalog-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 16, 46, .28), transparent 65%); pointer-events: none; }
.catalog-cta h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; font-stretch: 112%; text-transform: uppercase; margin-bottom: 8px; }
.catalog-cta p { color: var(--steel); }
.catalog-cta .btn { position: relative; z-index: 1; }

/* ---------- Reseñas ---------- */
.reviews-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.rating-card { display: flex; align-items: center; gap: 18px; padding: 18px 24px; background: var(--white); border-radius: 16px; border: 1px solid var(--line-light); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.rating-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .35); }
.rating-num { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: 56px; line-height: 1; color: var(--black); }
.rating-side { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: #5C6166; }
.rating-link { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars .ic { width: 18px; height: 18px; }
.stars .half { opacity: .45; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.review { margin: 0; padding: 32px 30px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line-light); display: flex; flex-direction: column; gap: 20px; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.6; color: #2B2E33; }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-light); }
.review figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.review small { font-size: 13px; color: #6B7075; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--black); color: var(--white); font-weight: 700; font-size: 14px; letter-spacing: .04em; flex: none; }

/* ---------- Ubicación ---------- */
.location { padding-top: 0; }
.location-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; padding-top: clamp(60px, 8vw, 100px); border-top: 1px solid var(--line-light); }
.info-list { list-style: none; padding: 0; margin: 36px 0 34px; display: grid; gap: 24px; }
.info-list li { display: flex; gap: 16px; font-size: 16.5px; line-height: 1.55; }
.info-list .ic { width: 26px; height: 26px; color: var(--red); margin-top: 2px; }
.open-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.open-status:empty { display: none; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.is-open { color: #1A8A4A; }
.open-status.is-closed { color: #9A9EA3; }
.map { border-radius: 20px; overflow: hidden; min-height: 420px; border: 1px solid var(--line-light); background: #E3E5E7; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }

/* ---------- Contacto ---------- */
.contact { background: var(--black-2); overflow: hidden; }
.contact::before { content: ""; position: absolute; left: 50%; top: -20%; width: 900px; height: 900px; transform: translateX(-50%); background: radial-gradient(circle, rgba(200, 16, 46, .16), transparent 60%); pointer-events: none; }
.contact-hero { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(56px, 7vw, 88px); }
.contact-title { font-size: clamp(44px, 8.5vw, 120px); font-weight: 900; font-stretch: 118%; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; margin-bottom: 40px; }
.contact-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 26px 22px; border-radius: var(--radius); background: var(--graphite-2); border: 1px solid var(--line-dark); transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s; min-width: 0; }
.contact-card:hover { transform: translateY(-5px); background: var(--graphite); border-color: rgba(217, 220, 223, .25); }
.contact-card .ic { width: 28px; height: 28px; color: var(--silver); margin-bottom: 14px; transition: color .3s; }
.contact-card:hover .ic { color: var(--red); }
.cc-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.cc-value { color: var(--white); font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--line-dark); padding: 56px 0 28px; font-size: 14.5px; color: var(--steel); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { width: 120px; height: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; }
.footer-col h4 { font-family: var(--f-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 13px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px 0 16px; border-radius: 999px; background: #25D366; color: var(--white); font-weight: 600; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .6); transition: transform .3s var(--ease), box-shadow .3s; }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25D366; animation: waPulse 2.6s var(--ease) infinite; pointer-events: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float-label { font-size: 15px; white-space: nowrap; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.25); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 20px; }
  .part-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(17, 17, 17, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 12px var(--gutter) 26px; border-bottom: 1px solid var(--line-dark);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .menu-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .menu-open .site-header { background: rgba(17, 17, 17, .97); }
  .main-nav a:not(.btn) { padding: 15px 0; font-size: 18px; border-bottom: 1px solid var(--line-dark); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 20px; padding: 15px; font-size: 16px; }
  .brand img { width: 52px; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
  .hero-title { font-size: clamp(52px, 13vw, 108px); }
  .hero-photo { width: 100%; }
  .hero-photo img { object-position: 60% 30%; filter: grayscale(.55) contrast(1.1) brightness(.6); }
  .hero-photo::after { background: linear-gradient(180deg, rgba(11, 11, 12, .55) 0%, rgba(11, 11, 12, .72) 40%, rgba(11, 11, 12, .9) 70%, var(--black-2) 100%); }
  .hero-side { justify-content: flex-start; align-self: start; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 16px 28px 0 !important; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line-dark); }
  .stat:nth-child(even) { padding-left: 20px !important; }
  .svc-grid, .product-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand-text small { display: none; }
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero-title { margin: 20px 0; font-size: 15vw; }
  .eyebrow { font-size: 11px; letter-spacing: .1em; padding: 7px 12px; }
  .hero-meta { flex-direction: column; gap: 8px; }
  .hero-ctas .btn { width: 100%; }
  .hv-badge { padding: 10px 14px; }
  .hv-badge-num { font-size: 24px; }
  .svc-grid, .product-grid, .review-grid { grid-template-columns: 1fr; }
  .part-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why-list { grid-template-columns: 1fr; }
  .part { padding: 20px 16px 16px; }
  .part p { font-size: 13.5px; }
  .part-cta { font-size: 13px; padding: 8px 12px; }
  .cat-title { flex-wrap: wrap; }
  .cat-title h3 .muted { display: block; margin-top: 4px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .contact-card:first-child { grid-column: 1 / -1; }
  .btn-xl { width: 100%; padding: 18px 20px; font-size: 17px; }
  .footer-inner { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; height: 58px; width: 58px; padding: 0; justify-content: center; }
  .wa-float-label { display: none; }
  .rating-card { width: 100%; }
  .catalog-cta .btn { width: 100%; }
  .search { width: 100%; }
}

/* Solo lo intrusivo se desactiva con "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 120s; }
  .wa-float::before { animation: none; }
}
