/* Ingelmec v3 — hero carrusel showcase. Solo se carga en index.html. */
.hero-showcase {
  --showcase-ease: cubic-bezier(.22, 1, .36, 1);
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 40px 22px;
  background: var(--ix-paper);
}
.showcase-viewport {
  position: relative;
  height: 620px;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--ix-border);
  background: var(--ix-paper);
  box-shadow: var(--elev-2);
  touch-action: pan-y;
  cursor: grab;
  outline: none;
}
.showcase-viewport:focus-visible { outline: 3px solid var(--ix-azul); outline-offset: 4px; }
.showcase-viewport.is-dragging { cursor: grabbing; user-select: none; }
.showcase-track, .showcase-slide { position: absolute; inset: 0; }
.showcase-slide {
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(36px, 0, 0) scale(.992);
  transition: opacity .5s ease, transform .7s var(--showcase-ease), visibility 0s linear .7s;
}
.showcase-slide[data-active="true"] {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(var(--drag-x, 0px), 0, 0) scale(1);
  transition: opacity .5s ease, transform .7s var(--showcase-ease), visibility 0s;
}
.showcase-slide h1, .showcase-slide h2, .showcase-slide h3, .showcase-slide p { margin-top: 0; }
.showcase-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--ix-azul);
  font: 500 10px/1.4 var(--font-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.showcase-kicker::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.showcase-kicker--light { color: #8fc7ee; }
.showcase-title {
  margin-bottom: 20px;
  color: var(--ix-title-alt);
  font: 800 clamp(38px, 4.1vw, 60px)/.98 var(--font-display);
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.showcase-title span { display: block; }
.showcase-title .accent { color: var(--ix-azul); }
.showcase-title--light { color: #f8f7f3; }
.showcase-title--light .accent { color: #79bce9; }
.showcase-lead { max-width: 48ch; margin-bottom: 24px; color: var(--ix-body); font: 400 15px/1.6 var(--font-body); }
.showcase-lead--light { color: #b8c8cf; }
.showcase-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.showcase-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 28px; font: 400 10px/1.5 var(--font-mono); color: #66777e; }
.showcase-stats > span { padding: 0 16px; border-right: 1px solid var(--ix-border); }
.showcase-stats > span:first-child { padding-left: 0; }
.showcase-stats > span:last-child { border: 0; }
.showcase-stats strong { color: var(--ix-tinta); font-size: 14px; }
.showcase-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ix-azul);
  font: 600 12px/1.4 var(--font-body);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.showcase-text-link:hover { color: var(--ix-azul-hover); }
.showcase-text-link--light { color: #9dd2f5; }

/* Transición: destello de hexágonos técnicos, nunca una cortina opaca. */
.showcase-wipe { position: absolute; inset: 0; z-index: 20; overflow: hidden; pointer-events: none; }
.showcase-wipe span { position: absolute; left: 50%; top: 50%; width: 150px; height: 170px; margin: -85px 0 0 -75px; clip-path: var(--ix-hex); background: var(--ix-azul); opacity: 0; transform: scale(.1) rotate(0deg); }
.showcase-wipe span:nth-child(2) { left: 25%; top: 30%; width: 70px; height: 80px; background: var(--ix-verde); }
.showcase-wipe span:nth-child(3) { left: 80%; top: 72%; width: 90px; height: 104px; background: var(--ix-ambar); }
.showcase-viewport.is-switching .showcase-wipe span { animation: showcaseHex .72s var(--showcase-ease) both; }
.showcase-viewport.is-switching .showcase-wipe span:nth-child(2) { animation-delay: .05s; }
.showcase-viewport.is-switching .showcase-wipe span:nth-child(3) { animation-delay: .1s; }
@keyframes showcaseHex { 0% { opacity: 0; transform: scale(.1) rotate(0); } 35% { opacity: .2; } 100% { opacity: 0; transform: scale(12) rotate(30deg); } }

/* 01 — video / lámina editorial principal */
.showcase-slide--video {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 44px;
  padding: 54px 54px 48px;
  background:
    linear-gradient(90deg, rgba(5,103,173,.045) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(rgba(5,103,173,.045) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--ix-paper);
}
.showcase-video-copy { position: relative; z-index: 4; }
.showcase-video-copy .showcase-title { max-width: 620px; }
.showcase-video-stage { position: relative; align-self: stretch; min-height: 410px; }
.showcase-video-hex { position: absolute; width: 91%; aspect-ratio: .88; right: -14%; top: -9%; clip-path: var(--ix-hex); background: linear-gradient(145deg, #dfe8ed, #edf0ef); }
.showcase-video-wire { position: absolute; z-index: 3; right: -20px; top: -16px; width: 132px; height: 150px; border: 1px solid #a9c2d1; clip-path: var(--ix-hex); }
.showcase-video-wire::after { content: ''; position: absolute; width: 8px; height: 8px; right: 18px; top: 5px; background: var(--ix-azul); clip-path: var(--ix-hex); }
.showcase-media-frame { position: absolute; inset: 34px 2px 28px 24px; overflow: hidden; background: var(--ix-tinta); border: 7px solid var(--ix-paper); outline: 1px solid #b8c6cc; box-shadow: var(--elev-3); }
.showcase-media-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(9,29,38,.76)); pointer-events: none; }
.showcase-poster, .showcase-poster img, .showcase-media-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.showcase-poster { transition: opacity .45s ease; }
.showcase-media-frame video { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.showcase-media-frame.has-video video { opacity: 1; }
.showcase-media-frame.has-video .showcase-poster { opacity: 0; }
.showcase-media-meta { position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 18px; display: flex; justify-content: space-between; gap: 16px; color: #fff; font: 400 9px/1.4 var(--font-mono); letter-spacing: .12em; }
.showcase-media-meta span:last-child { color: #9dd2f5; }
.showcase-years-seal { position: absolute; z-index: 5; left: -8px; bottom: 0; width: 112px; height: 112px; display: grid; place-items: center; border: 3px dotted var(--ix-ambar); border-radius: 50%; background: var(--ix-paper); box-shadow: 0 0 0 5px var(--ix-paper), var(--elev-2); text-align: center; }
.showcase-years-seal strong { display: block; color: var(--ix-tinta); font: 800 32px/.9 var(--font-display); }
.showcase-years-seal span { display: block; margin-top: 5px; color: var(--ix-azul); font: 600 9px var(--font-mono); letter-spacing: .14em; }
.showcase-years-seal small { display: block; margin-top: 3px; font: 400 8px var(--font-body); }

/* 02 — data center 3D en banda de tinta */
.showcase-slide--datacenter {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  align-items: center;
  gap: 34px;
  padding: 40px 52px;
  color: #fff;
  background:
    radial-gradient(circle at 28% 45%, rgba(5,103,173,.34), transparent 43%),
    linear-gradient(90deg, rgba(121,188,233,.07) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(rgba(121,188,233,.07) 1px, transparent 1px) 0 0 / 64px 64px,
    #12262e;
}
.showcase-3d-stage { position: relative; align-self: stretch; min-height: 420px; }
.showcase-3d-host { position: absolute; inset: 0; }
.showcase-3d-host canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .6s ease; }
.showcase-3d-host[data-ready="true"] canvas { opacity: 1; }
.showcase-3d-fallback { position: absolute; inset: 10% 4% 12%; opacity: .24; filter: saturate(.7); transition: opacity .5s; }
.showcase-3d-fallback, .showcase-3d-fallback img { width: 100%; height: 100%; object-fit: cover; }
.showcase-3d-host[data-ready="true"] .showcase-3d-fallback { opacity: 0; }
.showcase-3d-hex { position: absolute; left: 7%; right: 7%; top: 4%; bottom: 4%; clip-path: var(--ix-hex); border: 1px solid rgba(121,188,233,.22); background: rgba(5,103,173,.04); }
.showcase-3d-caption { position: absolute; z-index: 3; left: 4px; bottom: 4px; display: flex; align-items: center; gap: 12px; color: #8faab6; font: 400 9px var(--font-mono); letter-spacing: .11em; }
.showcase-3d-caption::before { content: ''; width: 34px; height: 1px; background: var(--ix-verde); }
.showcase-3d-status { position: absolute; z-index: 4; top: 12px; left: 4px; color: #8fc7ee; font: 400 9px var(--font-mono); letter-spacing: .1em; }
.showcase-3d-host[data-ready="true"] .showcase-3d-status { display: none; }
.showcase-datacenter-copy { position: relative; z-index: 3; }
.showcase-datacenter-copy .showcase-title { font-size: clamp(36px, 3.6vw, 54px); }
.showcase-system-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 28px 0; background: rgba(121,188,233,.18); border: 1px solid rgba(121,188,233,.18); }
.showcase-system-list span { position: relative; padding: 13px 12px 13px 26px; background: #152c35; color: #d8e4e8; font: 400 9px var(--font-mono); letter-spacing: .08em; }
.showcase-system-list span::before { content: ''; position: absolute; left: 11px; top: 17px; width: 6px; height: 6px; background: var(--ix-verde); clip-path: var(--ix-hex); box-shadow: 0 0 10px rgba(5,178,144,.65); animation: showcaseLed 2.8s ease-in-out infinite; }
.showcase-system-list span:nth-child(2n)::before { background: #79bce9; animation-delay: -1.2s; }
@keyframes showcaseLed { 50% { opacity: .35; } }

/* 03 — cuatro pilares con tilt y duotono */
.showcase-slide--soluciones {
  padding: 42px 44px 38px;
  background: #f1f0ea;
}
.showcase-solutions-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.showcase-solutions-head .showcase-title { margin: 0; font-size: clamp(34px, 3.4vw, 50px); }
.showcase-solutions-proof { display: flex; flex: none; gap: 1px; border: 1px solid var(--ix-border); background: var(--ix-border); }
.showcase-solutions-proof span { padding: 12px 16px; background: var(--ix-paper); color: var(--ix-body); font: 400 9px var(--font-mono); }
.showcase-solutions-proof strong { display: block; margin-bottom: 4px; color: var(--ix-azul); font-size: 16px; }
.showcase-solutions-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; perspective: 1200px; }
.showcase-solution-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: grid;
  grid-template-rows: 1.2fr .8fr;
  min-width: 0;
  height: 378px;
  overflow: hidden;
  color: var(--ix-tinta);
  text-decoration: none;
  background: var(--ix-paper);
  border: 1px solid #d8d7d0;
  box-shadow: var(--elev-1);
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform .18s ease-out, box-shadow .25s, border-color .25s;
}
.showcase-solution-card:hover { border-color: #93b9d1; box-shadow: var(--elev-3); }
.showcase-solution-card picture { min-height: 0; overflow: hidden; }
.showcase-solution-card picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--showcase-ease); }
.showcase-solution-card:hover picture img { transform: scale(1.045); }
.showcase-solution-number { position: absolute; z-index: 3; left: 14px; top: 14px; display: grid; place-items: center; width: 42px; height: 46px; clip-path: var(--ix-hex); background: var(--ix-azul); color: #fff; font: 500 12px var(--font-mono); transform: translateZ(30px); }
.showcase-solution-card:nth-child(2) .showcase-solution-number { background: var(--ix-verde); }
.showcase-solution-card:nth-child(4) .showcase-solution-number { background: var(--ix-rojo); }
.showcase-solution-copy { position: relative; padding: 20px 18px 16px; transform: translateZ(20px); }
.showcase-solution-copy small { display: block; overflow: hidden; margin-bottom: 9px; color: var(--ix-muted); font: 400 8px var(--font-mono); letter-spacing: .07em; white-space: nowrap; text-overflow: ellipsis; }
.showcase-solution-copy h3 { margin-bottom: 12px; font: 700 20px/1.05 var(--font-display); text-transform: uppercase; }
.showcase-solution-copy > span { color: var(--ix-azul); font: 500 9px var(--font-mono); }

/* 04 — grid vivo de productos reales */
.showcase-slide--equipos {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 38px;
  padding: 46px 48px;
  background:
    radial-gradient(circle at 100% 0, rgba(5,103,173,.1), transparent 34%),
    var(--ix-paper);
}
.showcase-equipment-intro .showcase-title { font-size: clamp(36px, 3.4vw, 50px); }
.showcase-equipment-count { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 22px; padding-top: 20px; border-top: 1px solid var(--ix-border); }
.showcase-equipment-count strong { color: var(--ix-azul); font: 800 52px/.8 var(--font-display); }
.showcase-equipment-count span { color: var(--ix-body); font: 400 9px var(--font-mono); }
.showcase-products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.showcase-product { position: relative; min-width: 0; height: 222px; background: #fff; border: 1px solid var(--ix-border); box-shadow: var(--elev-1); animation: showcaseProductFloat 6s ease-in-out infinite; }
.showcase-product:nth-child(2n) { animation-delay: -3s; }
.showcase-product:nth-child(3n) { animation-delay: -1.5s; }
@keyframes showcaseProductFloat { 50% { transform: translateY(-5px); box-shadow: var(--elev-2); } }
.showcase-product a { display: grid; grid-template-rows: 124px 1fr; height: 100%; color: inherit; text-decoration: none; }
.showcase-product-image { display: grid; place-items: center; min-height: 0; padding: 10px; background: linear-gradient(145deg, #fff, #edf1f2); }
.showcase-product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.showcase-product-copy { padding: 10px 12px; }
.showcase-product-meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; color: var(--ix-azul); font: 400 7px var(--font-mono); text-transform: uppercase; }
.showcase-product-meta span:last-child { overflow: hidden; max-width: 62%; color: var(--ix-muted); white-space: nowrap; text-overflow: ellipsis; }
.showcase-product h3 { margin: 0; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 600 12px/1.16 var(--font-display); }

/* Controles numerados, siempre fuera de la lámina. */
.showcase-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 64px; padding: 12px 2px 0; }
.showcase-status { color: var(--ix-body); font: 400 10px var(--font-mono); letter-spacing: .05em; }
.showcase-status strong { color: var(--ix-azul); font-weight: 500; }
.showcase-indicators { display: flex; gap: 8px; }
.showcase-dot { position: relative; width: 44px; height: 38px; padding: 0; border: 1px solid var(--ix-border); border-radius: 0; background: transparent; color: var(--ix-muted); font: 400 10px var(--font-mono); cursor: pointer; }
.showcase-dot::after { content: ''; position: absolute; left: 7px; right: 7px; bottom: 5px; height: 2px; background: transparent; }
.showcase-dot:hover { border-color: var(--ix-azul); color: var(--ix-azul); }
.showcase-dot[aria-current="true"] { border-color: var(--ix-azul); color: var(--ix-azul); background: var(--ix-azul-tint); }
.showcase-dot[aria-current="true"]::after { background: var(--ix-azul); }
.showcase-control-actions { display: flex; justify-content: flex-end; gap: 8px; }
.showcase-control-button { min-width: 42px; height: 40px; padding: 0 13px; border: 1px solid var(--ix-border); border-radius: 0; background: transparent; color: var(--ix-tinta); font: 500 12px var(--font-mono); cursor: pointer; }
.showcase-control-button:hover { border-color: var(--ix-azul); color: var(--ix-azul); background: var(--ix-azul-tint); }
.showcase-toggle { min-width: 76px; font-size: 9px; text-transform: uppercase; }
.showcase-help { margin: 4px 0 0; color: var(--ix-muted); font: 400 8px/1.5 var(--font-mono); letter-spacing: .04em; text-align: center; }
.showcase-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1160px) {
  .hero-showcase { padding-left: 28px; padding-right: 28px; }
  .showcase-slide--video { padding: 42px; gap: 30px; }
  .showcase-slide--datacenter { padding: 36px; }
  .showcase-slide--soluciones { padding: 34px 30px; }
  .showcase-solution-card { height: 392px; }
  .showcase-solution-copy h3 { font-size: 17px; }
  .showcase-slide--equipos { grid-template-columns: 220px minmax(0, 1fr); padding: 38px 34px; gap: 26px; }
  .showcase-products-grid { gap: 10px; }
}
@media (max-width: 900px) and (min-width: 769px) {
  .showcase-slide--video { grid-template-columns: 1fr 1fr; padding: 34px; }
  .showcase-title { font-size: 40px; }
  .showcase-slide--datacenter { grid-template-columns: 1fr 1fr; }
  .showcase-solutions-proof { display: none; }
  .showcase-solutions-grid { gap: 10px; }
  .showcase-solution-copy { padding: 16px 12px; }
  .showcase-slide--equipos { grid-template-columns: 190px minmax(0, 1fr); }
  .showcase-product-meta span:last-child { display: none; }
}
@media (max-width: 768px) {
  .hero-showcase { padding: 16px 16px 18px; }
  .showcase-viewport { min-height: 0; height: 760px; }
  .hero-showcase[data-current="0"] .showcase-viewport { height: 810px; }
  .hero-showcase[data-current="1"] .showcase-viewport { height: 730px; }
  .hero-showcase[data-current="2"] .showcase-viewport { height: 790px; }
  .hero-showcase[data-current="3"] .showcase-viewport { height: 860px; }
  .showcase-slide--video { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: 30px 26px; }
  .showcase-video-copy .showcase-title { font-size: 42px; }
  .showcase-video-stage { flex: 1; min-height: 250px; }
  .showcase-media-frame { inset: 20px 0 16px 16px; }
  .showcase-years-seal { width: 88px; height: 88px; left: -4px; }
  .showcase-years-seal strong { font-size: 25px; }
  .showcase-slide--datacenter { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 12px; padding: 32px 28px; }
  .showcase-3d-stage { flex: 1; min-height: 310px; }
  .showcase-datacenter-copy .showcase-title { font-size: 38px; }
  .showcase-system-list { margin: 18px 0; }
  .showcase-slide--soluciones { padding: 30px 24px; }
  .showcase-solutions-head { align-items: flex-start; margin-bottom: 20px; }
  .showcase-solutions-head .showcase-title { font-size: 37px; }
  .showcase-solutions-proof { flex-direction: column; }
  .showcase-solutions-proof span { padding: 9px 11px; }
  .showcase-solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .showcase-solution-card { height: 274px; grid-template-rows: 1.05fr .95fr; }
  .showcase-solution-copy { padding: 14px 12px; }
  .showcase-solution-copy h3 { font-size: 17px; }
  .showcase-slide--equipos { display: block; padding: 30px 24px; }
  .showcase-equipment-intro { display: grid; grid-template-columns: 1fr auto; column-gap: 18px; align-items: end; }
  .showcase-equipment-intro .showcase-kicker, .showcase-equipment-intro .showcase-lead, .showcase-equipment-intro .showcase-text-link { grid-column: 1 / -1; }
  .showcase-equipment-intro .showcase-title { font-size: 36px; }
  .showcase-equipment-intro .showcase-lead { margin-bottom: 14px; }
  .showcase-equipment-count { margin: 0; padding: 0; border: 0; }
  .showcase-equipment-count strong { font-size: 44px; }
  .showcase-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
  .showcase-product { height: 184px; }
  .showcase-product a { grid-template-rows: 104px 1fr; }
  .showcase-controls { grid-template-columns: 1fr auto; gap: 12px; }
  .showcase-indicators { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
  .showcase-status { grid-row: 2; }
  .showcase-control-actions { grid-row: 2; }
}
@media (max-width: 480px) {
  .hero-showcase { padding: 12px 12px 16px; }
  .hero-showcase[data-current="0"] .showcase-viewport { height: 808px; }
  .hero-showcase[data-current="1"] .showcase-viewport { height: 748px; }
  .hero-showcase[data-current="2"] .showcase-viewport { height: 820px; }
  .hero-showcase[data-current="3"] .showcase-viewport { height: 860px; }
  .showcase-kicker { margin-bottom: 14px; font-size: 8px; }
  .showcase-slide--video { padding: 26px 20px; gap: 18px; }
  .showcase-video-copy .showcase-title { font-size: 38px; }
  .showcase-lead { margin-bottom: 18px; font-size: 14px; line-height: 1.5; }
  .showcase-actions { gap: 14px; }
  .showcase-actions .button, .showcase-actions .text-link { width: 100%; justify-content: center; text-align: center; }
  .showcase-stats { margin-top: 20px; font-size: 8px; }
  .showcase-stats > span { padding: 0 9px; }
  .showcase-stats strong { font-size: 11px; }
  .showcase-media-meta { left: 14px; right: 14px; font-size: 7px; }
  .showcase-video-wire { width: 88px; height: 100px; }
  .showcase-slide--datacenter { padding: 28px 20px; }
  .showcase-datacenter-copy .showcase-title { font-size: 34px; }
  .showcase-system-list span { padding: 11px 8px 11px 23px; font-size: 8px; }
  .showcase-system-list span::before { left: 9px; top: 14px; }
  .showcase-slide--soluciones { padding: 26px 18px; }
  .showcase-solutions-head { display: block; }
  .showcase-solutions-head .showcase-title { font-size: 34px; }
  .showcase-solutions-proof { flex-direction: row; margin-top: 14px; width: max-content; }
  .showcase-solutions-proof strong { font-size: 13px; }
  .showcase-solution-card { height: 284px; }
  .showcase-solution-number { left: 9px; top: 9px; width: 34px; height: 38px; font-size: 10px; }
  .showcase-solution-copy small { font-size: 6.5px; }
  .showcase-solution-copy h3 { font-size: 15px; }
  .showcase-solution-copy > span { font-size: 8px; }
  .showcase-slide--equipos { padding: 26px 18px; }
  .showcase-equipment-intro .showcase-title { font-size: 32px; }
  .showcase-equipment-intro .showcase-lead { font-size: 13px; }
  .showcase-equipment-count span { max-width: 64px; font-size: 7px; }
  .showcase-product { height: 184px; }
  .showcase-product-copy { padding: 8px 9px; }
  .showcase-product-meta { font-size: 6.5px; }
  .showcase-product h3 { font-size: 11px; }
  .showcase-status { max-width: 130px; font-size: 8px; }
  .showcase-dot { width: 40px; }
  .showcase-control-button { min-width: 38px; padding: 0 10px; }
  .showcase-toggle { min-width: 66px; font-size: 8px; }
  .showcase-help { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-slide, .showcase-slide[data-active="true"], .showcase-solution-card, .showcase-solution-card picture img, .showcase-media-frame video, .showcase-poster { transform: none !important; transition: none !important; }
  .showcase-wipe { display: none; }
  .showcase-product, .showcase-system-list span::before { animation: none !important; }
  .showcase-toggle { display: none; }
}

/* ==========================================================================
   v4 · Slide 01 con video de fondo integrado al papel
   El video (placa sin texto, peso visual a la derecha) ocupa todo el slide;
   un velo de papel lo funde por la izquierda y los bordes, un filete con
   marcas de corte lo enmarca como lámina, y el copy respira encima.
   ========================================================================== */
.showcase-slide--video { overflow: hidden; background: var(--ix-paper); }
.showcase-media-frame.showcase-video-bg {
  position: absolute; inset: 0; z-index: 0; border: 0; outline: 0; box-shadow: none; background: var(--ix-paper);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 88%, transparent 100%);
}
.showcase-media-frame.showcase-video-bg::after { display: none; }
.showcase-video-bg .showcase-poster, .showcase-video-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 46%; }
.showcase-video-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ix-paper) 0%, var(--ix-paper) 31%, rgba(248,247,243,.86) 40%, rgba(248,247,243,.25) 52%, rgba(248,247,243,0) 60%),
    linear-gradient(90deg, rgba(5,103,173,.045) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(rgba(5,103,173,.045) 1px, transparent 1px) 0 0 / 80px 80px; }
/* Respiración: halo de papel tras el copy, 7 s, solo opacidad y escala. */
.showcase-video-veil span { position: absolute; left: -8%; top: 8%; width: 62%; height: 84%; background: radial-gradient(closest-side, rgba(248,247,243,.95), rgba(248,247,243,0)); transform-origin: 30% 50%; animation: showcaseBreath 7s ease-in-out infinite alternate; }
@keyframes showcaseBreath { from { opacity: .55; transform: scale(.96); } to { opacity: 1; transform: scale(1.05); } }
.showcase-video-filete { position: absolute; inset: 14px; z-index: 2; pointer-events: none; border: 1px solid rgba(5,103,173,.22); }
.showcase-video-filete i { position: absolute; width: 14px; height: 14px; border: 0 solid var(--ix-tinta); }
.showcase-video-filete i:nth-child(1) { left: -8px; top: -8px; border-left-width: 1px; border-top-width: 1px; }
.showcase-video-filete i:nth-child(2) { right: -8px; top: -8px; border-right-width: 1px; border-top-width: 1px; }
.showcase-video-filete i:nth-child(3) { left: -8px; bottom: -8px; border-left-width: 1px; border-bottom-width: 1px; }
.showcase-video-filete i:nth-child(4) { right: -8px; bottom: -8px; border-right-width: 1px; border-bottom-width: 1px; }
.showcase-video-copy { z-index: 4; }
.showcase-video-stage { z-index: 3; align-self: stretch; min-height: 410px; pointer-events: none; }
.showcase-video-stage .showcase-years-seal { left: auto; right: 6%; bottom: 4px; pointer-events: auto; }
.showcase-years-seal > div { position: relative; }
.showcase-years-seal::before { content: ''; position: absolute; inset: 6px; border: 1px dashed rgba(5,103,173,.35); border-radius: 50%; animation: showcaseSpin 40s linear infinite; }
@keyframes showcaseSpin { to { transform: rotate(360deg); } }
.showcase-video-stage .showcase-media-meta { left: auto; right: 0; bottom: -18px; width: 62%; color: var(--ix-tinta); }
.showcase-video-stage .showcase-media-meta span:last-child { color: var(--ix-azul); }
.showcase-video-stage .showcase-video-wire { right: -6px; top: -12px; }

/* Entrada larga del slide 01 (≈1.6 s) — más pausada que las demás. */
.showcase-slide--video { transition: opacity 1s ease, transform 1.3s var(--showcase-ease), visibility 0s linear 1.3s; }
.showcase-slide--video[data-active="true"] { transition: opacity 1s ease, transform 1.3s var(--showcase-ease), visibility 0s; }
.showcase-slide--video[data-active="true"] .showcase-video-bg { animation: showcaseBgIn 1.8s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes showcaseBgIn { from { opacity: 0; transform: scale(1.09) translate3d(2%, 0, 0); } to { opacity: 1; transform: none; } }
/* Titular en láminas que voltean con barrido de profundidad (técnica de
   code-slice-hero: cada lámina rota en X desde el canto y se asienta). */
.showcase-title .slice { display: block; perspective: 640px; }
.showcase-title .slice > span { display: block; transform-origin: 50% 100% -18px; backface-visibility: hidden; }
.showcase-slide--video[data-active="true"] .showcase-title .slice > span { animation: showcaseSlice .95s cubic-bezier(.2, 1.25, .35, 1) both; }
.showcase-slide--video[data-active="true"] .showcase-title .slice:nth-child(1) > span { animation-delay: .28s; }
.showcase-slide--video[data-active="true"] .showcase-title .slice:nth-child(2) > span { animation-delay: .4s; }
.showcase-slide--video[data-active="true"] .showcase-title .slice:nth-child(3) > span { animation-delay: .52s; }
@keyframes showcaseSlice { 0% { opacity: 0; transform: rotateX(-96deg) translate3d(-18px, 0, -60px); } 40% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.showcase-slide--video[data-active="true"] .showcase-kicker,
.showcase-slide--video[data-active="true"] .showcase-lead,
.showcase-slide--video[data-active="true"] .showcase-actions,
.showcase-slide--video[data-active="true"] .showcase-stats,
.showcase-slide--video[data-active="true"] .showcase-years-seal,
.showcase-slide--video[data-active="true"] .showcase-media-meta { animation: showcaseRise .8s cubic-bezier(.22, 1, .36, 1) both; }
.showcase-slide--video[data-active="true"] .showcase-kicker { animation-delay: .12s; }
.showcase-slide--video[data-active="true"] .showcase-lead { animation-delay: .7s; }
.showcase-slide--video[data-active="true"] .showcase-actions { animation-delay: .82s; }
.showcase-slide--video[data-active="true"] .showcase-stats { animation-delay: .94s; }
.showcase-slide--video[data-active="true"] .showcase-years-seal { animation: sealCompose .7s var(--showcase-ease) 1.05s both; }
.showcase-slide--video[data-active="true"] .showcase-media-meta { animation-delay: 1.15s; }
.showcase-slide--video[data-active="true"] .showcase-video-filete { animation: showcaseFrame 1.2s cubic-bezier(.22, 1, .36, 1) .2s both; }
@keyframes showcaseRise { from { opacity: 0; transform: translate3d(0, 20px, 0); } to { opacity: 1; transform: none; } }
@keyframes showcaseFrame { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: none; } }
/* Mientras la intro cubre la página, la entrada del slide 01 espera. */
.ix-intro-on:not(.ix-intro-leaving) .showcase-slide--video * { animation-play-state: paused !important; }

/* ==========================================================================
   v4 · Entradas 3D de los demás slides
   03 soluciones: tarjetas que giran como caras de un cuboide (cuboid-carousel)
   04 equipos: vista explosionada en capas que se asienta (exploded-stack)
   Transición entre slides: profundidad + giro leve, nunca cortina opaca.
   ========================================================================== */
.showcase-track { perspective: 1600px; }
.showcase-slide { transform: translate3d(36px, 0, -80px) rotateY(-4deg) scale(.992); }
.showcase-slide[data-active="true"] { transform: translate3d(var(--drag-x, 0px), 0, 0) rotateY(0) scale(1); }
.showcase-solutions-grid { perspective: 1100px; }
.showcase-slide--soluciones[data-active="true"] .showcase-solution-card { animation: showcaseCuboid .9s cubic-bezier(.2, .9, .25, 1) backwards; transform-origin: 50% 50% -120px; }
.showcase-slide--soluciones[data-active="true"] .showcase-solution-card:nth-child(2) { animation-delay: .09s; }
.showcase-slide--soluciones[data-active="true"] .showcase-solution-card:nth-child(3) { animation-delay: .18s; }
.showcase-slide--soluciones[data-active="true"] .showcase-solution-card:nth-child(4) { animation-delay: .27s; }
@keyframes showcaseCuboid { from { opacity: 0; transform: rotateY(-88deg); } 50% { opacity: 1; } to { opacity: 1; transform: rotateY(0); } }
.showcase-products-grid { perspective: 1200px; transform-style: preserve-3d; }
.showcase-slide--equipos[data-active="true"] .showcase-product { animation: showcaseExplode 1.1s cubic-bezier(.16, 1, .3, 1) backwards, showcaseProductFloat 5s ease-in-out 1.4s infinite; }
.showcase-slide--equipos[data-active="true"] .showcase-product:nth-child(1) { --ex: 60%; --ey: 50%; --ez: 160px; animation-delay: 0s, 1.4s; }
.showcase-slide--equipos[data-active="true"] .showcase-product:nth-child(2) { --ex: 0%; --ey: 50%; --ez: 80px; animation-delay: .06s, 1.6s; }
.showcase-slide--equipos[data-active="true"] .showcase-product:nth-child(3) { --ex: -60%; --ey: 50%; --ez: 0px; animation-delay: .12s, 1.8s; }
.showcase-slide--equipos[data-active="true"] .showcase-product:nth-child(4) { --ex: 60%; --ey: -50%; --ez: -80px; animation-delay: .18s, 2s; }
.showcase-slide--equipos[data-active="true"] .showcase-product:nth-child(5) { --ex: 0%; --ey: -50%; --ez: -160px; animation-delay: .24s, 2.2s; }
.showcase-slide--equipos[data-active="true"] .showcase-product:nth-child(6) { --ex: -60%; --ey: -50%; --ez: -240px; animation-delay: .3s, 2.4s; }
@keyframes showcaseExplode {
  0% { opacity: 0; transform: translate3d(var(--ex), var(--ey), var(--ez)) rotateX(52deg) rotateZ(-28deg) scale(.7); }
  45% { opacity: 1; transform: translate3d(calc(var(--ex) * .2), calc(var(--ey) * .2), calc(var(--ez) * .6 + 60px)) rotateX(22deg) rotateZ(-10deg) scale(.9); }
  100% { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  .showcase-video-bg .showcase-poster, .showcase-video-bg video { object-position: 90% 50%; }
  .showcase-media-frame.showcase-video-bg { top: 50%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 92%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 92%, transparent 100%); }
  .showcase-video-veil { background: linear-gradient(180deg, var(--ix-paper) 0%, var(--ix-paper) 52%, rgba(248,247,243,0) 70%); }
  .showcase-video-veil span { left: -20%; top: 0; width: 140%; height: 60%; }
  .showcase-video-stage { min-height: 230px; }
  .showcase-video-stage .showcase-years-seal { right: 4px; }
  .showcase-video-stage .showcase-media-meta { width: 100%; bottom: -6px; }
  .showcase-video-filete { inset: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-video-veil span, .showcase-years-seal::before { animation: none !important; }
  .showcase-slide--video *, .showcase-solution-card, .showcase-product { animation: none !important; }
}
