/* 
 * promedio-fondo.css
 * Estilos para la tarjeta de promedio del fondo
 * Versión: 1.11 - Actualizado para coincidir con estilos de invertir-card
 */

/* Estructura principal de la tarjeta - MANTIENE ALTURA ORIGINAL */
.promedio-fondo-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* ALTURA ORIGINAL MANTENIDA */
    height: 340px;
    min-height: 340px;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

/* Icono - CENTRADO Y UNIFICADO COLOR */
.promedio-fondo-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: #0F52AA; /* Color azul unificado */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Valor numérico - ESTILO ACTUALIZADO */
.promedio-fondo-amount {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Contenedor flexible para el texto */
.promedio-fondo-text-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
}

/* Texto - ESTILO ACTUALIZADO */
.promedio-fondo-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    margin: 0;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Botón - UNIFICADO COMPLETAMENTE CON INVERTIR-BTN */
.promedio-fondo-btn {
    display: inline-block;
    padding: 0.75rem 0.8rem;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid #ffffff;
    border-radius: 36px;
    background: linear-gradient(135deg, #0F52AA 0%, #0F52AA 100%);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 1s ease !important;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    box-shadow: none !important;
    margin-top: auto;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.promedio-fondo-btn:hover {
    background: linear-gradient(135deg, #167BFF 0%, #167BFF 100%);
    box-shadow: none !important;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.promedio-fondo-btn:active {
    box-shadow: none !important;
    border: 2px solid #ffffff;
    transform: translateY(0);
}

/* Responsive - UNIFICADO CON INVERTIR-CARD */
@media (max-width: 480px) {
    .promedio-fondo-card {
        padding: 1rem;
        /* ALTURA AUTOMÁTICA EN MÓVILES COMO ORIGINAL */
        height: auto;
        min-height: auto;
    }
    
    .promedio-fondo-icon {
        width: 40px;
        height: 40px;
    }
    
    .promedio-fondo-amount {
        font-size: 24px;
    }
    
    .promedio-fondo-text {
        font-size: 15px;
    }
    
    .promedio-fondo-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
        border: 2px solid #ffffff;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .promedio-fondo-btn {
        font-size: 10px;
        padding: 0.7rem 0.6rem;
        border: 2px solid #ffffff;
    }
}

@media (min-width: 769px) {
    .promedio-fondo-btn {
        font-size: 11px;
        padding: 0.75rem 1rem;
        border: 2px solid #ffffff;
    }
}