/* Layout: catálogo de fabricante. Fondo claro y sobrio, producto recortado sobre "mesas" de piedra clara,
   tipografía grotesca firme. Colores tomados del logo: azul marino y oro. */
:root {
  --bg: #F4F4F7;
  --surface: #FFFFFF;
  --stone: #E9E9EF;
  --stone-2: #D9DAE3;
  --ink: #14163A;
  --ink-2: #4A4D68;
  --ink-3: #7C7F96;
  --line: #DCDDE6;
  --accent: #18184F;
  --accent-2: #26267A;
  --accent-soft: #E6E6F2;
  --gold: #B0955B;
  --gold-ink: #86703F;
  --signal: #B0955B;
  --night: #14163F;
  --night-2: #0E0F2E;
  --night-line: #2B2D5C;
  --night-fg: #EFEFF7;
  --night-muted: #A6A8C6;

  --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --t-sm: .875rem;
  --t-base: 1.0625rem;
  --t-lg: 1.1875rem;
  --t-h3: 1.1875rem;
  --t-h2: clamp(1.875rem, 1.35rem + 1.9vw, 3rem);
  --t-h1: clamp(2.4rem, 1.6rem + 2.9vw, 4rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 6px;
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap {
  width: 100%; max-width: 1240px; margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(72px, 10vw, 136px); }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.sub { color: var(--ink-2); font-size: var(--t-lg); max-width: 56ch; margin-top: 16px; }
.sub a { color: var(--accent); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius); border: 0; cursor: pointer;
  font: 600 1rem/1 var(--f-body); text-decoration: none; letter-spacing: .005em;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-light { background: var(--surface); color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--ink); position: relative; padding-block: 6px; }
.link-arrow::after { content: ""; width: 18px; height: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .35s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow::before { content: ""; position: absolute; left: 0; right: 28px; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.link-arrow:hover::before { transform: scaleX(1); }

/* Header */

.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(20, 22, 58, .35); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 54px; width: auto; }
.footer .logo img { height: 52px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a:not(.btn) { padding: 10px 14px; text-decoration: none; font-weight: 500; font-size: .96875rem; color: var(--ink-2); position: relative; transition: color .25s; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav > a:not(.btn):hover, .nav > a.is-current { color: var(--ink); }
.nav > a:not(.btn):hover::after, .nav > a.is-current::after { transform: scaleX(1); }
.nav-cta { margin-left: 12px; min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.menu { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: var(--radius); }
.menu i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu i:nth-of-type(1) { top: 17px; }
.menu i:nth-of-type(2) { top: 26px; }
.menu[aria-expanded="true"] i:nth-of-type(1) { top: 21.5px; transform: rotate(45deg); }
.menu[aria-expanded="true"] i:nth-of-type(2) { top: 21.5px; transform: rotate(-45deg); }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: var(--t-sm); font-weight: 600; color: var(--gold-ink); letter-spacing: .02em; margin-bottom: 24px; }
.kicker::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.hero-title { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: inline-block; }
.hero-lead { margin-top: 28px; font-size: var(--t-lg); color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

.stage {
  position: relative; aspect-ratio: 1.08; max-width: 100%;
  background: radial-gradient(70% 60% at 50% 42%, #FBFBFD 0%, var(--stone) 70%);
  border-radius: 4px;
}
.stage::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 12%; height: 10%; background: radial-gradient(50% 50% at 50% 50%, rgba(20, 22, 58, .16), transparent 70%); filter: blur(6px); }
.piece { position: absolute; z-index: 1; height: auto; filter: drop-shadow(0 22px 20px rgba(20, 22, 58, .2)) drop-shadow(0 4px 4px rgba(20, 22, 58, .12)); will-change: transform; }
.p-torpedo { left: 6%; top: 15%; width: 21%; }
.p-cto { left: 26%; top: 8%; width: 47%; z-index: 2; }
.p-drop { right: 3%; top: 24%; width: 31%; }
.p-lat { left: 6%; bottom: 13%; width: 46%; z-index: 3; }
.p-adapt { right: 8%; bottom: 14%; width: 24%; z-index: 3; }

.facts { list-style: none; padding: 0; margin: clamp(48px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 4px; padding: 28px 28px 32px 0; }
.facts li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.facts b { font-family: var(--f-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.015em; }
.facts span { color: var(--ink-2); font-size: .96875rem; }

/* About */
.about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.about-text { display: grid; gap: 24px; }
.about-text > p { font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); line-height: 1.65; color: var(--ink-2); max-width: 60ch; }

/* Services */
.services-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px clamp(32px, 6vw, 96px); align-items: start; }
.services-head .sub { margin-top: 0; max-width: 62ch; }
.services-sub { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); letter-spacing: -0.015em; margin: clamp(48px, 6vw, 72px) 0 24px; }
.services-sub span { color: var(--gold-ink); }
.srv-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.srv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 10px; align-content: start; transition: border-color .4s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.srv-card:hover { border-color: var(--stone-2); transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(20, 22, 58, .35); }
.srv-n { font-family: var(--f-display); font-weight: 600; font-size: 2.5rem; line-height: 1; color: var(--gold); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.srv-card h3 { font-size: 1.375rem; letter-spacing: -0.015em; }
.srv-card p { color: var(--ink-2); max-width: 46ch; }

/* Products */
.products-section { background: var(--surface); }
.family { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 96px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); align-items: start; }
.family-copy { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 14px; }
.family-copy h3 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.1; }
.family-copy > p { color: var(--ink-2); font-size: var(--t-lg); max-width: 44ch; }
.terms { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.terms li { font-size: .875rem; font-weight: 500; padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--bg); }
.family-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.family-media--1 { grid-template-columns: minmax(0, 1fr); }
.family-media--2 { grid-template-columns: minmax(0, 1fr); }
.shot { all: unset; box-sizing: border-box; cursor: zoom-in; display: grid; min-width: 0; }
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.shot-img { display: grid; place-items: center; aspect-ratio: 4 / 3; max-width: 100%; background: var(--stone); border-radius: 4px; padding: 12% 14%; overflow: hidden; }
.family-media--1 .shot-img { aspect-ratio: 16 / 10; padding: 6% 22%; }
.family-media--2 .shot-img { aspect-ratio: 16 / 7; padding: 7% 16%; }
.shot-img img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 16px rgba(20, 22, 58, .18)) drop-shadow(0 3px 3px rgba(20, 22, 58, .1)); transition: transform .8s var(--ease), filter .8s var(--ease); }
.shot:hover .shot-img img { transform: translateY(-8px) scale(1.035); filter: drop-shadow(0 28px 22px rgba(20, 22, 58, .2)) drop-shadow(0 4px 4px rgba(20, 22, 58, .1)); }

/* Contact */
.contact { background: var(--night); color: var(--night-fg); padding-block: clamp(72px, 10vw, 128px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.5rem); }
.kicker-light { color: var(--signal); }
.contact-q { margin-top: 24px; font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.contact-lead { margin-top: 8px; color: var(--night-muted); font-size: var(--t-lg); max-width: 44ch; }
.channels { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--night-line); }
.channels li { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 12px 16px; padding-block: 18px; border-bottom: 1px solid var(--night-line); }
.ch-label { color: var(--night-muted); font-size: var(--t-sm); }
.ch-value { font-family: var(--f-display); font-weight: 500; font-size: 1.125rem; text-decoration: none; overflow-wrap: anywhere; }
a.ch-value:hover { text-decoration: underline; text-underline-offset: 4px; }
.ch-wa { display: inline-flex; align-items: center; gap: 10px; }
.ch-wa svg { width: 22px; height: 22px; flex: none; color: #25D366; }

.form { background: var(--surface); color: var(--ink); border-radius: 6px; padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field .label { font-size: .875rem; font-weight: 600; }
input, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; width: 100%; transition: border-color .25s, background-color .25s, box-shadow .25s; }
input:hover, textarea:hover { border-color: var(--stone-2); }
input:focus, textarea:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 120px; }
.field.has-error input, .field.has-error textarea { border-color: #B3261E; }

/* Sub pages */
.page-first { padding-top: clamp(56px, 8vw, 104px); }
.section h1 { font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.75rem); line-height: 1.04; letter-spacing: -0.03em; }
.catalog { border-top: 1px solid var(--night-line); }
.form-privacy { justify-self: start; font-size: .875rem; color: var(--ink-2); }
.form-privacy:hover { color: var(--ink); }

/* Privacy policy page */
.policy h1 { margin-bottom: 40px; }
.policy-body { max-width: 78ch; color: var(--ink-2); display: grid; gap: 12px; }
.policy-body h3 { color: var(--ink); font-size: 1.125rem; margin-top: 20px; }
.policy-body h3:first-child { margin-top: 0; }
.policy-body h4 { color: var(--ink); font-size: .9375rem; letter-spacing: .02em; margin-top: 8px; }
.policy-body dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; }
.policy-body dt { color: var(--ink); font-weight: 600; }
.policy-body dd { margin: 0; }
.policy-body a { color: var(--accent); }

