/* ══════════════════════════════════════════════════════════════
   POLYKRAN — página de tecnología · clases pk2-*
   Se carga solo en polykran.html / en/polykran.html
   ══════════════════════════════════════════════════════════════ */

html:has(.pk2-hero), body:has(.pk2-hero) { overflow-x: clip; }

/* reveal genérico */
.pk2-rise { opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.pk2-rise.in { opacity: 1; transform: none; }
.pk2-rise.d1 { transition-delay: .08s; }
.pk2-rise.d2 { transition-delay: .16s; }
.pk2-rise.d3 { transition-delay: .24s; }

/* Cabeceras de sección (más grandes que el default de styles.css) */
.pk2-head { margin-bottom: 26px; }
.pk2-scene .section-tag, .pk2-tech .section-tag, .pk2-variants .section-tag,
.pk2-head .section-tag {
  font-size: 12px; letter-spacing: 2.5px; margin-bottom: 14px;
}
.pk2-head .section-title {
  font-size: clamp(28px, 4vw, 44px); line-height: 1.14; margin-bottom: 0; max-width: 680px;
}
.pk2-scene-head .section-title {
  font-size: clamp(23px, 2.9vw, 33px); line-height: 1.22; margin-bottom: 0; max-width: 820px;
}
.pk2-variants .section-title { font-size: clamp(25px, 3.1vw, 38px); line-height: 1.18; }
.pk2-variants .section-subtitle { font-size: 15.5px; line-height: 1.6; }

/* ── HERO ── */
.pk2-hero {
  position: relative; overflow: hidden; min-height: 520px;
  display: flex; align-items: center;
  padding: 128px 0 92px; color: #fff; background: #03306D;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pk2-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 55% at 82% 30%, rgba(70,140,235,.34), transparent 70%),
    radial-gradient(40% 45% at 8% 92%, rgba(20,70,150,.35), transparent 70%);
}
.pk2-hero .container { position: relative; z-index: 2; }
.pk2-hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.pk2-hero h1 {
  font-size: clamp(40px, 5.6vw, 60px); font-weight: 800; letter-spacing: 1px;
  line-height: 1; margin: 0 0 20px;
}
.pk2-hero h1 sup { font-size: .28em; top: -1.15em; letter-spacing: 0; }
.pk2-hero-sub {
  font-size: clamp(16px, 2.1vw, 22px); font-weight: 600; line-height: 1.45;
  color: #dae7fb; margin: 0 auto 18px; max-width: 600px;
}
.pk2-hero-body {
  font-size: clamp(13.5px, 1.45vw, 15px); line-height: 1.85;
  color: rgba(255,255,255,.78); margin: 0 auto; max-width: 620px;
}
.pk2-hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; justify-content: center; }
.pk2-hero-tags li {
  font-size: 11.5px; font-weight: 600; letter-spacing: .3px; color: #d4e2f7;
  border: 1px solid rgba(255,255,255,.22); border-radius: 100px;
  padding: 7px 14px; background: rgba(255,255,255,.05);
}
/* ── TECNOLOGÍA: cabecera + proceso interactivo de 4 paneles ── */
.pk2-tech { padding: 84px 0; background: #F5F8FC; }

.pk2-flow-hint { margin: 0 0 24px; font-size: 12.5px; font-weight: 700; letter-spacing: .4px; color: var(--blue-mid); }

.pk2-flow-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pk2-flow-panel {
  appearance: none; -webkit-appearance: none; border: 0; padding: 0; margin: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
}
.pk2-flow-panel:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 4px; border-radius: 6px; }
.pk2-flow-img {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 3 / 4; background: #eef2f7;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.pk2-flow-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk2-flow-panel:hover .pk2-flow-img {
  border-color: var(--blue-mid); box-shadow: 0 16px 34px -22px rgba(3, 48, 109, .4);
}
.pk2-flow-panel.is-active .pk2-flow-img {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 2px var(--blue-mid), 0 20px 44px -22px rgba(3, 48, 109, .5);
}

.pk2-flow-cap { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--blue-dark); line-height: 1.25; }
.pk2-flow-cap b {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: #E7EEF7; color: var(--blue-mid); font-size: 12px; font-weight: 800;
  display: grid; place-items: center; transition: background .3s ease, color .3s ease;
}
.pk2-flow-panel:is(:hover, :focus-visible) .pk2-flow-cap b,
.pk2-flow-panel.is-active .pk2-flow-cap b { background: var(--blue-dark); color: #fff; }

.pk2-flow-detail {
  margin-top: 22px; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 26px; min-height: 96px; display: flex; align-items: center;
}
.pk2-flow-detail-text { margin: 0; font-size: clamp(14.5px, 1.5vw, 16px); line-height: 1.75; color: var(--text-body); max-width: 780px; }
.pk2-flow-detail-text strong { color: var(--blue-dark); }
.pk2-flow-note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); }

