/* ═══════════════════════════════════════════════════════════════
   GESAPROV — PREMIUM INTERACTIONS LAYER v1.0
   Efectos de alto impacto para experiencia multinacional.
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────
   1. SCROLL PROGRESS BAR
   ───────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #005BFF 0%, #00C2FF 50%, #E8780A 100%);
  z-index: 10000;
  box-shadow: 0 0 12px rgba(0,194,255,0.7);
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────
   2. CURSOR SPOTLIGHT (cursor-follow glow)
   ───────────────────────────────────────────────────────── */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,255,0.10) 0%, rgba(0,91,255,0.04) 35%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
  mix-blend-mode: screen;
  will-change: transform;
}
body.cursor-active .cursor-spotlight { opacity: 1; }

/* ─────────────────────────────────────────────────────────
   3. CUSTOM CURSOR DOT + RING
   ───────────────────────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: opacity 0.3s ease;
  opacity: 0;
}
body.cursor-active .cursor-dot,
body.cursor-active .cursor-ring { opacity: 1; }

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #00C2FF;
  box-shadow: 0 0 10px rgba(0,194,255,0.8);
  transition: transform 0.15s ease;
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(0,194,255,0.55);
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), width 0.25s, height 0.25s, border-color 0.25s;
}
body.cursor-hover .cursor-ring {
  width: 64px;
  height: 64px;
  border-color: rgba(232,120,10,0.85);
  background: rgba(232,120,10,0.05);
}
body.cursor-hover .cursor-dot { transform: translate(-50%, -50%) scale(0); }

/* Hide custom cursor on touch devices */
@media (hover: none) {
  .cursor-dot, .cursor-ring, .cursor-spotlight { display: none !important; }
}

/* ─────────────────────────────────────────────────────────
   4. ANIMATED MESH GRADIENT BG (hero)
   ───────────────────────────────────────────────────────── */
.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(at 18% 25%, rgba(0,91,255,0.40) 0px, transparent 45%),
    radial-gradient(at 78% 18%, rgba(0,194,255,0.32) 0px, transparent 45%),
    radial-gradient(at 50% 78%, rgba(232,120,10,0.22) 0px, transparent 50%),
    radial-gradient(at 88% 78%, rgba(124,58,237,0.25) 0px, transparent 45%);
  filter: blur(60px);
  opacity: 0.85;
  animation: meshShift 22s ease-in-out infinite alternate;
}
@keyframes meshShift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(-3%,2%) scale(1.05); }
  66%  { transform: translate(2%,-3%) scale(0.98); }
  100% { transform: translate(0,0) scale(1.03); }
}

/* ─────────────────────────────────────────────────────────
   5. ANIMATED GRID BACKGROUND (sections)
   ───────────────────────────────────────────────────────── */