/* Footer */
.footer { background: var(--night-2); color: var(--night-muted); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 64px 48px; }
.footer-grid > * { display: grid; align-content: start; gap: 10px; }
.footer-brand p { max-width: 32ch; margin-top: 6px; }
.footer h4 { font-size: .875rem; color: var(--night-fg); font-weight: 600; margin-bottom: 4px; }
.footer a:not(.logo) { text-decoration: none; overflow-wrap: anywhere; }
.footer a:not(.logo):hover { color: var(--night-fg); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; border-top: 1px solid var(--night-line); padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); font-size: .8125rem; }

/* Motion */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
.js .ln > span { animation: line-in 1.1s var(--ease) both; }
.js .ln:nth-child(2) > span { animation-delay: .08s; }
.js .ln:nth-child(3) > span { animation-delay: .16s; }
@keyframes line-in { from { transform: translateY(105%); } }
.js .kicker { animation: fade-up .9s var(--ease) both; }
.js .hero-lead { animation: fade-up 1s var(--ease) .3s both; }
.js .hero-actions { animation: fade-up 1s var(--ease) .4s both; }
.js .stage { animation: fade 1.2s ease .1s both; }
.js .piece { animation: piece-in 1.3s var(--ease) both; }
.js .p-torpedo { animation-delay: .35s; }
.js .p-cto { animation-delay: .2s; }
.js .p-drop { animation-delay: .45s; }
.js .p-lat { animation-delay: .6s; }
.js .p-adapt { animation-delay: .7s; }
@keyframes piece-in { from { opacity: 0; translate: 0 40px; } }
.js .facts li { animation: fade-up 1s var(--ease) both; }
.js .facts li:nth-child(1) { animation-delay: .7s; }
.js .facts li:nth-child(2) { animation-delay: .8s; }
.js .facts li:nth-child(3) { animation-delay: .9s; }

