/* ==========================================================
   INOXPRO — Servicios generales en acero inoxidable
   Paleta tomada del logo: azul royal, azul marino, acero.
   ========================================================== */
:root {
  --navy: #070cb0;
  --navy-deep: #0a1468;
  --blue: #276ceb;
  --blue-soft: #e9f0fe;
  --blue-mist: #f4f7fe;
  --steel: #c1cccd;
  --steel-2: #e7ebee;
  --ink: #0c1530;
  --text: #3d4762;
  --muted: #7a839a;
  --white: #ffffff;
  --line: #e6eaf2;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 10px rgba(12, 21, 48, .06);
  --shadow: 0 18px 50px -18px rgba(12, 32, 110, .25);
  --shadow-lg: 0 40px 90px -30px rgba(7, 12, 176, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --wrap: 1240px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(40px, 4.5vw, 64px) 0; position: relative; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--white);
  display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader img { width: 92px; animation: loaderPulse 1.2s var(--ease) infinite alternate; }
.loader-bar { width: 140px; height: 3px; border-radius: 3px; background: var(--steel-2); overflow: hidden; position: relative; }
.loader-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, var(--navy), var(--blue)); animation: loaderBar 1s var(--ease) infinite; }
body.is-loaded .loader { opacity: 0; visibility: hidden; }
@keyframes loaderPulse { from { transform: scale(.94); opacity: .7; } to { transform: scale(1); opacity: 1; } }
@keyframes loaderBar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--navy), var(--blue), #7fb0ff); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: .01em;
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; box-shadow: 0 12px 30px -10px rgba(39,108,235,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(39,108,235,.8); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--navy); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(0,0,0,.35); }
.btn-outline-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 1.5px #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.link-btn { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; margin-top: 10px; }
.link-btn:hover { color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, height .4s var(--ease), transform .5s var(--ease);
}
.site-header.is-scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); height: 66px; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 34px; width: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: scale(1.03); }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink); position: relative; transition: color .3s, background .3s; }
.nav a:hover { color: var(--navy); background: var(--blue-soft); }
.nav a.is-active { color: var(--navy); }
.nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); transform: translateX(-50%); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.quote-toggle { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .3s, transform .3s var(--ease); }
.quote-toggle:hover { box-shadow: inset 0 0 0 1.5px var(--blue); transform: translateY(-1px); }
.quote-toggle svg { width: 21px; height: 21px; }
.quote-count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; transform: scale(0); transition: transform .4s var(--ease); }
.quote-count.has-items { transform: scale(1); }
.quote-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 40px) 0 80px; display: flex; align-items: center; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
  opacity: .7;
}
.hero::after { content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -20vw; border-radius: 50%; background: radial-gradient(circle, rgba(39,108,235,.16), transparent 65%); z-index: -1; filter: blur(10px); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--navy); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 26px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(39,108,235,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(39,108,235,0); } 100% { box-shadow: 0 0 0 0 rgba(39,108,235,0); } }
.hero-title { font-size: clamp(38px, 4.9vw, 70px); font-weight: 800; font-stretch: 104%; line-height: .98; letter-spacing: -.035em; margin-bottom: 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
body.is-loaded .hero-title .line > span { transform: none; }
body.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: .1s; }
body.is-loaded .hero-title .line:nth-child(3) > span { transition-delay: .2s; }
.hero-title em { font-style: italic; color: var(--blue); }
.shine {
  background: linear-gradient(100deg, var(--navy) 0%, var(--blue) 35%, #b9d2ff 50%, var(--blue) 65%, var(--navy) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
  animation: shine 4.5s linear infinite;
  padding-right: .08em;
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.hero-lead { font-size: clamp(17px, 1.5vw, 19px); max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags li { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .06em; padding: 6px 14px; border-radius: 8px; color: var(--muted); background: linear-gradient(180deg, #fff, var(--steel-2)); box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 #fff; }

.hero-visual { position: relative; aspect-ratio: 1 / 1.02; }
.hero-photo {
  position: absolute; inset: 4% 0 6% 10%; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow-lg);
  clip-path: inset(0 0 100% 0 round 34px); transition: clip-path 1.4s var(--ease) .25s;
}
body.is-loaded .hero-photo { clip-path: inset(0 0 0 0 round 34px); }
.hero-photo img { width: 100%; height: 115%; object-fit: cover; object-position: 30% center; transform: scale(1.15); transition: transform 2s var(--ease) .25s; }
body.is-loaded .hero-photo img { transform: scale(1); }
.photo-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-100%); animation: sweep 6s var(--ease) 2s infinite; pointer-events: none; }
@keyframes sweep { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.float-card {
  position: absolute; margin: 0; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 20px; padding: 12px 18px 12px 12px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.9);
  opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease);
}
body.is-loaded .float-card { opacity: 1; transform: none; }
.float-card img { width: 72px; height: 64px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.15)); }
.float-card figcaption { display: grid; line-height: 1.25; }
.float-card strong { font-family: var(--display); color: var(--ink); font-size: 15px; }
.float-card span { font-size: 13px; color: var(--muted); }
.fc-1 { left: -2%; bottom: 14%; transition-delay: .9s; }
.fc-2 { right: -3%; top: 12%; transition-delay: 1.1s; }
.float-card.floating { animation: floaty 6s ease-in-out infinite; }
.fc-2.floating { animation-delay: -3s; }
@keyframes floaty { 50% { translate: 0 -12px; } }
.hero-badge { position: absolute; left: 1%; top: 2%; width: 128px; height: 128px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; }
.hero-badge svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.hero-badge text { font-family: var(--display); font-weight: 700; font-size: 9.6px; letter-spacing: .1em; fill: var(--navy); }
.hero-badge img { width: 50px; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--steel); transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy); color: #fff; overflow: hidden; padding: 20px 0; transform: rotate(-1.4deg) scale(1.03); margin: -10px 0 0; position: relative; z-index: 2; box-shadow: 0 20px 40px -20px rgba(7,12,176,.5); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: clamp(18px, 2.2vw, 26px); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.85); }
.marquee i { width: 12px; height: 12px; background: var(--blue); transform: rotate(45deg); flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Encabezados de sección ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; font-stretch: 108%; margin-bottom: 22px; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-sub { font-size: 17px; max-width: 560px; }
.section-head.light .h2, .section-head.light .kicker { color: #fff; }
.section-head.light .kicker { color: #9cc0ff; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about-media { position: relative; }
.about-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.about-photo img { width: 100%; height: 112%; object-fit: cover; }
.about-stamp { position: absolute; right: -24px; bottom: 40px; background: #fff; border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; }
.about-stamp strong { font-family: var(--display); font-size: 44px; font-weight: 900; font-stretch: 120%; color: var(--navy); line-height: 1; }
.about-stamp span { font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--text); }
.about-copy > p { font-size: 17px; }
.pillars { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.pillars li { display: flex; gap: 18px; padding: 20px; border-radius: var(--radius-sm); background: var(--blue-mist); border: 1px solid transparent; transition: border-color .35s, background .35s, transform .45s var(--ease); }
.pillars li:hover { background: #fff; border-color: var(--line); transform: translateX(6px); box-shadow: var(--shadow-sm); }
.pillar-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; }
.pillar-ico svg { width: 24px; height: 24px; }
.pillars h3 { font-size: 18px; margin-bottom: 4px; }
.pillars p { margin: 0; font-size: 15px; }

/* ---------- Sectores ---------- */
.sectors { background: linear-gradient(180deg, var(--blue-mist), #fff); }
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sector {
  position: relative; padding: 34px 28px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: box-shadow .5s var(--ease), border-color .4s; transform-style: preserve-3d; overflow: hidden;
}
.sector::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(39,108,235,.12), transparent 45%); opacity: 0; transition: opacity .4s; }
.sector:hover::before { opacity: 1; }
.sector:hover { box-shadow: var(--shadow); border-color: rgba(39,108,235,.35); }
.sector svg { width: 48px; height: 48px; color: var(--blue); margin-bottom: 26px; transition: transform .6s var(--ease); }
.sector:hover svg { transform: translateY(-4px) rotate(-6deg); }
.sector-num { position: absolute; right: 22px; top: 18px; font-family: var(--display); font-weight: 900; font-size: 46px; font-stretch: 120%; color: transparent; -webkit-text-stroke: 1.2px var(--steel); }
.sector h3 { font-size: 20px; margin-bottom: 10px; }
.sector p { font-size: 15px; margin: 0; }

/* ---------- Catálogo ---------- */
.catalog-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 30px; }
.search { position: relative; display: flex; align-items: center; flex: 0 1 320px; }
.search svg { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding: 15px 18px 15px 48px; border-radius: 999px; border: 1.5px solid var(--line); font: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .3s, box-shadow .3s; }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(39,108,235,.12); }
.filters { position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--blue-mist); border: 1px solid var(--line); margin-bottom: 40px; }
.filter { position: relative; z-index: 1; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text); transition: color .35s; display: inline-flex; gap: 6px; align-items: center; }
.filter small { font-size: 11px; font-weight: 800; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: rgba(12,21,48,.07); transition: background .35s; }
.filter:hover { color: var(--navy); }
.filter.is-active { color: #fff; }
.filter.is-active small { background: rgba(255,255,255,.22); }
.filter-pill { position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); border-radius: 999px; background: linear-gradient(135deg, var(--blue), var(--navy)); box-shadow: 0 8px 20px -8px rgba(39,108,235,.8); transition: transform .55s var(--ease), width .55s var(--ease); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product {
  --rx: 0deg; --ry: 0deg;
  position: relative; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: box-shadow .5s var(--ease), border-color .4s, transform .5s var(--ease), opacity .5s var(--ease);
  animation: cardIn .7s var(--ease) backwards;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.product:hover { box-shadow: var(--shadow); border-color: rgba(39,108,235,.3); }
.product:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.product-media { position: relative; aspect-ratio: 1 / .9; display: grid; place-items: center; padding: 26px; background: radial-gradient(circle at 50% 60%, #fff 0%, var(--blue-mist) 70%); overflow: hidden; }
.product-media::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 12%; height: 14px; border-radius: 50%; background: radial-gradient(ellipse, rgba(12,21,48,.18), transparent 70%); transition: transform .6s var(--ease), opacity .6s; }
.product-media img { position: relative; z-index: 1; max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(12,21,48,.18)); transition: transform .7s var(--ease); }
.product:hover .product-media img { transform: translateY(-8px) scale(1.06); }
.product:hover .product-media::after { transform: scale(.85); opacity: .7; }
.product-media .sheen { position: absolute; inset: 0; z-index: 2; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.7) 50%, transparent 60%); transform: translateX(-110%); transition: transform 1s var(--ease); pointer-events: none; }
.product:hover .sheen { transform: translateX(110%); }
.product-tag { position: absolute; left: 14px; top: 14px; z-index: 3; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 8px; background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.product-tag.hot { background: var(--navy); color: #fff; }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.product-body p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.product-more { font-size: 13px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.product-more::after { content: "→"; transition: transform .35s var(--ease); }
.product:hover .product-more::after { transform: translateX(4px); }
.add-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--navy); font-size: 22px; font-weight: 500; line-height: 1; transition: background .3s, color .3s, transform .45s var(--ease); }
.add-btn:hover { background: var(--blue); color: #fff; transform: rotate(90deg); }
.add-btn.is-added { background: var(--navy); color: #fff; }
.add-btn.is-added:hover { transform: none; }
.product.is-hiding { opacity: 0; transform: scale(.94); }
.empty-state { text-align: center; padding: 40px 20px; font-size: 17px; }
.empty-state a { color: var(--blue); font-weight: 700; text-decoration: underline; }

.custom-banner {
  margin-top: 40px; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 52px); border-radius: var(--radius);
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: #dbe6ff;
  display: flex; justify-content: space-between; align-items: center; gap: 30px; position: relative; overflow: hidden;
}
.custom-banner::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.custom-banner > * { position: relative; }
.custom-banner h3 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 8px; }
.custom-banner p { margin: 0; max-width: 620px; }

