/* Iluminar — overlay extras on top of the flat Figma artboard.
   Currently: the 'The Stats' section — an animated 3-stat callout. */

.flat--iluminar {
  --ilu-art-w: 2880;
  --ilu-art-h: 27076;
  --ilu-stats-top:    21300;
  --ilu-stats-height: 2400;
}

.ilu-stats {
  position: absolute;
  left: 0;
  right: 0;
  top:    calc(var(--ilu-stats-top)    / var(--ilu-art-h) * 100%);
  height: calc(var(--ilu-stats-height) / var(--ilu-art-h) * 100%);
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.ilu-stats__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.8vw, 48px);
  width: 100%;
  max-width: 1200px;
  pointer-events: auto;
}

.ilu-stat {
  list-style: none;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.ilu-stat.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.ilu-stat:nth-child(2) { transition-delay: 0.12s; }
.ilu-stat:nth-child(3) { transition-delay: 0.24s; }

.ilu-stat__frame {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  background: var(--color-cream);
  border: 2px solid #2B338E;
  border-radius: 14px;
  box-shadow: 6px 6px 0 #2B338E;
  transform: rotate(-1.2deg);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.ilu-stat:nth-child(2) .ilu-stat__frame { transform: rotate(0.8deg); }
.ilu-stat:nth-child(3) .ilu-stat__frame { transform: rotate(-0.6deg); }

.ilu-stat__frame--cyan  { background: #E3F5F7; }
.ilu-stat__frame--lilac { background: #ECEAF6; }

.ilu-stat:hover .ilu-stat__frame {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 10px 10px 0 #2B338E;
}

.ilu-stat__bean {
  position: absolute;
  top: -10px;
  right: -10px;
  width: clamp(40px, 4.5vw, 60px);
  height: auto;
  transform: rotate(18deg);
  filter: drop-shadow(2px 3px 0 rgba(43, 51, 142, 0.15));
}

.ilu-stat__num {
  display: block;
  font-family: var(--font-sans);
  font-weight: var(--fw-black);
  font-size: clamp(44px, 5.5vw, 96px);
  line-height: 1;
  color: #2B338E;
  letter-spacing: -0.02em;
  margin-bottom: clamp(8px, 1vw, 16px);
  min-height: 1em;
}

.ilu-stat__num::after {
  content: '';
  display: block;
  width: 38%;
  height: 4px;
  margin-top: clamp(6px, 0.8vw, 10px);
  background: #FFDD00;
  border-radius: 4px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out) 0.4s;
}
.ilu-stat.is-visible .ilu-stat__num::after {
  transform: scaleX(1);
}

.ilu-stat__label {
  display: block;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: clamp(13px, 1.1vw, 17px);
  color: #2B338E;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.ilu-stat__badge {
  display: inline-block;
  margin-top: clamp(10px, 1.2vw, 16px);
  padding: 4px 10px;
  background: #2B338E;
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-weight: var(--fw-black);
  font-size: clamp(10px, 0.8vw, 12px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 99px;
}

@media (max-width: 720px) {
  .ilu-stats__grid {
    grid-template-columns: 1fr;
    gap: clamp(14px, 2vw, 22px);
  }
  .ilu-stat__frame { padding: clamp(16px, 3vw, 22px); }
  .ilu-stat__num { font-size: clamp(38px, 9vw, 64px); }
}

@media (prefers-reduced-motion: reduce) {
  .ilu-stat { opacity: 1; transform: none; transition: none; }
  .ilu-stat__num::after { transform: scaleX(1); transition: none; }
}