.reveal.is-pending { opacity: 0; transform: translateY(28px); }
.reveal.is-in { transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }

/* Image viewer */
.viewer { border: 0; padding: 0; width: min(900px, calc(100% - 32px)); max-height: calc(100% - 32px); border-radius: 6px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(20, 22, 58, .45); overflow: hidden; }
.viewer::backdrop { background: rgba(20, 22, 58, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.viewer[open] { animation: viewer-in .5s var(--ease); }
.viewer[open]::backdrop { animation: fade .4s ease; }
@keyframes viewer-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.viewer-img { display: grid; place-items: center; padding: 8% 10%; background: radial-gradient(70% 60% at 50% 45%, #FBFBFD 0%, var(--stone) 72%); }
.viewer-img img { max-height: min(60vh, 520px); width: auto; object-fit: contain; filter: drop-shadow(0 24px 20px rgba(20, 22, 58, .2)); }
.viewer[open] .viewer-img img { animation: fade-up .8s var(--ease) .1s both; }
.viewer-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); cursor: pointer; box-shadow: 0 2px 10px rgba(20, 22, 58, .12); }
.viewer-close svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 1.6; fill: none; }
.viewer-close:hover { background: var(--bg); }

/* Responsive */
@media (max-width: 1100px) {
  .nav > a:not(.btn) { padding: 10px 10px; }
  .nav > a:not(.btn)::after { left: 10px; right: 10px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .menu { display: block; }
  .header-inner { gap: 8px; justify-content: space-between; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(20, 22, 58, .3);
    padding: 8px max(24px, env(safe-area-inset-right, 0px)) 24px max(24px, env(safe-area-inset-left, 0px));
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease), visibility .5s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav > a:not(.btn) { padding: 16px 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin: 20px 0 0; min-height: 52px; }
  .hero-grid, .about-grid, .services-head, .family, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 640px; }
  .family-copy { position: static; }
}
@media (max-width: 680px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li + li { padding: 20px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .srv-cards, .row { grid-template-columns: minmax(0, 1fr); }
  .family-media { grid-template-columns: minmax(0, 1fr); }
  .channels li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .policy-body dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .policy-body dd { margin-bottom: 8px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 420px) {
  }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal.is-pending { opacity: 1; transform: none; }
}

/* Product families overview and detail pages */
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pcard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(20, 22, 58, .4); border-color: var(--stone-2); }
.pcard-img { display: grid; place-items: center; aspect-ratio: 4 / 3; max-width: 100%; background: var(--stone); padding: 12% 16%; overflow: hidden; }
.pcard-img img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 16px rgba(20, 22, 58, .18)); transition: transform .8s var(--ease); }
.pcard:hover .pcard-img img { transform: translateY(-6px) scale(1.04); }
.pcard-body { display: grid; gap: 10px; padding: 24px 24px 28px; flex: 1; align-content: start; }
.pcard-title { font-family: var(--f-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.015em; }
.pcard-text { color: var(--ink-2); font-size: .96875rem; }
.pcard-arrow { font-size: 1.25rem; color: var(--gold-ink); transition: transform .35s var(--ease); }
.pcard:hover .pcard-arrow { transform: translateX(6px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .875rem; color: var(--ink-3); margin-bottom: 28px; }
.crumbs a { color: var(--ink-2); }
.pd-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px clamp(32px, 6vw, 96px); align-items: start; margin-bottom: clamp(40px, 5vw, 64px); }
.pd-head .sub { margin-top: 0; }
.pd-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .pcards, .pd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pd-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .pcards, .pd-gallery { grid-template-columns: minmax(0, 1fr); } }
/* Galería de dos columnas (cuatro fotos en 2 × 2) */
.pd-gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.pd-gallery--2 .shot { gap: 14px; }
.pd-gallery--2 .shot-img { aspect-ratio: 16 / 10; padding: 6% 12%; min-height: 0; }
.pd-gallery--2 .shot-img img { width: 100%; height: 100%; min-height: 0; }
@media (max-width: 680px) { .pd-gallery--2 { grid-template-columns: minmax(0, 1fr); } }
/* Galería con fotos apaisadas (cables con su sección) y nombre debajo */
.pd-gallery--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.pd-gallery--wide .shot { gap: 14px; }
.pd-gallery--wide .shot-img { aspect-ratio: 16 / 7; padding: 6% 8%; min-height: 0; }
.pd-gallery--wide .shot-img img { width: 100%; height: 100%; min-height: 0; }
.pd-gallery--wide .shot:last-child:nth-child(odd),
.pd-gallery--2 .shot:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
.shot-cap { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; color: var(--ink); transition: color .25s; }
.shot:hover .shot-cap { color: var(--accent-2); }
@media (max-width: 680px) { .pd-gallery--wide { grid-template-columns: minmax(0, 1fr); } .pd-gallery--wide .shot:last-child:nth-child(odd), .pd-gallery--2 .shot:last-child:nth-child(odd) { width: auto; justify-self: stretch; } }

