/* =========================================================
   CIFRAS + PIE DE PÁGINA — CIP
   Mismos colores y animaciones que la página principal.
   Se usa en libros.html y observatorio_web.html
   ========================================================= */
:root { --pie-ease: cubic-bezier(.22, 1, .36, 1); }

/* Aparición al hacer scroll (igual que en index) */
.pie-reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity .9s var(--pie-ease), transform .9s var(--pie-ease);
    will-change: opacity, transform;
}
.pie-reveal.pie-active { opacity: 1; transform: translateY(0); }
.pie-reveal.pie-active.pie-settled {
    transition: transform .4s var(--pie-ease), box-shadow .4s ease, opacity .4s ease;
    transition-delay: 0s !important;
}

/* Cifras: efecto "pop" al terminar de contar */
@keyframes pieNumPop { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
.pie-counter { display: inline-block; }
.pie-counter.pie-pop { animation: pieNumPop .5s var(--pie-ease); }

/* Iconos sociales */
footer#contacto a.rounded-full { transition: transform .3s var(--pie-ease), background-color .3s; }
footer#contacto a.rounded-full:hover { transform: translateY(-4px) rotate(8deg); }

/* Evita que los estilos propios de cada página cambien el pie */
footer#contacto { background: #062633 !important; border-color: #1e293b !important; color: #cbd5e1 !important; }
footer#contacto h4 { font-family: 'Inter', system-ui, sans-serif !important; }

@media (prefers-reduced-motion: reduce) {
    .pie-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .pie-counter.pie-pop { animation: none !important; }
}
