/* ========================================
   Escala — sección oscura con onda de
   vectores animados + métricas relevantes
   ======================================== */

.scale {
    position: relative;
    overflow: hidden;
    padding: 7rem 0 7.5rem;
    background: radial-gradient(120% 90% at 50% 0%, #1c1815 0%, #110e0c 55%, #0c0a09 100%);
    color: #fff;
}

.scale-head {
    max-width: 820px;
    margin: 0 auto;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}
.scale-head .lead { color: #fff; }
.scale-head .rest { color: rgba(255, 255, 255, 0.5); }

/* Onda de líneas */
.scale-wave {
    position: relative;
    max-width: 1180px;
    margin: -1rem auto -1rem;
    z-index: 1;
}
.scale-wave svg { width: 100%; height: auto; display: block; overflow: visible; }

.wave-lines { transform-origin: center; animation: waveFloat 10s ease-in-out infinite; }
.wave-lines path {
    fill: none;
    stroke: url(#wavegrad);
    stroke-width: 1;
    opacity: 0.28;
    animation: waveGlow 4.5s ease-in-out infinite;
}
@keyframes waveGlow { 0%, 100% { opacity: 0.18; } 50% { opacity: 0.85; } }
@keyframes waveFloat { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-8px) scaleY(1.05); } }

.wave-core {
    transform-origin: center;
    animation: corePulse 4s ease-in-out infinite;
}
@keyframes corePulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.9; } }

@media (prefers-reduced-motion: reduce) {
    .wave-lines, .wave-lines path, .wave-core { animation: none; }
    .wave-lines path { opacity: 0.4; }
}

/* Métricas */
.scale-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.scale-stat { position: relative; padding-top: 1.6rem; }
.scale-stat .num {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    background: linear-gradient(100deg, #ffd16a 0%, #ff7a3d 42%, #ff5e8a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.scale-stat .cap { color: rgba(255, 255, 255, 0.55); font-size: 1rem; margin-top: 0.5rem; }

@media (max-width: 800px) {
    .scale { padding: 4.5rem 0 5rem; }
    .scale-stats { grid-template-columns: 1fr; gap: 1.5rem; }
}
