/* 
 * Footer personalizado
 * Estilo moderno, elegante y profesional
 */

footer {
    background: linear-gradient(135deg, #051937, #004d7a, #008793, #00bf72, #a8eb12);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    color: white;
    padding: 15px 0;
    text-align: center;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
}

/* Efecto de gradiente animado */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Partículas decorativas */
footer::before, footer::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="20" r="0.8" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="50" r="0.3" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="0.7" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

footer::after {
    animation: particles 8s linear infinite;
}

footer::before {
    animation: particles 12s linear infinite reverse;
}

@keyframes particles {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contenido del footer */
.footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Estilos para la versión */
.version-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    margin: 0 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.version-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Animación para resaltar la nueva versión */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.version-badge.new {
    animation: pulse 2s infinite;
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

/* Estilos para el autor y empresa */
.brand {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 10px;
    transition: color 0.3s;
}

.brand:hover {
    color: #a8eb12;
}

.author {
    font-style: italic;
    opacity: 0.9;
    margin: 0 10px;
    transition: opacity 0.3s;
}

.author:hover {
    opacity: 1;
}

/* Separador estilizado */
.footer-separator {
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 15px;
    position: relative;
}

.footer-separator::before,
.footer-separator::after {
    content: "";
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.footer-separator::before {
    left: -10px;
    top: 1px;
}

.footer-separator::after {
    right: -10px;
    top: 1px;
}

/* Estilos para los contadores */
.counters-container {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0 10px;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 10px;
    transition: all 0.3s;
    position: relative;
}

.counter-item:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.3);
}

.counter-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.counter-value {
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.counter-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Animación de incremento para los contadores */
@keyframes counter-increment {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.counter-value.updated {
    animation: counter-increment 0.5s ease;
}

/* Contador pulse animation */
@keyframes counterPulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.35); color: #4a90e2; }
    50% { transform: scale(1.2); color: #4a90e2; }
    100% { transform: scale(1); }
}

.counter-pulse {
    animation: counterPulse 0.8s ease-in-out;
}

/* Estilos para los tooltips */
.counter-item[data-tooltip]::before,
.counter-item[data-tooltip]::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

/* El globo del tooltip */
.counter-item[data-tooltip]::before {
    content: attr(data-tooltip);
    bottom: 50%;
    left: 100%;
    transform: translateY(50%) translateX(10px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
    white-space: normal;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: auto;
    min-width: 200px;
    max-width: 270px;
    overflow: visible;
    word-wrap: break-word;
    line-height: 1.4;
}

/* La flechita del tooltip */
.counter-item[data-tooltip]::after {
    content: '';
    bottom: 50%;
    left: 100%;
    transform: translateY(50%) translateX(0);
    border: 5px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.9);
}

/* Mostrar el tooltip al pasar el cursor */
.counter-item[data-tooltip]:hover::before,
.counter-item[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(50%) translateX(5px);
}

/* Efecto de brillo al mostrar el tooltip */
.counter-item[data-tooltip]:hover {
    z-index: 20;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Ajustes para pantallas más pequeñas */
@media (max-width: 768px) {
    .counter-item[data-tooltip]::before {
        width: 200px;
        white-space: normal;
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Para pantallas muy pequeñas, mostrar el tooltip abajo */
@media (max-width: 480px) {
    .counter-item[data-tooltip]::before {
        bottom: auto;
        top: 100%;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px);
        min-width: 150px;
    }
    
    .counter-item[data-tooltip]::after {
        bottom: auto;
        top: 100%;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(0);
        border: 5px solid transparent;
        border-top: none;
        border-bottom-color: rgba(0, 0, 0, 0.9);
    }
    
    .counter-item[data-tooltip]:hover::before,
    .counter-item[data-tooltip]:hover::after {
        transform: translateX(-50%) translateY(5px);
    }
}

/* Estilos responsive */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .footer-separator {
        margin: 10px 0;
    }
    
    .version-badge, .brand, .author {
        margin: 5px 0;
    }
}

/* Estilos responsive para los contadores */
@media (max-width: 768px) {
    .counters-container {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .footer-content {
        flex-direction: column;
    }
    
    .counters-container {
        margin-top: 15px;
    }
}