/* imagen circular de la fibra — cabecera del scrollytelling de aramida */
.pk2-scene-fiber { margin: 30px auto 0; width: 220px; }
.pk2-scene-fiber img {
  display: block; width: 100%; height: auto; border-radius: 50%;
  box-shadow: 0 26px 54px -22px rgba(3,48,109,.4);
}

/* imagen circular de la fibra — cabecera del scrollytelling de aramida */
.pk2-scene-fiber { margin: 30px auto 0; width: 220px; }
.pk2-scene-fiber img {
  display: block; width: 100%; height: auto; border-radius: 50%;
  box-shadow: 0 26px 54px -22px rgba(3,48,109,.4);
}

/* ── SCENE: scrollytelling ── */
/* overflow:visible anula la regla global `section{overflow:hidden}` que rompe el sticky */
.pk2-scene { position: relative; height: 380vh; background: #fff; overflow: visible; }
.pk2-scene-head { text-align: center; padding: 92px 0 0; }
.pk2-scene-head .section-title { margin: 0 auto; max-width: 780px; }
.pk2-scene-sticky {
  position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden;
}
.pk2-scene-inner { position: relative; width: 100%; }
.pk2-step {
  position: absolute; inset: 0; margin: auto; height: max-content; max-width: 620px;
  opacity: 0; transition: opacity .14s ease;
}
.pk2-step.active { opacity: 1; transition: opacity .32s ease; }
.pk2-step::before {
  content: attr(data-n); position: absolute; right: -8px; top: -.62em; z-index: -1;
  font-size: clamp(120px, 19vw, 240px); font-weight: 800; line-height: 1; color: #EDF3FA;
}
.pk2-step-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-size: 12px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--blue-mid);
}
.pk2-step-eyebrow span { width: 30px; height: 2px; background: var(--blue-mid); }
.pk2-step h3 { font-size: clamp(25px, 3.3vw, 40px); font-weight: 800; color: var(--blue-dark); line-height: 1.16; margin: 0 0 16px; }
.pk2-step p { font-size: clamp(15px, 1.7vw, 18px); line-height: 1.7; color: var(--text-body); margin: 0; }
.pk2-scene-progress {
  position: absolute; left: 0; right: 0; bottom: 104px; z-index: 3;
  display: flex; gap: 8px; justify-content: center;
}
.pk2-scene-progress i { width: 44px; height: 3px; border-radius: 2px; background: #E1E9F4; overflow: hidden; }
.pk2-scene-progress i b { display: block; height: 100%; width: 0; background: var(--blue-dark); transition: width .35s ease; }

/* ── VARIANTS ── */
.pk2-variants { padding: 96px 0; background: #F5F8FC; }
.pk2-vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.pk2-vcard {
  position: relative; border: 1px solid var(--border); border-radius: 16px; padding: 34px 28px; background: #fff;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease, border-color .4s ease;
}
.pk2-vcard:hover { transform: translateY(-10px); box-shadow: 0 30px 60px -26px rgba(3,48,109,.42); border-color: var(--blue-mid); }
.pk2-vbase { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.pk2-vname { font-size: 27px; font-weight: 800; color: var(--blue-dark); letter-spacing: 1px; margin-bottom: 14px; }
.pk2-vtemp {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 14px; margin-bottom: 16px; background: #F4F7FB; border-radius: 9px;
}
.pk2-vtemp span { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue-mid); }
.pk2-vtemp strong { font-size: 15px; font-weight: 800; color: var(--blue-dark); white-space: nowrap; }
.pk2-vdesc { font-size: 13.5px; line-height: 1.7; color: var(--text-body); margin-bottom: 18px; }
.pk2-vrow { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.pk2-vrow-k { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 5px; }
.pk2-vrow-v { font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }
.pk2-vshot { margin: 48px auto 0; max-width: 480px; text-align: center; }
.pk2-vshot img {
  display: block; width: 100%; height: auto; background: #fff;
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 30px 62px -30px rgba(3,48,109,.4);
}
.pk2-vshot figcaption { margin-top: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .3px; color: var(--text-muted); }
.pk2-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 44px; }
.pk2-links a { font-size: 13px; font-weight: 600; color: var(--blue-mid); border: 1px solid var(--border); border-radius: 100px; padding: 9px 20px; transition: var(--transition); }
.pk2-links a:hover { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }

/* ── DOCK de productos: franja fija al pie ── */
body:has(.pk2-dock) { padding-bottom: 64px; }
body:has(.pk2-dock) .floating-actions { bottom: 82px; }
.pk2-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; height: 64px;
  background: var(--blue-dark); border-top: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 -8px 24px -12px rgba(2,18,40,.55); overflow: hidden;
  cursor: grab; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.pk2-dock.is-dragging { cursor: grabbing; }
.pk2-dock, .pk2-dock * { -webkit-user-drag: none; -khtml-user-drag: none; }
.pk2-dock img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.pk2-row {
  height: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 90%, transparent);
}
.pk2-track { display: flex; align-items: center; height: 100%; width: max-content; will-change: transform; }
.pk2-chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px; height: 64px;
  padding: 0 20px; border-right: 1px solid rgba(255,255,255,.08);
  transition: background .25s ease;
}
.pk2-dock.is-dragging .pk2-chip { pointer-events: none; }
.pk2-chip:hover { background: rgba(255,255,255,.07); }
.pk2-chip-img {
  width: 38px; height: 38px; flex: 0 0 auto; background: #fff; border-radius: 6px;
  padding: 3px; display: grid; place-items: center;
}
.pk2-chip-img img { width: 100%; height: 100%; object-fit: contain; }
.pk2-chip-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.9); letter-spacing: .2px; white-space: nowrap; }