/* Product pages */
a.shot { cursor: pointer; }
.terms a { display: block; margin: -7px -12px; padding: 7px 12px; text-decoration: none; color: inherit; border-radius: 4px; transition: background-color .25s, color .25s; }
.terms li:has(a) { transition: border-color .25s; }
.terms li:has(a):hover { border-color: var(--accent); }
.terms a:hover { color: var(--accent); }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.pp-media > * { min-width: 0; }
.pp-media { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 16px; }
.pp-img { margin: 0; display: grid; place-items: center; aspect-ratio: 4 / 3; max-width: 100%; background: radial-gradient(70% 60% at 50% 45%, #FBFBFD 0%, var(--stone) 72%); border-radius: 6px; padding: 10% 14%; min-width: 0; min-height: 0; overflow: hidden; }
.pp-img img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 22px 18px rgba(20, 22, 58, .2)); animation: fade-up 1s var(--ease) both; }
.pp-copy h1 { margin-bottom: 20px; }
.pp-intro { font-size: var(--t-lg); color: var(--ink-2); max-width: 56ch; }
.pp-uses { margin-top: 36px; border-top: 1px solid var(--line); }
.pp-use { padding-block: 22px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.pp-use h2 { font-size: 1.1875rem; letter-spacing: -0.01em; }
.pp-use p { color: var(--ink-2); max-width: 58ch; }
@media (max-width: 960px) { .pp-grid { grid-template-columns: minmax(0, 1fr); } .pp-media { position: static; } }

/* ===== Estilo de la portada aplicado al resto de páginas =====
   Azul marino con degradado, mapa de puntos y rutas turquesa en la cabecera de cada página,
   titulares grandes en Hanken Grotesk, rótulo dorado y tarjetas blancas como los datos destacados de Inicio. */
:root {
  --navy: #17174F; --navy-deep: #0B0B33; --navy-bar: #14144A;
  --glow: #5EEAD4; --gold-light: #D8B96A; --gold-soft: #E6CB8A;
  --bg: #F3F3F7; --ink: #17174F; --ink-2: #4A4B72; --accent: #17174F; --accent-2: #24247A;
  --f-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --card-shadow: 0 6px 20px rgba(23, 23, 79, .08);
  --card-shadow-hover: 0 22px 44px -18px rgba(23, 23, 79, .3);
}
h1, h2, h3, h4 { font-weight: 700; }
.section h1, .page-hero h1 { font-weight: 800; font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5rem); line-height: 1; letter-spacing: -0.035em; }
:focus-visible { outline-color: var(--glow); }
.btn-primary { background: var(--navy); font-weight: 700; }
.btn-primary:hover { background: var(--accent-2); }
.nav > a:not(.btn) { font-size: 1rem; }
.nav > a:not(.btn)::after { height: 2px; background: var(--navy); }

