/* ============================================
   Corredor CanchaFija (decoracion animada)
   Jugador con camiseta argentina + pelota.
   Posicion y fisica de la pelota: canchafija-runner.js
   ============================================ */

.cf-runner,
.cf-ball {
    --cf-sky: #75aadb;
    --cf-sky-dark: #4f8fc4;
    --cf-white: #ffffff;
    --cf-skin: #e8b585;
    --cf-skin-2: #d9a06b;
    --cf-shorts: #0e1b2e;
    --cf-hair: #3b2a1a;
    --cf-shoe: #1a1a1a;
    --cf-ball-line: #222222;
}

.cf-runner {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    will-change: left;
}

.cf-runner-inner {
    position: relative;
    height: 100%;
    transform-origin: center center;
}

.cf-shadow {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 70%;
    height: 6px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
}

.cf-player {
    position: relative;
    height: 100%;
    width: 100%;
    animation: cf-bob 0.7s ease-in-out infinite;
}

.cf-player-svg {
    display: block;
    height: 100%;
    width: auto;
}

.cf-leg,
.cf-arm {
    transform-box: view-box;
    transform-origin: 42px 54px;
}

.cf-leg-back { transform-origin: 41px 54px; animation: cf-leg-back 0.7s ease-in-out infinite; }
.cf-leg-front { transform-origin: 42px 54px; animation: cf-leg-front 0.7s ease-in-out infinite; }
.cf-arm-back { transform-origin: 41px 31px; animation: cf-arm-front 0.7s ease-in-out infinite; animation-delay: -0.13s; }
.cf-arm-front { transform-origin: 43px 31px; animation: cf-arm-front 0.7s ease-in-out infinite; }

.cf-ball {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    will-change: left;
}

.cf-ball-svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Variante breadcrumb (chico) */
.cf-runner--breadcrumb { height: 46px; width: 47px; }
.cf-ball--breadcrumb { width: 15px; }

/* Variante franja de home (grande) */
.cf-runner--strip { height: 86px; width: 88px; }
.cf-ball--strip { width: 20px; }

/* Trote vertical */
@keyframes cf-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-2px); }
}

/* Zancadas: piernas y brazos en contraposicion */
@keyframes cf-leg-front {
    0%, 100% { transform: rotate(20deg); }
    50%      { transform: rotate(-20deg); }
}
@keyframes cf-leg-back {
    0%, 100% { transform: rotate(-20deg); }
    50%      { transform: rotate(20deg); }
}
@keyframes cf-arm-front {
    0%, 100% { transform: rotate(-10deg); }
    50%      { transform: rotate(14deg); }
}
@keyframes cf-arm-back {
    0%, 100% { transform: rotate(22deg); }
    50%      { transform: rotate(-20deg); }
}

/* Franja fija al pie de la pantalla (solo home) */
.canchafija-runner-strip {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 92px;
    z-index: 1020;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
}

.canchafija-runner-strip .container-fluid {
    position: relative;
    height: 100%;
    max-width: none;
    padding: 0;
}

/* Responsive */
@media (max-width: 576px) {
    .cf-runner--breadcrumb { height: 36px; width: 37px; }
    .cf-ball--breadcrumb { width: 12px; }
    .canchafija-runner-strip { height: 74px; }
    .cf-runner--strip { height: 68px; width: 70px; }
    .cf-ball--strip { width: 16px; }
}

/* Accesibilidad: respetar preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .cf-player,
    .cf-leg-back,
    .cf-leg-front,
    .cf-arm-back,
    .cf-arm-front {
        animation: none !important;
    }
}