/* ── responsive ── */
@media (max-width: 1024px) {
  .pk2-hero { min-height: 0; padding: 104px 0 48px; display: block; }
  .pk2-hero::before { background:
    radial-gradient(60% 40% at 80% 8%, rgba(70,140,235,.32), transparent 70%),
    radial-gradient(70% 40% at 10% 100%, rgba(20,70,150,.34), transparent 70%); }
  .pk2-hero-inner { max-width: none; text-align: left; }
  .pk2-hero-sub, .pk2-hero-body { max-width: 620px; margin-left: 0; margin-right: 0; }
  .pk2-hero-tags { justify-content: flex-start; }
  .pk2-vgrid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 860px) {
  .pk2-tech, .pk2-variants { padding: 64px 0; }
  .pk2-head { margin-bottom: 20px; }
  .pk2-rise { transform: translateY(34px); }

  /* ── TECNOLOGÍA en móvil ── */
  .pk2-flow-hint { margin-bottom: 18px; }
  .pk2-flow-row { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
  .pk2-flow-cap { font-size: 13px; }
  .pk2-flow-detail { min-height: 0; padding: 20px 20px; margin-top: 18px; }
  .pk2-scene-fiber { width: 168px; margin-top: 22px; }

  /* ── SCENE en móvil: tarjetas con entrada coreografiada ── */
  .pk2-scene { height: auto; overflow: visible; background: #F5F8FC; }
  .pk2-scene-head { padding: 56px 0 4px; }
  .pk2-scene-sticky { position: static; height: auto; display: block; overflow: visible; padding: 26px 0 52px; }
  .pk2-scene-inner { position: static; }
  .pk2-step {
    position: static; inset: auto; height: auto; max-width: none;
    opacity: 0; transform: translateY(40px) scale(.96);
    transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
    background: #fff; border: 1px solid var(--border); border-radius: 18px;
    padding: 30px 24px 32px; margin-bottom: 16px;
    box-shadow: 0 18px 40px -26px rgba(3,48,109,.35);
  }
  .pk2-step.active { opacity: 1; transform: none; }
  .pk2-step::before {
    position: static; display: block; z-index: auto; margin-bottom: 2px;
    font-size: 48px; line-height: 1; font-weight: 800; color: var(--blue-mid);
    opacity: 0; transform: translateX(-10px) scale(.7); transform-origin: left center;
    transition: opacity .5s ease .06s, transform .55s cubic-bezier(.16,1,.3,1) .06s;
  }
  .pk2-step.active::before { opacity: .32; transform: none; }
  .pk2-step-eyebrow { margin-bottom: 12px; font-size: 11px; }
  .pk2-step-eyebrow span { width: 0; transition: width .5s ease .3s; }
  .pk2-step.active .pk2-step-eyebrow span { width: 30px; }
  .pk2-step h3 {
    font-size: 21px; opacity: 0; transform: translateY(14px);
    transition: opacity .5s ease .22s, transform .5s ease .22s;
  }
  .pk2-step.active h3 { opacity: 1; transform: none; }
  .pk2-step p {
    opacity: 0; transform: translateY(14px);
    transition: opacity .5s ease .36s, transform .5s ease .36s;
  }
  .pk2-step.active p { opacity: 1; transform: none; }
  .pk2-scene-progress { display: none; }
  .pk2-vgrid { margin-top: 30px; }
}
@media (max-width: 640px) {
  .pk2-chip { padding: 0 13px; gap: 8px; }
  .pk2-chip-img { width: 30px; height: 30px; }
  .pk2-chip-name { font-size: 11px; }
  body:has(.pk2-dock) .floating-actions { bottom: 74px; }
  .pk2-hero { padding: 96px 0 44px; }
  .pk2-hero h1 { font-size: clamp(38px, 12vw, 48px); }
  .pk2-hero-tags { gap: 7px; }
  .pk2-hero-tags li { font-size: 11px; padding: 6px 12px; }
  .pk2-step { padding: 26px 20px 28px; }
  .pk2-step::before { font-size: 42px; }
  .pk2-step h3 { font-size: 20px; }
  .pk2-scene-head { padding: 46px 0 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .pk2-rise { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pk2-track { animation: none; }
  .pk2-row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .pk2-step, .pk2-step h3, .pk2-step p, .pk2-step-eyebrow span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pk2-step::before { opacity: .3 !important; transform: none !important; }
  .pk2-step-eyebrow span { width: 30px !important; }
}