/* Cabecera oscura de cada página */
.page-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: radial-gradient(ellipse 70% 90% at 72% 40%, #26267D 0%, #17174F 46%, #0B0B33 100%); padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 96px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 11, 51, .1) 0%, rgba(11, 11, 51, .25) 38%, rgba(11, 11, 51, .8) 52%, rgba(11, 11, 51, .6) 100%); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: -1; background: linear-gradient(0deg, rgba(11, 11, 51, .55), transparent); pointer-events: none; }
.page-hero-decor { position: absolute; z-index: -2; top: 0; left: 0; height: 100%; width: min(56%, 760px); pointer-events: none; opacity: .7; }
.page-hero-decor .ph-arcs path { stroke-dasharray: 7 8; animation: ph-dash 3.2s linear infinite; }
.page-hero-decor .ph-pulse { transform-box: fill-box; transform-origin: center; animation: ph-pulse 2.4s ease-out infinite; }
@keyframes ph-dash { to { stroke-dashoffset: -60; } }
@keyframes ph-pulse { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
.page-hero h1, .page-hero h2, .page-hero h3 { color: #fff; }
.page-hero .sub, .page-hero .about-text > p, .page-hero .pp-intro, .page-hero .pp-use p { color: rgba(255, 255, 255, .78); }
.page-hero .kicker { color: var(--gold-soft); }
.page-hero .kicker::before { background: var(--gold-light); height: 2px; width: 36px; }
.page-hero .crumbs { color: rgba(255, 255, 255, .6); }
.page-hero .crumbs a { color: rgba(255, 255, 255, .85); text-decoration-color: var(--gold-light); text-underline-offset: 3px; }
.page-hero .crumbs a:hover { color: var(--glow); }
.page-hero .terms li { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .26); color: #fff; border-radius: 999px; }
.page-hero .terms a { border-radius: 999px; }
.page-hero .terms li:has(a):hover { border-color: var(--glow); background: rgba(94, 234, 212, .1); }
.page-hero .terms a:hover { color: var(--glow); }
.page-hero .pd-head, .page-hero .head { margin-bottom: 0; }
.page-hero .pd-head { align-items: end; }
.page-hero.page-hero--full { padding-block: clamp(56px, 8vw, 104px); }
.page-hero .pp-uses, .page-hero .pp-use { border-color: rgba(255, 255, 255, .16); }
.page-hero .pp-use h2 { color: var(--gold-soft); }
.page-hero .pp-img { background: #fff; border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.page-hero.about { background: radial-gradient(ellipse 70% 90% at 72% 40%, #26267D 0%, #17174F 46%, #0B0B33 100%); }
.page-hero .about-grid { align-items: center; }
.page-body { padding-block: clamp(48px, 6vw, 88px); background: var(--bg); }
.page-body.products-section { background: var(--bg); }
.page-body .services-sub:first-child { margin-top: 0; }

/* Tarjetas blancas como los datos destacados de la portada */
.srv-card, .pcard { border: 0; border-top: 4px solid var(--navy); border-radius: 18px; box-shadow: var(--card-shadow); }
.srv-card:hover, .pcard:hover { box-shadow: var(--card-shadow-hover); }
.srv-n { color: var(--gold); font-weight: 800; }
.services-sub span { color: var(--gold-ink); }
.pcard-img { background: radial-gradient(70% 60% at 50% 45%, #FFFFFF 0%, #ECECF3 75%); }
.pcard-title { font-weight: 800; letter-spacing: -0.02em; }
.shot-img { background: #fff; border-radius: 18px; box-shadow: var(--card-shadow); transition: box-shadow .5s var(--ease); }
.shot:hover .shot-img { box-shadow: var(--card-shadow-hover); }
.shot-cap { font-weight: 700; color: var(--navy); }
.policy-body { background: #fff; border-radius: 18px; box-shadow: var(--card-shadow); border-top: 4px solid var(--navy); padding: clamp(24px, 4vw, 56px); max-width: none; }
.policy-body > * { max-width: 78ch; }
.policy-body h3 { font-weight: 800; }

/* Solicitud de Catálogo: como el panel de Contacto de la portada */
.contact { background: radial-gradient(ellipse 80% 70% at 75% 30%, #26267D 0%, #17174F 50%, #0B0B33 100%); }
.catalog { border-top: 0; }
.contact h2 { font-weight: 800; letter-spacing: -0.03em; }
.kicker-light { color: var(--gold-soft); }
.kicker-light::before { background: var(--gold-light); height: 2px; width: 36px; }
.contact-lead { color: rgba(255, 255, 255, .76); }
.form { border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
input, textarea { background: #fff; border: 1.5px solid #CFD0E3; border-radius: 10px; }
input:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(94, 234, 212, .45); }
.form .btn-primary { border-radius: 10px; font-size: 1.0625rem; }
.form-privacy { border-bottom: 1.5px solid var(--gold-light); }

/* Pie como el de la portada */
.footer { background: var(--navy-bar); color: #B9BCE8; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .14); }

@media (max-width: 960px) {
  .page-hero-decor { width: 100%; opacity: .35; }
  .page-hero::before { background: linear-gradient(90deg, rgba(11, 11, 51, .9) 0%, rgba(11, 11, 51, .55) 100%); }
  .page-hero .pd-head { align-items: start; }
}
@media (prefers-reduced-motion: reduce) { .page-hero-decor .ph-arcs path, .page-hero-decor .ph-pulse { animation: none; } }

/* Ficha rápida al pulsar una foto de las galerías */
.shot[aria-haspopup] .shot-img { position: relative; }
.shot[aria-haspopup] .shot-img::after { content: "+ Ver detalles"; position: absolute; right: 14px; bottom: 14px; padding: 7px 13px; border-radius: 999px; background: var(--navy); color: #fff; font: 700 .8125rem/1 var(--f-body); letter-spacing: .01em; opacity: .9; transition: background-color .3s, transform .3s var(--ease); }
.shot[aria-haspopup]:hover .shot-img::after, .shot[aria-haspopup]:focus-visible .shot-img::after { background: var(--glow); color: var(--navy-deep); transform: translateY(-2px); }
.info { border: 0; padding: 0; width: min(980px, calc(100% - 32px)); max-height: calc(100% - 32px); border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 40px 100px -30px rgba(11, 11, 51, .6); overflow: auto; }
.info::backdrop { background: rgba(11, 11, 51, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.info[open] { animation: viewer-in .5s var(--ease); }
.info-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.info-img { margin: 0; display: grid; place-items: center; padding: 10%; background: radial-gradient(ellipse 80% 70% at 50% 40%, #26267D 0%, #17174F 55%, #0B0B33 100%); min-height: 100%; }
.info-img img { width: 100%; max-height: 360px; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .45)); }
.info-body { padding: clamp(28px, 4vw, 48px); display: grid; gap: 10px; align-content: start; }
.info-k { display: flex; align-items: center; gap: 12px; font-size: .875rem; font-weight: 600; color: var(--gold-ink); }
.info-k::before { content: ""; width: 32px; height: 2px; background: var(--gold); }
.info-body h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.info-lead { color: var(--ink-2); font-size: 1.0625rem; margin-bottom: 6px; }
.info-body h3 { margin-top: 12px; font-size: 1rem; font-weight: 800; }
.info-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.info-body li { position: relative; padding-left: 22px; color: var(--ink-2); }
.info-body li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 3px rgba(94, 234, 212, .25); }
.info-body > p:not(.info-k):not(.info-lead) { color: var(--ink-2); }
.info-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(11, 11, 51, .18); }
.info-close svg { width: 18px; height: 18px; stroke: var(--navy); stroke-width: 2; fill: none; stroke-linecap: round; }
.info-close:hover { background: var(--bg); }
@media (max-width: 760px) {
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .info-img { min-height: 0; padding: 12% 14%; }
  .info-img img { max-height: 200px; }
}

/* Envío de formularios */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn:disabled { opacity: .7; cursor: progress; }
.form-status { font-size: .9375rem; font-weight: 600; color: #0F6B5E; }
.form-status.is-error { color: #9B1C1C; }
.form-status a { color: inherit; text-decoration: underline; }

/* Selector de idioma ES | EN, detrás de Contacto */
.lang-switch { display: inline-flex; align-items: center; margin-left: 10px; padding: 3px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; flex: none; }
.lang-switch a { min-width: 38px; padding: 7px 10px; border-radius: 999px; text-align: center; text-decoration: none; font-weight: 700; font-size: .8125rem; letter-spacing: .04em; color: var(--ink-2); transition: background-color .25s, color .25s; }
.lang-switch a:hover { color: var(--navy); background: var(--accent-soft); }
.lang-switch a[aria-current] { background: var(--navy); color: #fff; }
:lang(en) .shot[aria-haspopup] .shot-img::after { content: "+ View details"; }
@media (max-width: 960px) { .lang-switch { align-self: center; margin: 18px 0 0; } .lang-switch a { min-width: 56px; padding: 10px 14px; font-size: .9375rem; } }

/* Pie: cielo nocturno con constelaciones doradas */
.footer { position: relative; overflow: hidden; color: #B9C4F0; padding: 0; background: #0B1440 url(../img/fondo-pie-cielo.jpg) 72% 40% / max(100%, 1750px) auto no-repeat; background-color: #0B1440; }
.footer-grid, .footer-top { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(56px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.footer-top { max-width: 1344px; margin: 0 auto; padding-inline: clamp(20px, 3.4vw, 48px); justify-content: initial; }
.footer .footer-brand p, .footer-top > div:first-child p { margin: 16px 0 0; color: #AFC0FF; font-size: 1.125rem; font-weight: 500; letter-spacing: .01em; }
.footer .logo img, .footer-top img { height: 64px; width: auto; }
.footer nav { display: grid; gap: 12px; align-content: start; font-size: 1rem; font-weight: 500; }
.footer nav a { color: #DCE3FF; text-decoration: none; justify-self: start; }
.footer nav a:hover { color: #F5D98E; }
.footer-h { margin: 0 0 18px; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); font-weight: 500; letter-spacing: -0.01em; color: #F5D98E; }
.footer-ch { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; border-bottom: 1px solid rgba(245, 217, 142, .3); padding-bottom: 26px; }
.footer-ch a { display: inline-flex; align-items: center; gap: 16px; color: #fff; font-weight: 600; font-size: 1.0625rem; text-decoration: none; overflow-wrap: anywhere; }
.footer-ch a:hover { color: #F5D98E; }
.footer-ch svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #F5D98E; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-bar { position: relative; background: #1B2D68; }
.footer-bar .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; border-top: 0; margin: 0 auto; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; color: #E4E9FF; }
.footer-bar .footer-bottom > :first-child { margin-right: auto; }
.footer-bar .footer-bottom a { color: #E4E9FF; text-decoration: none; }
.footer-bar .footer-bottom a:hover { color: #F5D98E; }
.footer-bar .footer-bottom a + a::before { content: "•"; margin-right: 14px; color: rgba(228, 233, 255, .6); }
@media (max-width: 900px) {
  .footer-grid, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer { background-size: auto 100%; background-position: 70% center; }
  .footer-bar .footer-bottom > :first-child { margin-right: 0; flex-basis: 100%; }
}

/* Quiénes somos: rótulo "Nebula Consulting" al doble y texto justificado y centrado en su columna */
.about .kicker { font-size: 1.75rem; gap: 18px; margin-bottom: 28px; }
.about.page-hero .kicker::before { width: 56px; }
.about .about-text { justify-self: center; }
@media (min-width: 961px) { .about .about-text > p { text-align: justify; text-justify: inter-word; hyphens: auto; margin-inline: auto; } }

/* Solicitud de Catálogo: rótulo "Productos" al doble; textos justificados en pantallas anchas */
.catalog .kicker-light { font-size: 1.75rem; gap: 18px; }
.catalog .kicker-light::before { width: 56px; }
@media (min-width: 961px) {
  .catalog .contact-lead, .services-head .sub { text-align: justify; text-justify: inter-word; hyphens: auto; }
}