.section--grid-bg { position: relative; }
.section--grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,194,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,194,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  animation: gridDrift 28s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}
.section--grid-bg > * { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────────────────
   6. FLOATING GEOMETRIC SHAPES
   ───────────────────────────────────────────────────────── */
.float-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.float-shape {
  position: absolute;
  opacity: 0.5;
  animation: floatShape 18s ease-in-out infinite;
}
.float-shape--1 { top: 12%; left: 6%;   width: 80px;  height: 80px;  animation-delay: 0s;  }
.float-shape--2 { top: 24%; right: 8%;  width: 60px;  height: 60px;  animation-delay: -4s; }
.float-shape--3 { top: 62%; left: 12%;  width: 100px; height: 100px; animation-delay: -8s; }
.float-shape--4 { bottom: 18%; right: 14%; width: 70px; height: 70px; animation-delay: -12s; }
.float-shape--5 { top: 45%; right: 28%; width: 50px;  height: 50px;  animation-delay: -16s; }

.float-shape svg { width: 100%; height: 100%; }

@keyframes floatShape {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  25%      { transform: translate(20px,-30px) rotate(8deg); }
  50%      { transform: translate(-15px,20px) rotate(-5deg); }
  75%      { transform: translate(15px,15px) rotate(4deg); }
}

/* ─────────────────────────────────────────────────────────
   7. 3D TILT CARDS
   ───────────────────────────────────────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  position: relative;
}
.tilt-card__inner {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}
.tilt-card__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(0,194,255,0.18) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.tilt-card:hover .tilt-card__shine { opacity: 1; }

/* Apply tilt class to existing cards */
.sol-card,
.diff-card,
.use-case-card,
.security-card,
.service-card,
.portfolio-card,
.pillar-card {
  transform: perspective(1000px) rotateX(var(--ry,0deg)) rotateY(var(--rx,0deg)) translateZ(0);
  transition: transform 0.18s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ─────────────────────────────────────────────────────────
   8. MAGNETIC BUTTONS
   ───────────────────────────────────────────────────────── */
.btn,
.btn--primary,
.btn--ghost {
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s, background 0.3s;
}

/* ─────────────────────────────────────────────────────────
   9. ANIMATED CTA GLOW (via box-shadow, respects overflow:hidden)
   ───────────────────────────────────────────────────────── */
.btn--primary {
  animation: ctaPulse 3.5s ease-in-out infinite;
}
.btn--primary:hover {
  animation: none;
  box-shadow:
    0 0 0 1px rgba(0,194,255,0.6),
    0 8px 24px rgba(0,91,255,0.45),
    0 0 30px rgba(0,194,255,0.55),
    0 0 60px rgba(232,120,10,0.25) !important;
}
@keyframes ctaPulse {
  0%, 100% {
    box-shadow:
      0 8px 24px rgba(0,91,255,0.32),
      0 0 0 0   rgba(0,194,255,0);
  }
  50% {
    box-shadow:
      0 10px 28px rgba(0,91,255,0.45),
      0 0 24px 4px rgba(0,194,255,0.20);
  }
}

/* ─────────────────────────────────────────────────────────
   10. SECTION HEADER UNDERLINE ANIMATION
   ───────────────────────────────────────────────────────── */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #005BFF, #00C2FF, #E8780A);
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}
.section-header.visible .section-title::after,
.section-title.visible::after { width: 72px; }

/* ─────────────────────────────────────────────────────────
   11. NUMBER COUNTER ANIMATION
   ───────────────────────────────────────────────────────── */
.counter-anim {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ─────────────────────────────────────────────────────────
   12. CARD GLOW BORDERS (gradient animated)
   ───────────────────────────────────────────────────────── */
.sol-card,
.diff-card,
.service-card,
.use-case-card {
  position: relative;
  isolation: isolate;
}
.sol-card::after,
.diff-card::after,
.service-card::after,
.use-case-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(0,91,255,0)  0%,
    rgba(0,194,255,0.7) 50%,
    rgba(232,120,10,0) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  filter: blur(8px);
}
.sol-card:hover::after,
.diff-card:hover::after,
.service-card:hover::after,
.use-case-card:hover::after { opacity: 0.65; }

/* ─────────────────────────────────────────────────────────
   13. HERO BADGE PULSE
   ───────────────────────────────────────────────────────── */
.hero__badge {
  position: relative;
  overflow: visible;
}
.hero__badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(0,194,255,0.4), rgba(232,120,10,0.4));
  filter: blur(10px);
  z-index: -1;
  opacity: 0.6;
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.05); }
}

/* ─────────────────────────────────────────────────────────
   14. TEXT GLITCH HOVER (subtle, for tech feel)
   ───────────────────────────────────────────────────────── */
.glitch-text {
  position: relative;
  display: inline-block;
}
.glitch-text:hover {
  animation: glitchShake 0.3s ease;
}
@keyframes glitchShake {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 1px); }
}

/* ─────────────────────────────────────────────────────────
   15. SPOTLIGHT REVEAL on hero text
   ───────────────────────────────────────────────────────── */
.hero__title .line--accent {
  background-size: 200% auto;
  background-position: 0% center;
  animation: textShine 4s linear infinite;
}

/* ─────────────────────────────────────────────────────────
   16. FLOATING PARTICLES (subtle in sections)
   ───────────────────────────────────────────────────────── */
.particle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(0,194,255,0.9) 0%, transparent 70%);
  border-radius: 50%;
  animation: particleFloat var(--dur, 18s) linear infinite;
  animation-delay: var(--delay, 0s);
  bottom: -10px;
  left: var(--x, 50%);
}
@keyframes particleFloat {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 30px)); opacity: 0; }
}

/* ─────────────────────────────────────────────────────────
   17. ENHANCED HEADER ON SCROLL
   ───────────────────────────────────────────────────────── */