/* ---------- Proceso ---------- */
.process { background: var(--navy-deep); color: #c8d4f5; overflow: hidden; isolation: isolate; }
.process-bg { position: absolute; inset: -10% 0; z-index: -1; opacity: .16; }
.process-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); }
.process::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 80% 0%, rgba(39,108,235,.45), transparent 55%), linear-gradient(180deg, rgba(10,20,104,.6), var(--navy-deep)); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 30px 26px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px); transition: background .4s, transform .5s var(--ease), border-color .4s; }
.step:hover { background: rgba(255,255,255,.1); border-color: rgba(156,192,255,.4); transform: translateY(-6px); }
.step-n { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy)); box-shadow: 0 10px 24px -8px rgba(39,108,235,.8); margin-bottom: 22px; }
.step h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.step p { margin: 0; font-size: 15px; }
.progress-line { height: 2px; background: rgba(255,255,255,.1); margin-top: 40px; border-radius: 2px; overflow: hidden; }
.progress-line span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), #9cc0ff); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.8s var(--ease); }
.progress-line.is-in span { transform: scaleX(1); }

/* ---------- Grados ---------- */
.grades-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.grades-grid > div > p { font-size: 17px; }
.grade-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grade {
  --rx: 0deg; --ry: 0deg;
  padding: 28px 22px; border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fdfdfe 0%, #e9edf1 45%, #f8f9fb 55%, #dde3e8 100%);
  border: 1px solid #dfe4ea; box-shadow: inset 0 1px 0 #fff, var(--shadow-sm);
  transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), box-shadow .5s;
}
.grade::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 2px, rgba(255,255,255,.35) 2px 3px); mix-blend-mode: overlay; pointer-events: none; }
.grade:hover { box-shadow: inset 0 1px 0 #fff, var(--shadow); }
.grade-tag { font-weight: 800; font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.grade-num { display: block; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--navy); margin: 4px 0 18px; font-variant-numeric: tabular-nums; }
.grade h3 { font-size: 18px; margin-bottom: 8px; }
.grade p { font-size: 14px; margin: 0; }

/* ---------- CTA ---------- */
.cta-band { padding: 0 0 clamp(40px, 4.5vw, 64px); }
.cta-inner {
  border-radius: 32px; padding: clamp(48px, 7vw, 90px) clamp(24px, 5vw, 70px); text-align: center; color: #dbe6ff;
  background: radial-gradient(ellipse at 50% 120%, rgba(127,176,255,.55), transparent 60%), linear-gradient(135deg, var(--navy) 0%, #1b45d6 60%, var(--blue) 100%);
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-inner::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); left: -160px; top: -260px; box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.025); animation: spin 40s linear infinite; }
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; font-stretch: 110%; max-width: 820px; margin: 0 auto 16px; }
.cta-inner p { font-size: 18px; margin-bottom: 32px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Contacto ---------- */
.contact { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 70px); align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 10px 0 30px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.ci { flex: none; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-soft); color: var(--navy); }
.ci svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span { font-weight: 700; color: var(--ink); font-size: 16px; line-height: 1.4; }
.contact-list a:hover { color: var(--blue); }
.contact-form { display: grid; gap: 14px; padding: 26px; border-radius: var(--radius); background: var(--blue-mist); border: 1px solid var(--line); }
.field { position: relative; }
.field input, .field textarea { width: 100%; padding: 24px 16px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 15px; color: var(--ink); resize: vertical; transition: border-color .3s, box-shadow .3s; }
.field label { position: absolute; left: 17px; top: 17px; font-size: 15px; color: var(--muted); pointer-events: none; transition: transform .3s var(--ease), font-size .3s, color .3s; transform-origin: 0 0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(39,108,235,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px); font-size: 12px; color: var(--blue); font-weight: 700; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aebbe0; padding: 70px 0 30px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--blue), var(--steel)); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { width: 260px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 360px; font-size: 15px; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.footer-col a { transition: color .3s, transform .3s var(--ease); width: fit-content; }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; font-size: 14px; flex-wrap: wrap; }
.to-top:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 30px -8px rgba(37,211,102,.7); transition: transform .4s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPulse 2.4s var(--ease) infinite; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
@keyframes waPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- Modal ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 150; }
.modal-backdrop, .drawer-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 50, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s var(--ease); }
.modal.is-open .modal-backdrop, .drawer.is-open .drawer-backdrop { opacity: 1; }
.modal-panel {
  position: absolute; left: 50%; top: 50%; width: min(980px, calc(100% - 32px)); max-height: calc(100% - 40px); overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 28px; box-shadow: 0 50px 120px -30px rgba(0,0,0,.5);
  transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .55s var(--ease), opacity .45s var(--ease);
}
.modal.is-open .modal-panel { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.modal-close { position: absolute; right: 16px; top: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; font-size: 26px; line-height: 1; background: var(--blue-mist); color: var(--ink); transition: background .3s, transform .4s var(--ease); }
.modal-close:hover { background: var(--blue-soft); transform: rotate(90deg); }
.modal-media { background: radial-gradient(circle at 50% 55%, #fff, var(--blue-mist) 75%); padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 380px; }
.modal-media > img { max-height: 380px; width: auto; object-fit: contain; filter: drop-shadow(0 20px 24px rgba(12,21,48,.2)); animation: popIn .6s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(10px); } }
.modal-thumbs { display: flex; gap: 8px; }
.modal-thumbs button { width: 58px; height: 58px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); padding: 6px; transition: border-color .3s; }
.modal-thumbs button.is-active { border-color: var(--blue); }
.modal-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.modal-body { padding: 48px 40px 40px; }
.modal-cat { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.modal-body h3 { font-size: clamp(24px, 2.6vw, 32px); font-stretch: 105%; margin-bottom: 14px; padding-right: 30px; }
.modal-body > p { font-size: 15.5px; }
.spec-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.spec-list li { position: relative; padding: 10px 14px 10px 40px; border-radius: 12px; background: var(--blue-mist); font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.spec-list li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3 3 7-7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Drawer cotización ---------- */
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .55s var(--ease); box-shadow: -30px 0 80px -30px rgba(0,0,0,.4); }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 24px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 24px; }
.drawer-head .modal-close { position: static; }
.quote-list { list-style: none; margin: 0; padding: 14px 24px; overflow: auto; flex: 1; display: grid; gap: 10px; align-content: start; }
.quote-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid var(--line); animation: popIn .4s var(--ease); }
.quote-item img { width: 60px; height: 60px; object-fit: contain; background: var(--blue-mist); border-radius: 12px; padding: 4px; }
.quote-item strong { display: block; font-size: 14px; color: var(--ink); line-height: 1.3; }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; border-radius: 999px; background: var(--blue-mist); }
.qty button { width: 28px; height: 28px; border-radius: 50%; font-weight: 800; color: var(--navy); }
.qty button:hover { background: var(--blue-soft); }
.qty span { min-width: 22px; text-align: center; font-weight: 800; font-size: 14px; color: var(--ink); }
.remove-btn { width: 32px; height: 32px; border-radius: 50%; color: var(--muted); font-size: 20px; }
.remove-btn:hover { background: #fdecec; color: #c62828; }
.quote-empty { padding: 30px 24px; text-align: center; color: var(--muted); }
.drawer-foot { padding: 18px 24px 26px; border-top: 1px solid var(--line); display: grid; justify-items: center; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 160; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transition: transform .5s var(--ease), visibility .5s; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grades-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0; padding: 12px 16px 24px;
    background: rgba(255,255,255,.97); backdrop-filter: blur(16px); box-shadow: 0 30px 40px -20px rgba(0,0,0,.2);
    clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); pointer-events: none;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
  .nav a { font-size: 22px; font-family: var(--display); font-weight: 700; padding: 14px 8px; border-radius: 12px; }
  .menu-toggle { display: block; }
  .hide-sm { display: none; }
  .site-header { background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 36px); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 1 / .85; max-width: 620px; width: 100%; margin-inline: auto; }
  .scroll-hint { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 4 / 3.4; }
  .about-stamp { right: 12px; bottom: -24px; }
  .catalog-head { flex-direction: column; align-items: stretch; }
  .search { flex-basis: auto; }
  .filters { display: flex; flex-wrap: nowrap; overflow-x: auto; border-radius: 18px; scrollbar-width: none; max-width: 100%; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { white-space: nowrap; }
  .contact-grid { grid-template-columns: 1fr; }
  .modal-panel { grid-template-columns: 1fr; }
  .modal-media { min-height: 260px; padding: 30px; }
  .modal-media > img { max-height: 240px; }
  .modal-body { padding: 26px 24px 28px; }
  .custom-banner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand img { height: 28px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-media { padding: 16px; }
  .product-body { padding: 14px 14px 16px; }
  .product-body h3 { font-size: 15px; }
  .product-body p { display: none; }
  .product-more { font-size: 12px; }
  .add-btn { width: 36px; height: 36px; }
  .sector-grid, .steps, .grade-cards { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 1 / 1; }
  .hero-photo { inset: 6% 0 8% 4%; }
  .hero-badge { width: 96px; height: 96px; left: -2%; top: -2%; }
  .hero-badge img { width: 38px; }
  .float-card { padding: 8px 12px 8px 8px; gap: 8px; border-radius: 16px; }
  .float-card img { width: 52px; height: 46px; }
  .float-card strong { font-size: 13px; }
  .float-card span { font-size: 11.5px; }
  .fc-1 { left: 0; bottom: 4%; }
  .fc-2 { right: 0; top: 6%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