.header.scrolled {
  background: rgba(7,26,51,0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(0,194,255,0.15);
}

/* ─────────────────────────────────────────────────────────
   18. NOISE TEXTURE OVERLAY (depth feel)
   ───────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ─────────────────────────────────────────────────────────
   19. SCROLL REVEAL ENHANCED (3D depth)
   ───────────────────────────────────────────────────────── */
.reveal-3d {
  opacity: 0;
  transform: perspective(1000px) rotateX(15deg) translateY(60px);
  transform-origin: center bottom;
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.reveal-3d.visible {
  opacity: 1;
  transform: perspective(1000px) rotateX(0) translateY(0);
}

/* ─────────────────────────────────────────────────────────
   20. CARD INTERACTIVE GLOW ON MOUSE PROXIMITY
   ───────────────────────────────────────────────────────── */
.glow-on-hover {
  position: relative;
  --gx: 50%; --gy: 50%;
}
.glow-on-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 200px at var(--gx) var(--gy),
              rgba(0,194,255,0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.glow-on-hover:hover::before { opacity: 1; }

/* ─────────────────────────────────────────────────────────
   21. STAT NUMBERS BIGGER/BOLDER (premium feel)
   ───────────────────────────────────────────────────────── */
.stat-item__value {
  background: linear-gradient(135deg, #FFFFFF 30%, #00C2FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ─────────────────────────────────────────────────────────
   22. TARGET HIGHLIGHT — al hacer click en "Ver más" del portafolio
   ───────────────────────────────────────────────────────── */
.sol-card:target {
  animation: targetHighlight 2.5s ease-out;
  scroll-margin-top: 120px;     /* compensar header sticky */
}
@keyframes targetHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(0,194,255,0.7),
                0 0 30px rgba(0,194,255,0.6);
    transform: scale(1);
  }
  25% {
    box-shadow: 0 0 0 10px rgba(0,194,255,0),
                0 0 60px rgba(0,194,255,0.85);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0,194,255,0),
                0 0 0 rgba(0,194,255,0);
    transform: scale(1);
  }
}

/* ═════════════════════════════════════════════════════════
   PRODUCT DETAIL MODAL
   ═════════════════════════════════════════════════════════ */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  overflow-y: auto;
}
.product-modal--open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.product-modal__dialog {
  position: relative;
  background: linear-gradient(165deg, #0A1A33 0%, #051022 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(0,194,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transform: scale(0.94) translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
              opacity 0.4s ease;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,194,255,0.4) transparent;
}
.product-modal--open .product-modal__dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.product-modal__dialog::-webkit-scrollbar { width: 8px; }
.product-modal__dialog::-webkit-scrollbar-thumb {
  background: rgba(0,194,255,0.4);
  border-radius: 4px;
}

/* Top gradient strip — varía por color del producto */
.product-modal__dialog::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-1, #005BFF), var(--accent-2, #00C2FF), var(--accent-1, #005BFF));
  border-radius: 22px 22px 0 0;
}
.product-modal__dialog[data-color="blue"]   { --accent-1: #005BFF; --accent-2: #00C2FF; }
.product-modal__dialog[data-color="green"]  { --accent-1: #00CC66; --accent-2: #66FFB2; }
.product-modal__dialog[data-color="cyan"]   { --accent-1: #00C2FF; --accent-2: #66E0FF; }
.product-modal__dialog[data-color="purple"] { --accent-1: #7C3AED; --accent-2: #B388FF; }
.product-modal__dialog[data-color="orange"] { --accent-1: #E8780A; --accent-2: #FFB000; }
.product-modal__dialog[data-color="pink"]   { --accent-1: #FF3B7C; --accent-2: #FF80AB; }

/* Close button */
.product-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 2;
}
.product-modal__close:hover {
  background: rgba(255,59,124,0.2);
  border-color: rgba(255,59,124,0.5);
  transform: rotate(90deg);
}

/* Header */
.product-modal__header {
  padding: 36px 40px 24px;
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 1.6fr minmax(120px, 0.8fr);
  gap: 16px;
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.product-modal__header::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  bottom: 24px;
  background: radial-gradient(circle at 10% 30%, var(--accent-1, #005BFF) 0%, transparent 50%);
  opacity: 0.06;
  pointer-events: none;
  border-radius: 16px;
}

/* Navegación entre productos (prev/next dentro del header) */
.product-modal__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: rgba(220,228,238,0.92);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  min-width: 0;
}
.product-modal__nav:hover {
  background: rgba(0,194,255,0.08);
  border-color: rgba(0,194,255,0.30);
  transform: translateY(-1px);
}
.product-modal__nav i { font-size: 0.85rem; color: var(--accent-2, #00C2FF); flex-shrink: 0; }
.product-modal__nav--prev { justify-content: flex-start; }
.product-modal__nav--next { justify-content: flex-end; text-align: right; }
.product-modal__nav-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.product-modal__nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(160,176,196,0.85);
}
.product-modal__nav-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Heading central reorganizado: icono arriba del nombre */
.product-modal__heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}
.product-modal__heading .product-modal__icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  font-size: 1.55rem;
  margin-bottom: 4px;
}
.product-modal__heading .product-modal__status {
  margin-top: 4px;
}

/* Counter + progress bar */
.product-modal__counter {
  padding: 12px 40px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-modal__counter > span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(160,176,196,0.75);
}
.product-modal__progress {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.product-modal__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1, #005BFF), var(--accent-2, #00C2FF));
  border-radius: 2px;
  transition: width 0.35s var(--ease-out, cubic-bezier(0.22,1,0.36,1));
}

/* Tabs */
.product-modal__tabs {
  display: flex;
  gap: 4px;
  padding: 16px 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
}
.product-modal__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(200,212,224,0.65);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
  margin-bottom: -1px;
}
.product-modal__tab i { font-size: 0.95rem; }
.product-modal__tab:hover { color: rgba(255,255,255,0.95); }
.product-modal__tab.is-active {
  color: #fff;
  border-bottom-color: var(--accent-2, #00C2FF);
}
.product-modal__tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  background: rgba(0,194,255,0.12);
  color: var(--accent-2, #00C2FF);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 800;
  font-style: normal;
}

/* Paneles */
.product-modal__panels {
  padding: 28px 40px 24px;
  min-height: 240px;
}
.product-modal__panel { animation: modalPanelEnter 0.3s var(--ease-out, ease-out) both; }
.product-modal__panel[hidden] { display: none; }
@keyframes modalPanelEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-modal__panel-block { margin-bottom: 24px; }
.product-modal__panel-block:last-child { margin-bottom: 0; }
.product-modal__panel-block--audience {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 18px 20px;
}
.product-modal__panel-title {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-2, #00C2FF);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-modal__panel-intro {
  font-size: 0.9375rem;
  color: rgba(200,212,224,0.85);
  margin-bottom: 18px;
  line-height: 1.55;
}

/* Acción: grid de cards de acción */
.product-modal__panel--action { padding-bottom: 32px; }
.product-modal__action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.product-modal__action-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: rgba(220,228,238,0.95);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.product-modal__action-card:hover {
  background: rgba(0,194,255,0.08);
  border-color: rgba(0,194,255,0.30);
  transform: translateY(-2px);
}
.product-modal__action-card i { font-size: 1.4rem; color: var(--accent-2, #00C2FF); margin-bottom: 4px; }
.product-modal__action-title { font-weight: 700; font-size: 0.9375rem; color: #fff; }
.product-modal__action-desc  { font-size: 0.8125rem; color: rgba(160,176,196,0.85); }
.product-modal__action-card--primary {
  background: linear-gradient(135deg, var(--accent-1, #005BFF), var(--accent-2, #00C2FF));
  border-color: transparent;
}
.product-modal__action-card--primary i,
.product-modal__action-card--primary .product-modal__action-title,
.product-modal__action-card--primary .product-modal__action-desc { color: #fff; }
.product-modal__action-card--primary .product-modal__action-desc { color: rgba(255,255,255,0.85); }
.product-modal__action-card--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,91,255,0.40); }
.product-modal__action-card--whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-color: transparent;
}
.product-modal__action-card--whatsapp i,
.product-modal__action-card--whatsapp .product-modal__action-title { color: #fff; }
.product-modal__action-card--whatsapp .product-modal__action-desc  { color: rgba(255,255,255,0.85); }

/* Benefits — cards visuales (panel "Por qué elegirlo") */
.product-modal__benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.benefit-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.benefit-card:hover {
  background: rgba(0,194,255,0.06);
  border-color: rgba(0,194,255,0.25);
  transform: translateY(-2px);
}
.benefit-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-1, #005BFF), var(--accent-2, #00C2FF));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0,91,255,0.30);
}
.benefit-card__body { min-width: 0; }
.benefit-card__title {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  line-height: 1.3;
}
.benefit-card__desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(200,212,224,0.85);
  margin: 0;
}

/* Pista de teclado */
.product-modal__hint {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(160,176,196,0.55);
  padding: 0 40px 20px;
  margin: 0;
}
.product-modal__hint kbd {
  display: inline-block;
  padding: 2px 6px;
  margin: 0 2px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: rgba(220,228,238,0.85);
}
.product-modal__icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-1, #005BFF) 0%, var(--accent-2, #00C2FF) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.875rem;
  box-shadow: 0 12px 32px rgba(0,91,255,0.4);
  flex-shrink: 0;
  position: relative;
}
.product-modal__icon-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  filter: blur(14px);
  opacity: 0.5;
  z-index: -1;
}
.product-modal__heading { min-width: 0; }
.product-modal__category {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-2, #00C2FF);
  margin-bottom: 6px;
}
.product-modal__title {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.product-modal__tagline {
  font-size: 0.9375rem;
  color: rgba(200,212,224,0.7);
  margin: 0;
}
.product-modal__status {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: flex-start;
}

/* Body */
.product-modal__body {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.product-modal__section { }
.product-modal__section-title {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-2, #00C2FF);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-modal__section-title i {
  font-size: 1rem;
  width: 22px;
  text-align: center;
}
.product-modal__description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(220,228,238,0.92);
  margin: 0;
}
.product-modal__audience-section {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 18px 20px;
}
.product-modal__audience-section p {
  font-size: 0.9375rem;
  color: rgba(200,212,224,0.85);
  margin: 0;
}

/* Features list — cada funcionalidad con explicación */
.product-modal__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px 24px;
}
.feature-item {
  padding: 14px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
}
.feature-item:hover {
  background: rgba(0,194,255,0.04);
  border-color: rgba(0,194,255,0.18);
}
.feature-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.feature-item__head i {
  color: var(--accent-2, #00C2FF);
  font-size: 1rem;
  flex-shrink: 0;
}
.feature-item__name {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.feature-item__desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(200,212,224,0.80);
  margin: 0;
  padding-left: 26px;
}

/* Listas auxiliares del overview/benefits panels */
.product-modal__ideal-list,
.product-modal__diffs-list,
.product-modal__results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-modal__ideal-list li,
.product-modal__diffs-list li,
.product-modal__results-list li {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(220,228,238,0.92);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.product-modal__ideal-list li i,
.product-modal__diffs-list li i,
.product-modal__results-list li i {
  font-size: 0.95rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.product-modal__ideal-list li i   { color: var(--accent-2, #00C2FF); }
.product-modal__diffs-list li i   { color: #FFD700; }
.product-modal__results-list li i { color: #4AE584; }

/* Panel-block del problema (color de alerta sutil) */
.product-modal__panel-block--problem {
  background: rgba(232,120,10,0.06);
  border: 1px solid rgba(232,120,10,0.20);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.product-modal__panel-block--problem .product-modal__panel-title {
  color: #F0933A;
}
.product-modal__panel-block--problem p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(220,228,238,0.88);
  margin: 0;
}

/* Panel-block ideal-for */
.product-modal__panel-block--ideal {
  margin-bottom: 20px;
}

/* Tech stack */
.product-modal__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-modal__tech {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: rgba(0,194,255,0.08);
  border: 1px solid rgba(0,194,255,0.25);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(220,228,238,0.95);
  font-family: 'Courier New', monospace;
  letter-spacing: -0.01em;
}

/* Footer */
.product-modal__footer {
  padding: 24px 40px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  background: rgba(0,0,0,0.15);
  border-radius: 0 0 22px 22px;
}

@media (max-width: 768px) {
  .product-modal { padding: 12px; }
  .product-modal__dialog { max-height: 96vh; border-radius: 16px; }
  .product-modal__header {
    padding: 28px 24px 20px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  /* Nav prev/next van debajo del heading en mobile */
  .product-modal__nav { padding: 10px 12px; }
  .product-modal__nav--prev { order: 2; }
  .product-modal__heading  { order: 1; align-items: flex-start; }
  .product-modal__nav--next { order: 3; }
  .product-modal__nav-name { font-size: 0.75rem; }
  .product-modal__counter,
  .product-modal__tabs,
  .product-modal__panels,
  .product-modal__hint { padding-left: 24px; padding-right: 24px; }
  .product-modal__features { grid-template-columns: 1fr; }
  .product-modal__heading .product-modal__icon-wrap { width: 48px; height: 48px; font-size: 1.3rem; }
  .product-modal__title { font-size: 1.375rem; }
  .product-modal__action-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────
   23. REDUCED MOTION FALLBACK
   ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__mesh,
  .section--grid-bg::before,
  .float-shape,
  .particle,
  .btn--primary::after,
  .hero__badge::before,
  .hero__title .line--accent {
    animation: none !important;
  }
  .reveal-3d { transform: none; opacity: 1; }
}
